From 32e058dcbceecfbf7ca6e6b8ea4584c174f6e4ee Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Mon, 10 Jan 2022 08:52:14 -0600 Subject: [PATCH] Makefile.in: Build dav1d CW-Bug-Id: #19516 --- Makefile.in | 25 +++++++++++++++++++++++-- configure.sh | 2 +- dist.LICENSE | 30 ++++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index b9158ff0..0a0f4cd0 100644 --- a/Makefile.in +++ b/Makefile.in @@ -185,6 +185,7 @@ CARGO_BUILD_ARG := --release COMPAT_MANIFEST_TEMPLATE := $(SRCDIR)/compatibilitytool.vdf.template LICENSE := $(SRCDIR)/dist.LICENSE OFL_LICENSE := $(SRCDIR)/fonts/liberation-fonts/LICENSE +AV1_PATENTS := $(SRCDIR)/dav1d/doc/PATENTS GECKO_VER := 2.47.2 GECKO32_TARBALL := wine-gecko-$(GECKO_VER)-x86.tar.xz @@ -258,6 +259,7 @@ DIST_COMPAT_MANIFEST := $(DST_BASE)/compatibilitytool.vdf DIST_LICENSE := $(DST_BASE)/LICENSE DIST_TOOLMANIFEST := $(addprefix $(DST_BASE)/,toolmanifest.vdf) DIST_OFL_LICENSE := $(DST_BASE)/LICENSE.OFL +DIST_AV1_PATENTS := $(DST_BASE)/PATENTS.AV1 DIST_GECKO_DIR := $(DST_DIR)/share/wine/gecko DIST_GECKO32 := $(DIST_GECKO_DIR)/wine-gecko-$(GECKO_VER)-x86 DIST_GECKO64 := $(DIST_GECKO_DIR)/wine-gecko-$(GECKO_VER)-x86_64 @@ -269,9 +271,11 @@ DIST_WINEOPENXR64 := $(DIST_PREFIX)/drive_c/windows/system32/wineopenxr.dll DIST_TARGETS := $(DIST_COPY_TARGETS) $(DIST_OVR32) $(DIST_OVR64) \ $(DIST_GECKO32) $(DIST_GECKO64) $(DIST_WINEMONO) \ - $(DIST_COMPAT_MANIFEST) $(DIST_LICENSE) $(DIST_TOOLMANIFEST) $(DIST_OFL_LICENSE) $(DIST_FONTS) + $(DIST_COMPAT_MANIFEST) $(DIST_LICENSE) $(DIST_TOOLMANIFEST) \ + $(DIST_OFL_LICENSE) $(DIST_AV1_PATENTS) $(DIST_FONTS) -DEPLOY_COPY_TARGETS := $(DIST_COPY_TARGETS) $(DIST_VERSION) $(DIST_LICENSE) $(DIST_TOOLMANIFEST) $(DIST_OFL_LICENSE) +DEPLOY_COPY_TARGETS := $(DIST_COPY_TARGETS) $(DIST_VERSION) $(DIST_LICENSE) \ + $(DIST_TOOLMANIFEST) $(DIST_OFL_LICENSE) $(DIST_AV1_PATENTS) REDIST_COPY_TARGETS := $(DEPLOY_COPY_TARGETS) $(DIST_COMPAT_MANIFEST) $(DIST_LICENSE): $(LICENSE) @@ -283,6 +287,9 @@ $(DIST_TOOLMANIFEST): $(addprefix $(SRCDIR)/,$(TOOLMANIFEST_VDF_SRC)) $(DIST_OFL_LICENSE): $(OFL_LICENSE) cp -a $< $@ +$(DIST_AV1_PATENTS): $(AV1_PATENTS) + cp -a $< $@ + $(DIST_OVR32): $(SRCDIR)/openvr/bin/win32/openvr_api.dll | $(DST_DIR) mkdir -p $(DST_LIBDIR32)/wine/dxvk cp -a $< $@ @@ -405,6 +412,20 @@ module: module32 module64 endif # ifeq ($(CONTAINER),) + +## +## dav1d +## + +DAV1D_MESON_ARGS = \ + -Denable_tools=false \ + -Denable_tests=false + +$(eval $(call rules-source,dav1d,$(SRCDIR)/dav1d)) +$(eval $(call rules-meson,dav1d,32)) +$(eval $(call rules-meson,dav1d,64)) + + ## ## gst-orc ## diff --git a/configure.sh b/configure.sh index 6da05a6a..48d6004e 100755 --- a/configure.sh +++ b/configure.sh @@ -199,7 +199,7 @@ function configure() { # arg_steamrt="soldier" -arg_protonsdk_image="registry.gitlab.steamos.cloud/proton/soldier/sdk:0.20211207.0-0" +arg_protonsdk_image="registry.gitlab.steamos.cloud/proton/soldier/sdk:0.20211207.0-1" arg_no_protonsdk="" arg_build_name="" arg_container_engine="" diff --git a/dist.LICENSE b/dist.LICENSE index a7c22dd0..dcb150e2 100644 --- a/dist.LICENSE +++ b/dist.LICENSE @@ -431,3 +431,33 @@ This software contains the jxrlib library, which is STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +---- ---- ---- ---- + +This software contains the dav1d library, which is + + Copyright © 2018-2019, VideoLAN and dav1d authors + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Distribution of dav1d is also covered by the Alliance for Open Media Patent License 1.0, available at PATENTS.AV1.