From 6a133e58c38a929b62227e4a428c4965a14f7fec Mon Sep 17 00:00:00 2001 From: Bradley Sepos Date: Tue, 10 Mar 2020 18:00:36 -0400 Subject: contrib: Add debug and size optimization support to libdav1d. --- contrib/libdav1d/module.defs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'contrib') diff --git a/contrib/libdav1d/module.defs b/contrib/libdav1d/module.defs index 9903fa2d6..1a46badc8 100644 --- a/contrib/libdav1d/module.defs +++ b/contrib/libdav1d/module.defs @@ -13,10 +13,22 @@ LIBDAV1D.CONFIGURE.shared = LIBDAV1D.CONFIGURE.host = LIBDAV1D.CONFIGURE.build = LIBDAV1D.CONFIGURE.static = -Ddefault_library=static -LIBDAV1D.CONFIGURE.extra = --libdir=$(call fn.ABSOLUTE,$(CONTRIB.build/))lib/ --buildtype=release \ +LIBDAV1D.CONFIGURE.extra = --libdir=$(call fn.ABSOLUTE,$(CONTRIB.build/))lib/ \ -Denable_tools=false -Denable_tests=false LIBDAV1D.CONFIGURE.env = +ifneq (none,$(LIBDAV1D.GCC.g)) + LIBDAV1D.CONFIGURE.extra += --buildtype=debug + ifeq (none,$(LIBDAV1D.GCC.O)) + LIBDAV1D.CONFIGURE.extra += --optimization=g + endif +else + LIBDAV1D.CONFIGURE.extra += --buildtype=release + ifneq (,$(filter $(LIBDAV1D.GCC.O),size size-aggressive)) + LIBDAV1D.CONFIGURE.extra += --optimization=s + endif +endif + ifeq (1-mingw,$(HOST.cross)-$(HOST.system)) LIBDAV1D.CONFIGURE.extra += --cross-file=$(call fn.ABSOLUTE,$(LIBDAV1D.EXTRACT.dir/))x86_64-w64-mingw32.meson endif -- cgit v1.2.3