-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild-XP12-Xchecklist_all_64bit_win_mac_lin_WithCmake_OnLinux
executable file
·74 lines (50 loc) · 2.06 KB
/
build-XP12-Xchecklist_all_64bit_win_mac_lin_WithCmake_OnLinux
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/bin/bash
#
# How to run
# cd $Xchecklist_REPO
# ./build-XP12-Xchecklist_all_64bit_win_mac_lin_WithCmake_OnLinux
rm -r Xchecklist/*
mkdir -p Xchecklist/64 &&
mkdir -p Xchecklist/Checker &&
mkdir -p Xchecklist/Documentation &&
# Windows build
rm -r build/*
cmake -S ./src -B ./build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=~/xp12_xchecklist_plugin_builder/xchecklist/src/Toolchain-mingw-w64-x86-64.cmake
cmake --build ./build
cp ./build/win.xpl ./Xchecklist/64/
rm -r build/*
cmake -S ./checker -B ./build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=~/xp11_xchecklist_plugin_builder/xchecklist/src/Toolchain-mingw-w64-x86-64.cmake
cmake --build ./build
cp ./build/win_checker_64bit.exe ./Xchecklist/Checker/
# Linux build
rm -r build/*
cmake -S ./src -B ./build -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build ./build
cp ./build/lin.xpl ./Xchecklist/64/
rm -r build/*
cmake -S ./checker -B ./build -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build ./build
cp ./build/lin_checker_64 ./Xchecklist/Checker/
rm -r build/*
cmake -S ./simon -B ./build -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build ./build
cp ./build/simon_lin64 ./Xchecklist/
# Mac build
rm -r build/*
cmake -S ./src -B ./build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=~/xp12_xchecklist_plugin_builder/xchecklist/src/Toolchain-ubuntu-osxcross-11.3.cmake
cmake --build ./build
cp ./build/mac.xpl ./Xchecklist/64/
rm -r build/*
cmake -S ./checker -B ./build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=~/xp12_xchecklist_plugin_builder/xchecklist/src/Toolchain-ubuntu-osxcross-11.3.cmake
cmake --build ./build
cp ./build/mac_checker ./Xchecklist/Checker/
rm -r build/*
cmake -S ./simon -B ./build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=~/xp12_xchecklist_plugin_builder/xchecklist/src/Toolchain-ubuntu-osxcross-11.3.cmake
cmake --build ./build
cp ./build/simon_mac ./Xchecklist/
# Docs copy
cp docs/XchecklistUserManual.pdf Xchecklist/Documentation
cp docs/ChangeLog.txt Xchecklist/Documentation
cp checker/clist.txt Xchecklist/Checker
exec $SHELL
#