From 0b192a548a5a9ef5aa8bd9b1c263116f8dbe8d53 Mon Sep 17 00:00:00 2001 From: John Schoenick Date: Tue, 28 Aug 2018 14:53:04 -0700 Subject: [PATCH] build: Install proper license file for OS X builds Pass OSX variable to make, conditionally select LICENSE.osx --- build/makefile_base.mak | 8 ++++++-- configure.sh | 5 +++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/build/makefile_base.mak b/build/makefile_base.mak index 6c14f34a..96965ff8 100644 --- a/build/makefile_base.mak +++ b/build/makefile_base.mak @@ -28,6 +28,7 @@ else # (Rest of the file is the else) # We expect the configure script to conditionally set the following: # SRCDIR - Path to source # NO_DXVK - 1 if skipping DXVK steps +# OSX - 1 if OS X build # STEAMRT64_MODE - 'docker' or '' for automatic Steam Runtime container # STEAMRT64_IMAGE - Name of the image if mode is set # STEAMRT32_MODE - Same as above for 32-bit container (can be different type) @@ -132,6 +133,10 @@ MAKEFILE_DEP := endif COMPAT_MANIFEST_TEMPLATE := $(SRCDIR)/compatibilitytool.vdf.template +LICENSE := $(SRCDIR)/dist.LICENSE.lin +ifeq ($(OSX),1) + LICENSE := $(SRCDIR)/dist.LICENSE.osx +endif TOOLS_DIR32 := ./obj-tools32 TOOLS_DIR64 := ./obj-tools64 @@ -276,8 +281,7 @@ DIST_LICENSE := $(DST_DIR)/LICENSE DIST_TARGETS := $(DIST_COPY_TARGETS) $(DIST_VERSION) $(DIST_VERSION_OUTER) $(DIST_OVR32) $(DIST_OVR64) \ $(DIST_COMPAT_MANIFEST) $(DIST_LICENSE) -# TODO OS X license -$(DIST_LICENSE): $(SRCDIR)/dist.LICENSE.lin +$(DIST_LICENSE): $(LICENSE) cp -a $< $@ $(DIST_OVR32): $(SRCDIR)/openvr/bin/win32/openvr_api.dll | $(DST_DIR) diff --git a/configure.sh b/configure.sh index 9014d5e1..bc1c5218 100755 --- a/configure.sh +++ b/configure.sh @@ -90,6 +90,11 @@ function configure() { echo >> "$MAKEFILE" "NO_DXVK := 1" fi + # OS X? + if [[ -n $OSX ]]; then + echo >> "$MAKEFILE" "OSX := 1" + fi + # SteamRT echo >> "$MAKEFILE" "STEAMRT64_MODE := $(escape_for_make "$steamrt64_type")" echo >> "$MAKEFILE" "STEAMRT64_IMAGE := $(escape_for_make "$steamrt64_name")"