-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathdistpkg_win64.sh
executable file
·46 lines (33 loc) · 988 Bytes
/
distpkg_win64.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/sh
export OPENJKDF2_RELEASE_COMMIT=$(git log -1 --format="%H")
export OPENJKDF2_RELEASE_COMMIT_SHORT=$(git rev-parse --short=8 HEAD)
rm -rf win64-package
rm -f win64-debug.zip
rm -rf build_win64
mkdir -p build_win64 && pushd build_win64
# Begin ughhhhh
# Prevent macOS headers from getting linked in
SDKROOT=""
MACOSX_DEPLOYMENT_TARGET=""
CPLUS_INCLUDE_PATH=""
C_INCLUDE_PATH=""
# End ughhhh
cmake .. --toolchain $(pwd)/../cmake_modules/toolchain_mingw.cmake &&
(make -j $(nproc) PROTOBUF || make -j1 PROTOBUF) &&
(make -j $(nproc) PROTOC || make -j1 PROTOC) &&
make -j $(nproc) openjkdf2-64
if [ $? -ne 0 ]; then
exit -1
fi
popd
./scripts/helper_CopyMinGWDLLs.sh
mkdir -p win64-package
cp build_win64/*.dll win64-package
cp build_win64/*.exe win64-package
#make -f Makefile.win64 clean
#make -f Makefile.win64 -j10
#cp -r resource win64-package
rm -f win64-debug.zip
cd win64-package ; zip -r ../win64-debug.zip . ; cd ..
rm -rf build_win64
rm -rf win64-package