mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
add ffmpeg compilation
This commit is contained in:
parent
3095187794
commit
97084dfa71
6 changed files with 51 additions and 0 deletions
9
.gitmodules
vendored
9
.gitmodules
vendored
|
|
@ -25,3 +25,12 @@
|
|||
[submodule "submodules/msamr"]
|
||||
path = submodules/msamr
|
||||
url = git://git.linphone.org/msamr.git
|
||||
[submodule "submodules/externals/ffmpeg"]
|
||||
path = submodules/externals/ffmpeg
|
||||
url = git://git.videolan.org/ffmpeg
|
||||
[submodule "submodules/externals/x264"]
|
||||
path = submodules/externals/x264
|
||||
url = git://git.videolan.org/x264.git
|
||||
[submodule "submodules/msx264"]
|
||||
path = submodules/msx264
|
||||
url = git://git.linphone.org/msx264.git
|
||||
|
|
|
|||
1
README
1
README
|
|
@ -8,6 +8,7 @@ Linphone for iPhone depends on liblinphone sdk. To build this sdk, you must inst
|
|||
-intltool
|
||||
-wget
|
||||
-pkgconfig
|
||||
-gas-preposessor.pl (http://github.com/yuvi/gas-preprocessor/ )
|
||||
|
||||
Link macport libtoolize to glibtoolize (sudo ln -s /opt/local/bin/glibtoolize /opt/local/bin/libtoolize)
|
||||
|
||||
|
|
|
|||
38
submodules/build/builders.d/ffmpeg.mk
Normal file
38
submodules/build/builders.d/ffmpeg.mk
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
ffmpeg_configure_options=\
|
||||
--disable-mmx \
|
||||
--enable-cross-compile \
|
||||
--disable-ffprobe --disable-ffserver --disable-avdevice \
|
||||
--disable-avfilter --disable-network \
|
||||
--disable-everything --enable-decoder=mpeg4 --enable-encoder=mpeg4 \
|
||||
--enable-decoder=h264 --disable-avformat --enable-armv6 --enable-armv6t2 \
|
||||
--enable-armvfp --enable-neon \
|
||||
--source-path=$(BUILDER_SRC_DIR)/$(ffmpeg_dir) \
|
||||
--cross-prefix=$$SDK_BIN_PATH/ \
|
||||
--sysroot=$$SYSROOT_PATH --arch=$$ARCH \
|
||||
--enable-static --disable-shared --target-os=darwin \
|
||||
--cpu=cortex-a8 --extra-cflags="-arch $$ARCH " --extra-ldflags="-arch $$ARCH -Wl,-syslibroot,$$SYSROOT_PATH " \
|
||||
# --as=$(BUILDER_SRC_DIR)/externals/x264/extras/gas-preprocessor.pl
|
||||
|
||||
#--sysinclude=PATH location of cross-build system headers
|
||||
|
||||
ffmpeg_dir?=externals/ffmpeg
|
||||
|
||||
$(BUILDER_BUILD_DIR)/$(ffmpeg_dir)/Makefile: $(BUILDER_SRC_DIR)/$(ffmpeg_dir)/configure
|
||||
mkdir -p $(BUILDER_BUILD_DIR)/$(ffmpeg_dir)
|
||||
cd $(BUILDER_BUILD_DIR)/$(ffmpeg_dir)/ \
|
||||
&& host_alias=${host} . $(BUILDER_SRC_DIR)/build/$(config_site) \
|
||||
&& $(BUILDER_SRC_DIR)/$(ffmpeg_dir)/configure --prefix=$(prefix) $(ffmpeg_configure_options)
|
||||
|
||||
build-ffmpeg: $(BUILDER_BUILD_DIR)/$(ffmpeg_dir)/Makefile
|
||||
cd $(BUILDER_BUILD_DIR)/$(ffmpeg_dir) && PKG_CONFIG_PATH=$(prefix)/lib/pkgconfig CONFIG_SITE=$(BUILDER_SRC_DIR)/build/$(config_site) make && make install
|
||||
|
||||
clean-ffmpeg:
|
||||
cd $(BUILDER_BUILD_DIR)/$(ffmpeg_dir) && make clean
|
||||
|
||||
veryclean-ffmpeg:
|
||||
cd $(BUILDER_BUILD_DIR)/$(ffmpeg_dir) && make distclean
|
||||
cd $(BUILDER_SRC_DIR)/$(ffmpeg_dir) && rm -f configure
|
||||
|
||||
clean-makefile-ffmpeg:
|
||||
cd $(BUILDER_BUILD_DIR)/$(ffmpeg_dir) && rm -f Makefile
|
||||
|
||||
1
submodules/externals/ffmpeg
vendored
Submodule
1
submodules/externals/ffmpeg
vendored
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 907783f221ad9594a528681e30777705f11bf0b5
|
||||
1
submodules/externals/x264
vendored
Submodule
1
submodules/externals/x264
vendored
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 08d04a4d30b452faed3b763528611737d994b30b
|
||||
1
submodules/msx264
Submodule
1
submodules/msx264
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 2e10820e9c32fe75f049308d69e4164b46bc0d1a
|
||||
Loading…
Add table
Reference in a new issue