[DEV] build for IOS on arm64
This commit is contained in:
parent
37fc97f78d
commit
cbd15344eb
2181
generated/IOs/config.h
Normal file
2181
generated/IOs/config.h
Normal file
File diff suppressed because it is too large
Load Diff
7
generated/IOs/libavutil/avconfig.h
Normal file
7
generated/IOs/libavutil/avconfig.h
Normal file
@ -0,0 +1,7 @@
|
||||
/* Generated by ffconf */
|
||||
#ifndef AVUTIL_AVCONFIG_H
|
||||
#define AVUTIL_AVCONFIG_H
|
||||
#define AV_HAVE_BIGENDIAN 0
|
||||
#define AV_HAVE_FAST_UNALIGNED 1
|
||||
#define AV_HAVE_INCOMPATIBLE_LIBAV_ABI 0
|
||||
#endif /* AVUTIL_AVCONFIG_H */
|
5
generated/IOs/libavutil/ffversion.h
Normal file
5
generated/IOs/libavutil/ffversion.h
Normal file
@ -0,0 +1,5 @@
|
||||
/* Automatically generated by version.sh, do not manually edit! */
|
||||
#ifndef AVUTIL_FFVERSION_H
|
||||
#define AVUTIL_FFVERSION_H
|
||||
#define FFMPEG_VERSION "3.1.1"
|
||||
#endif /* AVUTIL_FFVERSION_H */
|
@ -37,8 +37,7 @@ def add_common_property(target, my_module):
|
||||
"-D_REENTRANT",
|
||||
"-DPIC"
|
||||
])
|
||||
elif "MacOs" in target.get_type() \
|
||||
or "IOs" in target.get_type():
|
||||
elif "MacOs" in target.get_type():
|
||||
my_module.add_depend([
|
||||
"QuartzCore",
|
||||
"AppKit",
|
||||
@ -75,6 +74,20 @@ def add_common_property(target, my_module):
|
||||
my_module.add_flag('c', [
|
||||
"-DCONFIG_THUMB=0",
|
||||
])
|
||||
elif "---IOs" in target.get_type():
|
||||
my_module.add_flag('c', [
|
||||
"-DZLIB_CONST",
|
||||
"-D_REENTRANT",
|
||||
"-DPIC"
|
||||
])
|
||||
my_module.add_flag('c', [
|
||||
"-DANDROID",
|
||||
"-Dstrtod=avpriv_strtod",
|
||||
"-ftree-ter",
|
||||
])
|
||||
my_module.add_flag('c', [
|
||||
"-DCONFIG_THUMB=0",
|
||||
])
|
||||
|
||||
if target.get_arch() == "arm":
|
||||
# need to force optimisation (compilation error otherwise)
|
||||
|
@ -825,7 +825,8 @@ def configure(target, my_module):
|
||||
'ffmpeg/libavcodec/x86/vp9dsp_init_16bpp.c',
|
||||
'ffmpeg/libavcodec/x86/xvididct_init.c',
|
||||
])
|
||||
elif target.get_arch() == "arm":
|
||||
elif target.get_arch() == "arm" \
|
||||
and target.get_bus_size() == "32":
|
||||
my_module.add_src_file([
|
||||
'ffmpeg/libavcodec/arm/aacpsdsp_init_arm.c',
|
||||
'ffmpeg/libavcodec/arm/aacpsdsp_neon.S',
|
||||
@ -932,6 +933,38 @@ def configure(target, my_module):
|
||||
'ffmpeg/libavcodec/arm/vp8dsp_init_neon.c',
|
||||
'ffmpeg/libavcodec/arm/vp8dsp_neon.S',
|
||||
])
|
||||
elif target.get_arch() == "arm" \
|
||||
and target.get_bus_size() == "64":
|
||||
my_module.add_src_file([
|
||||
'ffmpeg/libavcodec/aarch64/fft_init_aarch64.c',
|
||||
'ffmpeg/libavcodec/aarch64/fft_neon.S',
|
||||
'ffmpeg/libavcodec/aarch64/fmtconvert_init.c',
|
||||
'ffmpeg/libavcodec/aarch64/fmtconvert_neon.S',
|
||||
'ffmpeg/libavcodec/aarch64/h264chroma_init_aarch64.c',
|
||||
'ffmpeg/libavcodec/aarch64/h264cmc_neon.S',
|
||||
'ffmpeg/libavcodec/aarch64/h264dsp_init_aarch64.c',
|
||||
'ffmpeg/libavcodec/aarch64/h264dsp_neon.S',
|
||||
'ffmpeg/libavcodec/aarch64/h264idct_neon.S',
|
||||
'ffmpeg/libavcodec/aarch64/h264pred_init.c',
|
||||
'ffmpeg/libavcodec/aarch64/h264pred_neon.S',
|
||||
'ffmpeg/libavcodec/aarch64/h264qpel_init_aarch64.c',
|
||||
'ffmpeg/libavcodec/aarch64/h264qpel_neon.S',
|
||||
'ffmpeg/libavcodec/aarch64/hpeldsp_init_aarch64.c',
|
||||
'ffmpeg/libavcodec/aarch64/hpeldsp_neon.S',
|
||||
'ffmpeg/libavcodec/aarch64/imdct15_init.c',
|
||||
'ffmpeg/libavcodec/aarch64/imdct15_neon.S',
|
||||
'ffmpeg/libavcodec/aarch64/mdct_neon.S',
|
||||
'ffmpeg/libavcodec/aarch64/mpegaudiodsp_init.c',
|
||||
'ffmpeg/libavcodec/aarch64/mpegaudiodsp_neon.S',
|
||||
'ffmpeg/libavcodec/aarch64/rv40dsp_init_aarch64.c',
|
||||
'ffmpeg/libavcodec/aarch64/synth_filter_init.c',
|
||||
'ffmpeg/libavcodec/aarch64/synth_filter_neon.S',
|
||||
'ffmpeg/libavcodec/aarch64/vc1dsp_init_aarch64.c',
|
||||
'ffmpeg/libavcodec/aarch64/videodsp.S',
|
||||
'ffmpeg/libavcodec/aarch64/videodsp_init.c',
|
||||
'ffmpeg/libavcodec/aarch64/vorbisdsp_init.c',
|
||||
'ffmpeg/libavcodec/aarch64/vorbisdsp_neon.S',
|
||||
])
|
||||
else:
|
||||
debug.warning("unknow architecture ...");
|
||||
|
||||
|
@ -44,13 +44,21 @@ def configure(target, my_module):
|
||||
'ffmpeg/libswresample/x86/rematrix_init.c',
|
||||
'ffmpeg/libswresample/x86/resample_init.c',
|
||||
])
|
||||
elif target.get_arch() == "arm":
|
||||
elif target.get_arch() == "arm" \
|
||||
and target.get_bus_size() == "32":
|
||||
my_module.add_src_file([
|
||||
'ffmpeg/libswresample/arm/audio_convert_init.c',
|
||||
'ffmpeg/libswresample/arm/audio_convert_neon.S',
|
||||
'ffmpeg/libswresample/arm/resample.S',
|
||||
'ffmpeg/libswresample/arm/resample_init.c',
|
||||
])
|
||||
elif target.get_arch() == "arm" \
|
||||
and target.get_bus_size() == "64":
|
||||
my_module.add_src_file([
|
||||
'ffmpeg/libswresample/aarch64/audio_convert_init.c',
|
||||
'ffmpeg/libswresample/aarch64/audio_convert_neon.S',
|
||||
'ffmpeg/libswresample/aarch64/neontest.c',
|
||||
])
|
||||
else:
|
||||
debug.warning("unknow architecture ...");
|
||||
my_module.compile_version("c", 1999)
|
||||
|
@ -51,7 +51,8 @@ def configure(target, my_module):
|
||||
'ffmpeg/libswscale/x86/swscale.c',
|
||||
'ffmpeg/libswscale/x86/yuv2rgb.c',
|
||||
])
|
||||
elif target.get_arch() == "arm":
|
||||
elif target.get_arch() == "arm" \
|
||||
and target.get_bus_size() == "32":
|
||||
my_module.add_src_file([
|
||||
'ffmpeg/libswscale/arm/hscale.S',
|
||||
'ffmpeg/libswscale/arm/output.S',
|
||||
@ -61,6 +62,15 @@ def configure(target, my_module):
|
||||
'ffmpeg/libswscale/arm/swscale_unscaled.c',
|
||||
'ffmpeg/libswscale/arm/yuv2rgb_neon.S',
|
||||
])
|
||||
elif target.get_arch() == "arm" \
|
||||
and target.get_bus_size() == "64":
|
||||
my_module.add_src_file([
|
||||
'ffmpeg/libswscale/aarch64/hscale.S',
|
||||
'ffmpeg/libswscale/aarch64/output.S',
|
||||
'ffmpeg/libswscale/aarch64/swscale.c',
|
||||
'ffmpeg/libswscale/aarch64/swscale_unscaled.c',
|
||||
'ffmpeg/libswscale/aarch64/yuv2rgb_neon.S',
|
||||
])
|
||||
else:
|
||||
debug.warning("unknow architecture ...");
|
||||
my_module.compile_version("c", 1999)
|
||||
|
@ -103,7 +103,8 @@ def configure(target, my_module):
|
||||
'ffmpeg/libavutil/x86/lls_init.c',
|
||||
'ffmpeg/libavutil/x86/pixelutils_init.c',
|
||||
])
|
||||
elif target.get_arch() == "arm":
|
||||
elif target.get_arch() == "arm" \
|
||||
and target.get_bus_size() == "32":
|
||||
my_module.add_src_file([
|
||||
'ffmpeg/libavutil/arm/float_dsp_init_arm.c',
|
||||
'ffmpeg/libavutil/arm/float_dsp_init_neon.c',
|
||||
@ -115,6 +116,17 @@ def configure(target, my_module):
|
||||
'ffmpeg/libavutil/arm/asm.S',
|
||||
],
|
||||
destination_path="libavutil/arm")
|
||||
elif target.get_arch() == "arm" \
|
||||
and target.get_bus_size() == "64":
|
||||
my_module.add_src_file([
|
||||
'ffmpeg/libavutil/aarch64/cpu.c',
|
||||
'ffmpeg/libavutil/aarch64/float_dsp_init.c',
|
||||
'ffmpeg/libavutil/aarch64/float_dsp_neon.S',
|
||||
])
|
||||
my_module.add_header_file([
|
||||
'ffmpeg/libavutil/aarch64/asm.S',
|
||||
],
|
||||
destination_path="libavutil/aarch64")
|
||||
else:
|
||||
debug.warning("unknow architecture ...");
|
||||
my_module.compile_version("c", 1999)
|
||||
|
Loading…
Reference in New Issue
Block a user