mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
Some changes to the packaging script (#162)
* enable unity build for releases * let the packaging script work wth relative paths * add build option to enable building the test binaries; disabled by default * disable unity build until it's been more tested
This commit is contained in:
parent
0e0ee61d9b
commit
1bfd37a013
@ -32,7 +32,13 @@ glsl_generator = generator(glsl_compiler,
|
|||||||
arguments : [ '-V', '--vn', '@BASENAME@', '@INPUT@', '-o', '@OUTPUT@' ])
|
arguments : [ '-V', '--vn', '@BASENAME@', '@INPUT@', '-o', '@OUTPUT@' ])
|
||||||
|
|
||||||
subdir('src')
|
subdir('src')
|
||||||
if dxvk_compiler.get_id() != 'msvc'
|
|
||||||
|
enable_tests = get_option('enable_tests')
|
||||||
|
|
||||||
|
if enable_tests
|
||||||
subdir('tests')
|
subdir('tests')
|
||||||
|
endif
|
||||||
|
|
||||||
|
if dxvk_compiler.get_id() != 'msvc'
|
||||||
subdir('wine_utils')
|
subdir('wine_utils')
|
||||||
endif
|
endif
|
||||||
|
1
meson_options.txt
Normal file
1
meson_options.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
option('enable_tests', type : 'boolean', value : false)
|
@ -8,7 +8,7 @@ fi
|
|||||||
DXVK_VERSION="$1"
|
DXVK_VERSION="$1"
|
||||||
DXVK_SRC_DIR=`dirname $(readlink -f $0)`
|
DXVK_SRC_DIR=`dirname $(readlink -f $0)`
|
||||||
DXVK_TMP_DIR="/tmp/dxvk-$DXVK_VERSION"
|
DXVK_TMP_DIR="/tmp/dxvk-$DXVK_VERSION"
|
||||||
DXVK_ARCHIVE_PATH="$2/dxvk-$DXVK_VERSION.tar.gz"
|
DXVK_ARCHIVE_PATH=$(realpath "$2")"/dxvk-$DXVK_VERSION.tar.gz"
|
||||||
|
|
||||||
function build_arch {
|
function build_arch {
|
||||||
cd "$DXVK_SRC_DIR"
|
cd "$DXVK_SRC_DIR"
|
||||||
@ -16,7 +16,9 @@ function build_arch {
|
|||||||
meson --cross-file "$DXVK_SRC_DIR/build-win$1.txt" \
|
meson --cross-file "$DXVK_SRC_DIR/build-win$1.txt" \
|
||||||
--buildtype "release" \
|
--buildtype "release" \
|
||||||
--prefix "$DXVK_TMP_DIR/install.$1" \
|
--prefix "$DXVK_TMP_DIR/install.$1" \
|
||||||
|
--unity off \
|
||||||
--strip \
|
--strip \
|
||||||
|
-Denable_tests=false \
|
||||||
"$DXVK_TMP_DIR/build.$1"
|
"$DXVK_TMP_DIR/build.$1"
|
||||||
|
|
||||||
cd "$DXVK_TMP_DIR/build.$1"
|
cd "$DXVK_TMP_DIR/build.$1"
|
||||||
@ -40,4 +42,4 @@ function package {
|
|||||||
|
|
||||||
build_arch 64
|
build_arch 64
|
||||||
build_arch 32
|
build_arch 32
|
||||||
package
|
package
|
||||||
|
Loading…
x
Reference in New Issue
Block a user