269 lines
16 KiB
Python

arm64_specific_sources = [
"third_party/openh264/src/codec/encoder/core/arm64/intra_pred_aarch64_neon.S",
"third_party/openh264/src/codec/encoder/core/arm64/intra_pred_sad_3_opt_aarch64_neon.S",
"third_party/openh264/src/codec/encoder/core/arm64/memory_aarch64_neon.S",
"third_party/openh264/src/codec/encoder/core/arm64/pixel_aarch64_neon.S",
"third_party/openh264/src/codec/encoder/core/arm64/reconstruct_aarch64_neon.S",
"third_party/openh264/src/codec/encoder/core/arm64/svc_motion_estimation_aarch64_neon.S",
"third_party/openh264/src/codec/common/arm64/copy_mb_aarch64_neon.S",
"third_party/openh264/src/codec/common/arm64/deblocking_aarch64_neon.S",
"third_party/openh264/src/codec/common/arm64/expand_picture_aarch64_neon.S",
"third_party/openh264/src/codec/common/arm64/intra_pred_common_aarch64_neon.S",
"third_party/openh264/src/codec/common/arm64/mc_aarch64_neon.S",
"third_party/openh264/src/codec/processing/src/arm64/adaptive_quantization_aarch64_neon.S",
"third_party/openh264/src/codec/processing/src/arm64/down_sample_aarch64_neon.S",
"third_party/openh264/src/codec/processing/src/arm64/pixel_sad_aarch64_neon.S",
"third_party/openh264/src/codec/processing/src/arm64/vaa_calc_aarch64_neon.S",
]
arm64_specific_textual_hdrs = [
"third_party/openh264/src/codec/common/arm64/arm_arch64_common_macro.S",
]
arm_specific_sources = [
"third_party/openh264/src/codec/encoder/core/arm/intra_pred_neon.S",
"third_party/openh264/src/codec/encoder/core/arm/intra_pred_sad_3_opt_neon.S",
"third_party/openh264/src/codec/encoder/core/arm/memory_neon.S",
"third_party/openh264/src/codec/encoder/core/arm/pixel_neon.S",
"third_party/openh264/src/codec/encoder/core/arm/reconstruct_neon.S",
"third_party/openh264/src/codec/encoder/core/arm/svc_motion_estimation.S",
"third_party/openh264/src/codec/common/arm/copy_mb_neon.S",
"third_party/openh264/src/codec/common/arm/deblocking_neon.S",
"third_party/openh264/src/codec/common/arm/expand_picture_neon.S",
"third_party/openh264/src/codec/common/arm/intra_pred_common_neon.S",
"third_party/openh264/src/codec/common/arm/mc_neon.S",
"third_party/openh264/src/codec/processing/src/arm/adaptive_quantization.S",
"third_party/openh264/src/codec/processing/src/arm/down_sample_neon.S",
"third_party/openh264/src/codec/processing/src/arm/pixel_sad_neon.S",
"third_party/openh264/src/codec/processing/src/arm/vaa_calc_neon.S",
]
arm_specific_textual_hdrs = [
"third_party/openh264/src/codec/common/arm/arm_arch_common_macro.S",
]
arm64_specific_copts = [
"-DHAVE_NEON_AARCH64=1",
"-Ithird-party/openh264/third_party/openh264/src/codec/common/arm64",
]
arm_specific_copts = [
"-DHAVE_NEON=1",
"-Ithird-party/openh264/third_party/openh264/src/codec/common/arm",
]
arch_specific_sources = select({
"@build_bazel_rules_apple//apple:ios_arm64": arm64_specific_sources,
"//build-system:ios_sim_arm64": arm64_specific_sources,
"@build_bazel_rules_apple//apple:ios_x86_64": [],
})
arch_specific_copts = select({
"@build_bazel_rules_apple//apple:ios_arm64": arm64_specific_copts,
"//build-system:ios_sim_arm64": arm64_specific_copts,
"@build_bazel_rules_apple//apple:ios_x86_64": [],
})
arch_specific_textual_hdrs = select({
"@build_bazel_rules_apple//apple:ios_arm64": arm64_specific_textual_hdrs,
"//build-system:ios_sim_arm64": arm64_specific_textual_hdrs,
"@build_bazel_rules_apple//apple:ios_x86_64": [],
})
all_sources = arch_specific_sources + [
"third_party/openh264/src/codec/encoder/core/inc/as264_common.h",
"third_party/openh264/src/codec/encoder/core/inc/au_set.h",
"third_party/openh264/src/codec/encoder/core/inc/deblocking.h",
"third_party/openh264/src/codec/encoder/core/inc/decode_mb_aux.h",
"third_party/openh264/src/codec/encoder/core/inc/dq_map.h",
"third_party/openh264/src/codec/encoder/core/inc/encode_mb_aux.h",
"third_party/openh264/src/codec/encoder/core/inc/encoder_context.h",
"third_party/openh264/src/codec/encoder/core/inc/encoder.h",
"third_party/openh264/src/codec/encoder/core/inc/extern.h",
"third_party/openh264/src/codec/encoder/core/inc/get_intra_predictor.h",
"third_party/openh264/src/codec/encoder/core/inc/mb_cache.h",
"third_party/openh264/src/codec/encoder/core/inc/md.h",
"third_party/openh264/src/codec/encoder/core/inc/mt_defs.h",
"third_party/openh264/src/codec/encoder/core/inc/mv_pred.h",
"third_party/openh264/src/codec/encoder/core/inc/nal_encap.h",
"third_party/openh264/src/codec/encoder/core/inc/param_svc.h",
"third_party/openh264/src/codec/encoder/core/inc/parameter_sets.h",
"third_party/openh264/src/codec/encoder/core/inc/paraset_strategy.h",
"third_party/openh264/src/codec/encoder/core/inc/picture_handle.h",
"third_party/openh264/src/codec/encoder/core/inc/picture.h",
"third_party/openh264/src/codec/encoder/core/inc/rc.h",
"third_party/openh264/src/codec/encoder/core/inc/ref_list_mgr_svc.h",
"third_party/openh264/src/codec/encoder/core/inc/sample.h",
"third_party/openh264/src/codec/encoder/core/inc/set_mb_syn_cabac.h",
"third_party/openh264/src/codec/encoder/core/inc/set_mb_syn_cavlc.h",
"third_party/openh264/src/codec/encoder/core/inc/slice_multi_threading.h",
"third_party/openh264/src/codec/encoder/core/inc/slice.h",
"third_party/openh264/src/codec/encoder/core/inc/stat.h",
"third_party/openh264/src/codec/encoder/core/inc/svc_base_layer_md.h",
"third_party/openh264/src/codec/encoder/core/inc/svc_enc_frame.h",
"third_party/openh264/src/codec/encoder/core/inc/svc_enc_golomb.h",
"third_party/openh264/src/codec/encoder/core/inc/svc_enc_macroblock.h",
"third_party/openh264/src/codec/encoder/core/inc/svc_enc_slice_segment.h",
"third_party/openh264/src/codec/encoder/core/inc/svc_encode_mb.h",
"third_party/openh264/src/codec/encoder/core/inc/svc_encode_slice.h",
"third_party/openh264/src/codec/encoder/core/inc/svc_mode_decision.h",
"third_party/openh264/src/codec/encoder/core/inc/svc_motion_estimate.h",
"third_party/openh264/src/codec/encoder/core/inc/svc_set_mb_syn_cavlc.h",
"third_party/openh264/src/codec/encoder/core/inc/svc_set_mb_syn.h",
"third_party/openh264/src/codec/encoder/core/inc/vlc_encoder.h",
"third_party/openh264/src/codec/encoder/core/inc/wels_common_basis.h",
"third_party/openh264/src/codec/encoder/core/inc/wels_const.h",
"third_party/openh264/src/codec/encoder/core/inc/wels_func_ptr_def.h",
"third_party/openh264/src/codec/encoder/core/inc/wels_preprocess.h",
"third_party/openh264/src/codec/encoder/core/inc/wels_task_base.h",
"third_party/openh264/src/codec/encoder/core/inc/wels_task_encoder.h",
"third_party/openh264/src/codec/encoder/core/inc/wels_task_management.h",
"third_party/openh264/src/codec/encoder/core/inc/wels_transpose_matrix.h",
"third_party/openh264/src/codec/common/inc/crt_util_safe_x.h",
"third_party/openh264/src/codec/common/inc/typedefs.h",
"third_party/openh264/src/codec/common/inc/utils.h",
"third_party/openh264/src/codec/api/wels/codec_app_def.h",
"third_party/openh264/src/codec/api/wels/codec_def.h",
"third_party/openh264/src/codec/api/wels/codec_api.h",
"third_party/openh264/src/codec/common/inc/WelsTask.h",
"third_party/openh264/src/codec/common/inc/macros.h",
"third_party/openh264/src/codec/common/inc/wels_const_common.h",
"third_party/openh264/src/codec/common/inc/wels_common_defs.h",
"third_party/openh264/src/codec/common/inc/memory_align.h",
"third_party/openh264/src/codec/common/inc/expand_pic.h",
"third_party/openh264/src/codec/common/inc/mc.h",
"third_party/openh264/src/codec/common/inc/cpu_core.h",
"third_party/openh264/src/codec/common/inc/WelsThreadLib.h",
"third_party/openh264/src/codec/common/inc/WelsLock.h",
"third_party/openh264/src/codec/common/inc/WelsThreadPool.h",
"third_party/openh264/src/codec/common/inc/WelsTaskThread.h",
"third_party/openh264/src/codec/common/inc/WelsThread.h",
"third_party/openh264/src/codec/common/inc/WelsList.h",
"third_party/openh264/src/codec/common/inc/copy_mb.h",
"third_party/openh264/src/codec/common/inc/golomb_common.h",
"third_party/openh264/src/codec/common/inc/ls_defines.h",
"third_party/openh264/src/codec/common/inc/measure_time.h",
"third_party/openh264/src/codec/common/inc/deblocking_common.h",
"third_party/openh264/src/codec/common/inc/cpu.h",
"third_party/openh264/src/codec/api/wels/codec_ver.h",
"third_party/openh264/src/codec/common/inc/intra_pred_common.h",
"third_party/openh264/src/codec/common/inc/sad_common.h",
] + [
"third_party/openh264/src/codec/encoder/core/src/au_set.cpp",
"third_party/openh264/src/codec/encoder/core/src/deblocking.cpp",
"third_party/openh264/src/codec/encoder/core/src/decode_mb_aux.cpp",
"third_party/openh264/src/codec/encoder/core/src/encode_mb_aux.cpp",
"third_party/openh264/src/codec/encoder/core/src/encoder_data_tables.cpp",
"third_party/openh264/src/codec/encoder/core/src/encoder_ext.cpp",
"third_party/openh264/src/codec/encoder/core/src/encoder.cpp",
"third_party/openh264/src/codec/encoder/core/src/get_intra_predictor.cpp",
"third_party/openh264/src/codec/encoder/core/src/md.cpp",
"third_party/openh264/src/codec/encoder/core/src/mv_pred.cpp",
"third_party/openh264/src/codec/encoder/core/src/nal_encap.cpp",
"third_party/openh264/src/codec/encoder/core/src/paraset_strategy.cpp",
"third_party/openh264/src/codec/encoder/core/src/picture_handle.cpp",
"third_party/openh264/src/codec/encoder/core/src/ratectl.cpp",
"third_party/openh264/src/codec/encoder/core/src/ref_list_mgr_svc.cpp",
"third_party/openh264/src/codec/encoder/core/src/sample.cpp",
"third_party/openh264/src/codec/encoder/core/src/set_mb_syn_cabac.cpp",
"third_party/openh264/src/codec/encoder/core/src/set_mb_syn_cavlc.cpp",
"third_party/openh264/src/codec/encoder/core/src/slice_multi_threading.cpp",
"third_party/openh264/src/codec/encoder/core/src/svc_base_layer_md.cpp",
"third_party/openh264/src/codec/encoder/core/src/svc_enc_slice_segment.cpp",
"third_party/openh264/src/codec/encoder/core/src/svc_encode_mb.cpp",
"third_party/openh264/src/codec/encoder/core/src/svc_encode_slice.cpp",
"third_party/openh264/src/codec/encoder/core/src/svc_mode_decision.cpp",
"third_party/openh264/src/codec/encoder/core/src/svc_motion_estimate.cpp",
"third_party/openh264/src/codec/encoder/core/src/svc_set_mb_syn_cabac.cpp",
"third_party/openh264/src/codec/encoder/core/src/svc_set_mb_syn_cavlc.cpp",
"third_party/openh264/src/codec/encoder/core/src/wels_preprocess.cpp",
"third_party/openh264/src/codec/encoder/core/src/wels_task_base.cpp",
"third_party/openh264/src/codec/encoder/core/src/wels_task_encoder.cpp",
"third_party/openh264/src/codec/encoder/core/src/wels_task_management.cpp",
] + [
"third_party/openh264/src/codec/encoder/plus/inc/welsEncoderExt.h",
"third_party/openh264/src/codec/common/inc/version.h",
"third_party/openh264/src/codec/common/inc/welsCodecTrace.h",
"third_party/openh264/src/codec/common/inc/asmdefs_mmi.h",
] + [
"third_party/openh264/src/codec/encoder/plus/src/welsEncoderExt.cpp",
"third_party/openh264/src/codec/common/src/welsCodecTrace.cpp",
"third_party/openh264/src/codec/common/src/common_tables.cpp",
"third_party/openh264/src/codec/common/src/copy_mb.cpp",
"third_party/openh264/src/codec/common/src/cpu.cpp",
"third_party/openh264/src/codec/common/src/crt_util_safe_x.cpp",
"third_party/openh264/src/codec/common/src/deblocking_common.cpp",
"third_party/openh264/src/codec/common/src/expand_pic.cpp",
"third_party/openh264/src/codec/common/src/intra_pred_common.cpp",
"third_party/openh264/src/codec/common/src/mc.cpp",
"third_party/openh264/src/codec/common/src/memory_align.cpp",
"third_party/openh264/src/codec/common/src/sad_common.cpp",
"third_party/openh264/src/codec/common/src/WelsTaskThread.cpp",
"third_party/openh264/src/codec/common/src/WelsThread.cpp",
"third_party/openh264/src/codec/common/src/WelsThreadLib.cpp",
"third_party/openh264/src/codec/common/src/WelsThreadPool.cpp",
"third_party/openh264/src/codec/common/src/utils.cpp",
] + [
"third_party/openh264/src/codec/processing/interface/IWelsVP.h",
"third_party/openh264/src/codec/processing/src/adaptivequantization/AdaptiveQuantization.cpp",
"third_party/openh264/src/codec/processing/src/adaptivequantization/AdaptiveQuantization.h",
"third_party/openh264/src/codec/processing/src/backgrounddetection/BackgroundDetection.cpp",
"third_party/openh264/src/codec/processing/src/backgrounddetection/BackgroundDetection.h",
"third_party/openh264/src/codec/processing/src/common/common.h",
"third_party/openh264/src/codec/processing/src/common/memory.cpp",
"third_party/openh264/src/codec/processing/src/common/memory.h",
"third_party/openh264/src/codec/processing/src/common/resource.h",
"third_party/openh264/src/codec/processing/src/common/typedef.h",
"third_party/openh264/src/codec/processing/src/common/util.h",
"third_party/openh264/src/codec/processing/src/common/WelsFrameWork.cpp",
"third_party/openh264/src/codec/processing/src/common/WelsFrameWork.h",
"third_party/openh264/src/codec/processing/src/common/WelsFrameWorkEx.cpp",
"third_party/openh264/src/codec/processing/src/complexityanalysis/ComplexityAnalysis.cpp",
"third_party/openh264/src/codec/processing/src/complexityanalysis/ComplexityAnalysis.h",
"third_party/openh264/src/codec/processing/src/denoise/denoise.cpp",
"third_party/openh264/src/codec/processing/src/denoise/denoise_filter.cpp",
"third_party/openh264/src/codec/processing/src/denoise/denoise.h",
"third_party/openh264/src/codec/processing/src/downsample/downsample.cpp",
"third_party/openh264/src/codec/processing/src/downsample/downsample.h",
"third_party/openh264/src/codec/processing/src/downsample/downsamplefuncs.cpp",
"third_party/openh264/src/codec/processing/src/imagerotate/imagerotate.cpp",
"third_party/openh264/src/codec/processing/src/imagerotate/imagerotate.h",
"third_party/openh264/src/codec/processing/src/imagerotate/imagerotatefuncs.cpp",
"third_party/openh264/src/codec/processing/src/scenechangedetection/SceneChangeDetection.cpp",
"third_party/openh264/src/codec/processing/src/scenechangedetection/SceneChangeDetection.h",
"third_party/openh264/src/codec/processing/src/scrolldetection/ScrollDetection.cpp",
"third_party/openh264/src/codec/processing/src/scrolldetection/ScrollDetection.h",
"third_party/openh264/src/codec/processing/src/scrolldetection/ScrollDetectionFuncs.cpp",
"third_party/openh264/src/codec/processing/src/scrolldetection/ScrollDetectionFuncs.h",
"third_party/openh264/src/codec/processing/src/vaacalc/vaacalcfuncs.cpp",
"third_party/openh264/src/codec/processing/src/vaacalc/vaacalculation.cpp",
"third_party/openh264/src/codec/processing/src/vaacalc/vaacalculation.h",
]
cc_library(
name = "openh264",
srcs = all_sources,
hdrs = glob([
]),
textual_hdrs = arch_specific_textual_hdrs,
includes = [
],
copts = arch_specific_copts + [
"-Ithird-party/openh264/third_party/openh264/src/codec/encoder/core/inc",
"-Ithird-party/openh264/third_party/openh264/src/codec/encoder/plus/inc",
"-Ithird-party/openh264/third_party/openh264/src/codec/decoder/plus/inc",
"-Ithird-party/openh264/third_party/openh264/src/codec/common/inc",
"-Ithird-party/openh264/third_party/openh264/src/codec/api/wels",
"-Ithird-party/openh264/third_party/openh264/src/codec/processing/interface",
"-Ithird-party/openh264/third_party/openh264/src/codec/processing/src/common",
"-Os",
"-Wno-all",
],
deps = [
],
visibility = [
"//visibility:public",
],
)