Browse Source

Update scripts

Unify scripts for Windows.
master
TheoryOfNekomata 1 year ago
parent
commit
c7a478f12c
7 changed files with 10 additions and 12 deletions
  1. +6
    -0
      00-generate-cmake-cache-x64
  2. +2
    -2
      00-generate-cmake-cache-x64.bat
  3. +1
    -0
      01-build-executable.bat
  4. +0
    -1
      01-build-game.bat
  5. +0
    -1
      02-build-server.bat
  6. +0
    -7
      03-run-tests
  7. +1
    -1
      subprojects/midi-utils

00-build-cache-debug-x64 → 00-generate-cmake-cache-x64 View File

@@ -1,5 +1,11 @@
#!/usr/bin/env sh

if [ "$BUILD_TYPE" = "" ]
then
echo "No build type specified. Try Debug or Release."
exit
fi

cmake \
-DCMAKE_SIZEOF_VOID_P=8 \
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \

00-build-cache-debug-x64.bat → 00-generate-cmake-cache-x64.bat View File

@@ -1,10 +1,10 @@
cmake^
-DCMAKE_SIZEOF_VOID_P=8^
"-DCMAKE_MT=%CMAKE_MT%"^
-DCMAKE_BUILD_TYPE=Debug^
-DCMAKE_BUILD_TYPE=%BUILD_TYPE%^
-DCMAKE_MAKE_PROGRAM=ninja^
-DCMAKE_C_COMPILER=clang-cl^
-DCMAKE_C_FLAGS=-m64^
-G Ninja^
-S .^
-B ./build/Debug
-B ./build/%BUILD_TYPE%

+ 1
- 0
01-build-executable.bat View File

@@ -0,0 +1 @@
cmake --build "./build/%BUILD_TYPE%" -t "%EXECUTABLE%"

+ 0
- 1
01-build-game.bat View File

@@ -1 +0,0 @@
cmake --build build/Debug -t game

+ 0
- 1
02-build-server.bat View File

@@ -1 +0,0 @@
cmake --build build/Debug -t server

+ 0
- 7
03-run-tests View File

@@ -1,7 +0,0 @@
#!/usr/bin/env sh

if [ "$BUILD_TYPE" = "" ]
then
return 1
fi
cmake --build "./build/$BUILD_TYPE" -t server

+ 1
- 1
subprojects/midi-utils

@@ -1 +1 @@
Subproject commit 04b34ae8ffd6527c0d9f87a09e96e09d0fc59f7f
Subproject commit dc3396c806d500802cb8a8dad15d3e46a9621954

Loading…
Cancel
Save