mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-22 05:38:14 +00:00
33 lines
1.2 KiB
Makefile
33 lines
1.2 KiB
Makefile
libvpx_configure_options=\
|
|
--enable-static --disable-shared\
|
|
# --extra-cflags="-arch $$ARCH"
|
|
# -Wl,-syslibroot,$$SYSROOT_PATH " \
|
|
--enable-error-concealment --disable-examples
|
|
|
|
ifneq (,$(findstring armv6,$(host)))
|
|
libvpx_configure_options+= --target=armv6-darwin-gcc --cpu=arm1176jzf-s
|
|
else ifneq (,$(findstring armv7,$(host)))
|
|
libvpx_configure_options+= --target=armv7-darwin-gcc --cpu=cortex-a8
|
|
else
|
|
libvpx_configure_options+= --force-target=x86-darwin10-gcc
|
|
endif
|
|
libvpx_dir?=externals/libvpx
|
|
|
|
$(BUILDER_BUILD_DIR)/$(libvpx_dir)/config.mak:
|
|
mkdir -p $(BUILDER_BUILD_DIR)/$(libvpx_dir)
|
|
cd $(BUILDER_BUILD_DIR)/$(libvpx_dir)/ \
|
|
&& host_alias=${host} . $(BUILDER_SRC_DIR)/build/$(config_site) \
|
|
&& $(BUILDER_SRC_DIR)/$(libvpx_dir)/configure --prefix=$(prefix) $(libvpx_configure_options)
|
|
|
|
build-libvpx: $(BUILDER_BUILD_DIR)/$(libvpx_dir)/config.mak
|
|
cd $(BUILDER_BUILD_DIR)/$(libvpx_dir) && PKG_CONFIG_PATH=$(prefix)/lib/pkgconfig CONFIG_SITE=$(BUILDER_SRC_DIR)/build/$(config_site) make && make install
|
|
|
|
clean-libvpx:
|
|
cd $(BUILDER_BUILD_DIR)/$(libvpx_dir) && make clean
|
|
|
|
veryclean-libvpx:
|
|
cd $(BUILDER_BUILD_DIR)/$(libvpx_dir) && make distclean
|
|
|
|
clean-makefile-libvpx:
|
|
cd $(BUILDER_BUILD_DIR)/$(libvpx_dir) && rm -f config.mak
|
|
|