Skip to content

Commit 38bb328

Browse files
committed
Fix batch file
1 parent 190cfcd commit 38bb328

File tree

4 files changed

+23
-43
lines changed

4 files changed

+23
-43
lines changed

build_all.bat

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
call config_all.bat
21
cd build
3-
cmake --build . --config Release --target Install
4-
cmake --build . --config Debug --target Install
5-
cmake --build . --config RelWithDebInfo --target Install
2+
cmake --build . --config Debug
3+
cmake --install . --config Debug --prefix ../../vcpkg/packages/zep_x64-windows-static-md
4+
5+
cmake --build . --config Release
6+
cmake --install . --config Release --prefix ../../vcpkg/packages/zep_x64-windows-static-md
7+
8+
cmake --build . --config RelWithDebInfo
9+
cmake --install . --config RelWithDebInfo --prefix ../../vcpkg/packages/zep_x64-windows-static-md
610
cd ..

build_all.sh

+15-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
#!/bin/bash
22

3-
if [ "$1" != "" ] ; then
4-
source config_all.sh
3+
if [ "$1" == "" ] ; then
4+
CONFIG=Debug
55
else
6-
source config_all.sh $1
6+
CONFIG=$1
7+
fi
8+
9+
source config_all.sh $CONFIG
10+
11+
if [[ "$OSTYPE" == "darwin"* ]]; then
12+
PACKAGE_TYPE=osx
13+
else
14+
PACKAGE_TYPE=linux
715
fi
816

917
cd build
10-
make --debug
11-
sudo make install
12-
make
13-
sudo make install
18+
cmake --build . --config $CONFIG
19+
cmake --install . --config $CONFIG --prefix ../../vcpkg/packages/zep_x64-$PACKAGE_TYPE
1420
cd ..
21+
22+
echo "Built $CONFIG for $PACKAGE_TYPE"

build_rez.bat

-10
This file was deleted.

build_rez.sh

-22
This file was deleted.

0 commit comments

Comments
 (0)