[vlc-devel] [PATCH] contrib: add aom (default disabled)

Tristan Matthews tmatth at videolan.org
Tue Aug 23 16:24:57 CEST 2016


Hi,

On Tue, Aug 23, 2016 at 5:28 AM,  <remi at remlab.net> wrote:
> Hello,
>
> Why do you disable hashing the source? That should be an automatic negative
> ack IMO.

This contrib package isn't pinned to a specific hash, but rather the
latest git HEAD. Normally I'd switch to a pinned version after an aom
release and/or default-enabling this contrib. FWIW, we also skip
hashing the sources for: bghudappkit, daala (disabled), ffmpeg,
fluidlite, mfx, mpcdec, postproc, x264, x26410b and x262.

Best,
Tristan

> Le 23 août 2016 14:52, Tristan Matthews <tmatth at videolan.org> a écrit :
>>
>> This patch adds aom to contrib. Only tested (so far) on GNU/Linux x86-64
>> and
>> aarch64.
>>
>
>> Best,
>> -t
>>
>> ---
>> contrib/src/aom/rules.mak | 127
>> ++++++++++++++++++++++++++++++++++++++++++++++
>> 1 file changed, 127 insertions(+)
>> create mode 100644 contrib/src/aom/rules.mak
>>
>> diff --git a/contrib/src/aom/rules.mak b/contrib/src/aom/rules.mak
>> new file mode 100644
>> index 0000000..4ca7cb4
>> --- /dev/null
>> +++ b/contrib/src/aom/rules.mak
>> @@ -0,0 +1,127 @@
>> +# aom
>> +AOM_VERSION := git
>> +AOM_HASH := HEAD
>> +AOM_GITURL :=
>> https://aomedia.googlesource.com/aom/+archive/$(AOM_HASH).tar.gz
>> +
>> +# Default disabled for now
>> +# PKGS += aom
>> +ifeq ($(call need_pkg,"aom"),)
>> +PKGS_FOUND += aom
>> +endif
>> +
>> +$(TARBALLS)/aom-$(AOM_VERSION).tar.gz:
>> +$(call download,$(AOM_GITURL))
>> +
>> +.sum-aom: aom-$(AOM_VERSION).tar.gz
>> +$(warning $@ not implemented)
>> +touch $@
>> +
>> +aom: aom-$(AOM_VERSION).tar.gz .sum-aom
>> +rm -Rf $@-$(AOM_VERSION) $@
>> +mkdir -p $@-$(AOM_VERSION)
>> +$(ZCAT) "$<" | (cd $@-$(AOM_VERSION) && tar xv)
>
>> +$(MOVE)
>> +
>> +DEPS_aom =
>> +
>> +ifdef HAVE_CROSS_COMPILE
>> +AOM_CROSS := $(HOST)-
>> +else
>> +AOM_CROSS :=
>> +endif
>> +
>> +AOM_LDFLAGS := $(LDFLAGS)
>> +
>> +ifeq ($(ARCH),arm)
>> +AOM_ARCH := armv7
>> +else ifeq ($(ARCH),i386)
>> +AOM_ARCH := x86
>> +else ifeq ($(ARCH),mips)
>> +AOM_ARCH := mips32
>> +else ifeq ($(ARCH),ppc)
>> +AOM_ARCH := ppc32
>> +else ifeq ($(ARCH),ppc64)
>> +AOM_ARCH := ppc64
>> +else ifeq ($(ARCH),sparc)
>> +AOM_ARCH := sparc
>> +else ifeq ($(ARCH),x86_64)
>> +AOM_ARCH := x86_64
>> +endif
>> +
>> +ifdef HAVE_ANDROID
>> +AOM_OS := android
>> +else ifdef HAVE_LINUX
>> +AOM_OS := linux
>> +else ifdef HAVE_MACOSX
>> +ifeq ($(OSX_VERSION),10.5)
>> +AOM_OS := darwin9
>> +else
>> +AOM_OS := darwin10
>> +endif
>> +else ifdef HAVE_IOS
>> +AOM_OS := darwin11
>> +else ifdef HAVE_SOLARIS
>> +AOM_OS := solaris
>> +else ifdef HAVE_WIN64 # must be before WIN32
>> +AOM_OS := win64
>> +else ifdef HAVE_WIN32
>> +AOM_OS := win32
>> +else ifdef HAVE_BSD
>> +AOM_OS := linux
>> +endif
>> +
>> +AOM_TARGET := generic-gnu
>> +ifdef AOM_ARCH
>> +ifdef AOM_OS
>> +AOM_TARGET := $(AOM_ARCH)-$(AOM_OS)-gcc
>> +endif
>> +endif
>> +
>> +AOM_CONF := \
>> +--enable-runtime-cpu-detect \
>> +--disable-docs \
>> +--disable-examples \
>> +--disable-unit-tests \
>> +--disable-install-bins \
>> +--disable-install-docs \
>> +--disable-dependency-tracking \
>> +--disable-av1-encoder
>> +
>> +ifndef HAVE_WIN32
>> +AOM_CONF += --enable-pic
>> +endif
>> +ifdef HAVE_MACOSX
>> +AOM_CONF += --sdk-path=$(MACOSX_SDK)
>> +endif
>> +ifdef HAVE_IOS
>> +AOM_CONF += --sdk-path=$(IOS_SDK)
>> +ifdef HAVE_TVOS
>> +AOM_LDFLAGS := -L$(IOS_SDK)/usr/lib -isysroot $(IOS_SDK)
>> -mtvos-version-min=9.0
>> +else
>> +AOM_LDFLAGS := -L$(IOS_SDK)/usr/lib -isysroot $(IOS_SDK)
>> -miphoneos-version-min=6.1
>> +endif
>> +ifeq ($(ARCH),aarch64)
>> +AOM_LDFLAGS += -arch arm64
>> +else
>> +AOM_LDFLAGS += -arch $(ARCH)
>> +endif
>> +endif
>> +ifdef HAVE_ANDROID
>> +# vpx configure.sh overrides our sysroot and it looks for it itself, and
>> +# uses that path to look for the compiler (which we already know)
>> +AOM_CONF += --sdk-path=$(shell dirname $(shell which $(HOST)-gcc))
>> +# put sysroot
>> +AOM_CONF +=
>> --libc=$(ANDROID_NDK)/platforms/$(ANDROID_API)/arch-$(PLATFORM_SHORT_ARCH)
>> +endif
>> +
>> +ifndef WITH_OPTIMIZATION
>> +AOM_CONF += --enable-debug --disable-optimizations
>> +endif
>> +
>> +.aom: aom
>> +cd $< && LDFLAGS="$(AOM_LDFLAGS)" CROSS=$(AOM_CROSS) ./configure
>> --target=$(AOM_TARGET) \
>> +$(AOM_CONF) --prefix=$(PREFIX)
>> +cd $< && $(MAKE)
>> +cd $< && ../../../contrib/src/pkg-static.sh aom.pc
>> +cd $< && $(MAKE) install
>> +touch $@
>> --
>> 2.8.1
>>
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> https://mailman.videolan.org/listinfo/vlc-devel
>
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
>


More information about the vlc-devel mailing list