Copy to Assets and output when building wbox cores and host

This commit is contained in:
YoshiRulz 2021-04-28 16:06:41 +10:00
parent 7c1b40df1f
commit 8e7f171ae9
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
7 changed files with 28 additions and 7 deletions

View File

@ -2,7 +2,8 @@
WATERBOX_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
ROOT_DIR := $(shell dirname $(realpath $(lastword $(filter-out $(lastword $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))))
OUTPUTDLL_DIR := $(realpath $(WATERBOX_DIR)/../output/dll)
OUTPUTDLL_DIR := $(realpath $(WATERBOX_DIR)/../Assets/dll)
OUTPUTDLLCOPY_DIR := $(realpath $(WATERBOX_DIR)/../output/dll)
ifeq ($(OUT_DIR),)
OUT_DIR := $(ROOT_DIR)/obj
endif
@ -94,11 +95,13 @@ $(TARGET_DEBUG): $(DOBJS) $(EMULIBC_DOBJS) $(LINKSCRIPT)
install: $(TARGET_RELEASE)
@cp -f $< $(OUTPUTDLL_DIR)
@gzip --stdout --best $< > $(OUTPUTDLL_DIR)/$(TARGET).gz
@cp $(OUTPUTDLL_DIR)/$(TARGET).gz $(OUTPUTDLLCOPY_DIR)/$(TARGET).gz || true
@echo Release build of $(TARGET) installed.
install-debug: $(TARGET_DEBUG)
@cp -f $< $(OUTPUTDLL_DIR)
@gzip --stdout --best $< > $(OUTPUTDLL_DIR)/$(TARGET).gz
@cp $(OUTPUTDLL_DIR)/$(TARGET).gz $(OUTPUTDLLCOPY_DIR)/$(TARGET).gz || true
@echo Debug build of $(TARGET) installed.
else

View File

@ -1,2 +1,3 @@
@cargo b --features "no-dirty-detection"
@copy target\debug\waterboxhost.dll ..\..\Assets\dll
@copy target\debug\waterboxhost.dll ..\..\output\dll

View File

@ -1,4 +1,9 @@
#!/bin/sh
if [ -z "$BIZHAWKBUILD_HOME" ]; then export BIZHAWKBUILD_HOME="$(realpath "$(dirname "$0")/../..")"; fi
cargo b --features "no-dirty-detection"
cp target/debug/libwaterboxhost.so ../../Assets/dll
cp target/debug/libwaterboxhost.so ../../output/dll
cp target/debug/libwaterboxhost.so "$BIZHAWKBUILD_HOME/Assets/dll"
if [ -e "$BIZHAWKBUILD_HOME/output" ]; then
cp target/debug/libwaterboxhost.so "$BIZHAWKBUILD_HOME/output/dll"
fi

View File

@ -1,2 +1,3 @@
@cargo b
@copy target\debug\waterboxhost.dll ..\..\Assets\dll
@copy target\debug\waterboxhost.dll ..\..\output\dll

View File

@ -1,4 +1,9 @@
#!/bin/sh
if [ -z "$BIZHAWKBUILD_HOME" ]; then export BIZHAWKBUILD_HOME="$(realpath "$(dirname "$0")/../..")"; fi
cargo b
cp target/debug/libwaterboxhost.so ../../Assets/dll
cp target/debug/libwaterboxhost.so ../../output/dll
cp target/debug/libwaterboxhost.so "$BIZHAWKBUILD_HOME/Assets/dll"
if [ -e "$BIZHAWKBUILD_HOME/output" ]; then
cp target/debug/libwaterboxhost.so "$BIZHAWKBUILD_HOME/output/dll"
fi

View File

@ -1,2 +1,3 @@
@cargo b --release
@copy target\release\waterboxhost.dll ..\..\Assets\dll
@copy target\release\waterboxhost.dll ..\..\output\dll

View File

@ -1,4 +1,9 @@
#!/bin/sh
if [ -z "$BIZHAWKBUILD_HOME" ]; then export BIZHAWKBUILD_HOME="$(realpath "$(dirname "$0")/../..")"; fi
cargo b --release
cp target/release/libwaterboxhost.so ../../Assets/dll
cp target/release/libwaterboxhost.so ../../output/dll
cp target/release/libwaterboxhost.so "$BIZHAWKBUILD_HOME/Assets/dll"
if [ -e "$BIZHAWKBUILD_HOME/output" ]; then
cp target/release/libwaterboxhost.so "$BIZHAWKBUILD_HOME/output/dll"
fi