-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ci.sh
executable file
·33 lines (27 loc) · 1.65 KB
/
ci.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
#!/usr/bin/env bash
# Clone the framework repo
cpus=$(grep -c processor /proc/cpuinfo) ## get the cpu threads for maximum performance when compiling
echo -e "\x1B[32mCopiling with ${cpus} compute jobs!\033[0m"
git clone https://github.com/MadLadSquad/UntitledImGuiFramework.git --recursive
cd UntitledImGuiFramework/ || exit # Enter the framework directory
./install.sh ci # Install the UVKBuildTool
cd ../ || exit # Go back to the project directory
# Even though normal projects are installed under Framework/Projects/ nothing really stops us from changing that
# directory to the current setup since we only need the symlinks to be there.
# Symlink the Framework and UVKBuildTool
cmd //c mklink //d Framework UntitledImGuiFramework\\Framework || ln -rs UntitledImGuiFramework/Framework Framework 2> /dev/null || cp UntitledImGuiFramework/Framework . -r 2> /dev/null
cmd //c mklink //d UVKBuildTool UntitledImGuiFramework\\UVKBuildTool || ln -rs UntitledImGuiFramework/UVKBuildTool UVKBuildTool 2> /dev/null || cp UntitledImGuiFramework/UVKBuildTool . -r 2> /dev/null
mkdir Generated/ || exit
# Generate the generated files for the project
cd UntitledImGuiFramework/UVKBuildTool/build || exit
./UVKBuildTool.exe --generate ../../../ || ./UVKBuildTool --generate ../../../ || exit
cd ../../../
cd IncusBindings || exit
go get . || exit
go build -o libUGM_Incus_InternalFuncs.so -buildmode=c-shared . || exit
cd .. || exit
# Build the project
mkdir build || exit
cd build || exit
cmake ..
MSBuild.exe UntitledGameSystemManager.sln -property:Configuration=Release -property:Platform=x64 -property:maxCpuCount="${cpus}" || make -j "${cpus}" || exit