Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jp7677/dxvk-nvapi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Peters <jp7677@gmail.com>2021-02-06 13:58:31 +0300
committerJens Peters <jp7677@gmail.com>2021-02-06 13:58:31 +0300
commitef307219e78b815f153ee457d1e739a343edda4a (patch)
treece1494a13cd011d0483cb24a698dec410ec458d0
parent9e9c5986f0cf6cd3c447509099552eded660c1d9 (diff)
Remove existing version.h before building.v0.2.1
Because otherwise the existing one gets into the build instead of the generated one.
-rwxr-xr-xpackage-release.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/package-release.sh b/package-release.sh
index 7e7c383..f04b597 100755
--- a/package-release.sh
+++ b/package-release.sh
@@ -39,8 +39,13 @@ while [ $# -gt 0 ]; do
shift
done
-function validate_methods {
+function prepare {
python validate-methods.py src/nvapi.cpp src/nvapi_sys.cpp src/nvapi_disp.cpp src/nvapi_mosaic.cpp src/nvapi_gpu.cpp src/nvapi_d3d.cpp src/nvapi_d3d11.cpp src/nvapi_interface.cpp
+
+ # remove existing version.h, because otherwise the existing one gets into the build instead of the generated one
+ if [ -e version.h ]; then
+ rm version.h
+ fi
}
function build_arch {
@@ -57,6 +62,8 @@ function build_arch {
cd "$BUILD_DIR/build.$1"
ninja install
+ cp version.h "$SRC_DIR"
+
if [ $opt_devbuild -eq 0 ]; then
# get rid of some useless .a files
rm "$BUILD_DIR/x$1/"*.!(dll)
@@ -70,7 +77,7 @@ function copy_extra {
cp README.md "$BUILD_DIR"
}
-validate_methods
+prepare
build_arch 32
build_arch 64
copy_extra