-
Notifications
You must be signed in to change notification settings - Fork 18
/
build.sh
56 lines (40 loc) · 1000 Bytes
/
build.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
47
48
49
50
51
52
53
54
55
#!/bin/bash
printf "\n\n-------- Building MSX Core --------\n\n"
# Build MSX Core
cd MSX\ Core
rm -rf build
mkdir build && cd build
cmake ..
cmake --build . --config Release
cd ../..
printf "\n\n-------- Building Legacy DLL --------\n\n"
# Build Legacy DLL
cd "Legacy DLL"
rm -rf build
mkdir build && cd build
cmake ..
cmake --build . --config Release
cd ../..
printf "\n\n-------- Building Examples --------\n\n"
# Build CLI
cd example-api
rm -rf build
mkdir build && cd build
cmake ..
cmake --build . --config Release
cd ../..
printf "\n\n-------- Building CLI --------\n\n"
# Build CLI
cd CLI
rm -rf build
mkdir build && cd build
cmake ..
cmake --build . --config Release
cd ../..
# Copy legacymsx.dll and epanet2.dll
cp "Legacy DLL"/build/bin/*/legacymsx.dll CLI/build/bin/*/
cp ../EPANET/build/bin/*/epanet2.dll CLI/build/bin/*/
# Copy msxcore.dll
cp MSX\ Core/build/bin/*/msxcore.dll CLI/build/bin/*/
# Copy examples.dll
cp example-api/build/bin/*/examples.dll CLI/build/bin/*/