forked from SodiumEyes/KerbalLiveFeed
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmonomake
More file actions
executable file
·70 lines (66 loc) · 1.36 KB
/
monomake
File metadata and controls
executable file
·70 lines (66 loc) · 1.36 KB
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
#!/usr/bin/env bash
#plugin
function build_plugin
{
echo "Building KerbalLiveFeed.dll..."
mcs \
-langversion:4 \
-t:library \
-r:lib/Assembly-CSharp.dll \
-r:lib/Assembly-CSharp-firstpass.dll \
-r:lib/UnityEngine.dll \
Client/Client.cs \
Client/ClientSettings.cs \
AssemblyInfo.cs \
Plugin/*.cs -out:Plugin/KerbalLiveFeed.dll
}
#client
function build_client
{
echo "Building KLFClient.exe..."
mcs \
-langversion:4 \
-r:lib/Assembly-CSharp.dll \
-r:lib/Assembly-CSharp-firstpass.dll \
-r:lib/UnityEngine.dll \
Plugin/KLFCommon.cs \
Plugin/Screenshot.cs \
Plugin/ScreenshotSettings.cs \
AssemblyInfo.cs \
Client/*.cs -out:Client/KLFClient.exe
}
#server
function build_server
{
echo "Building KLFServer.exe..."
mcs \
-langversion:4 \
-r:lib/Assembly-CSharp.dll \
-r:lib/Assembly-CSharp-firstpass.dll \
-r:lib/UnityEngine.dll \
Plugin/KLFCommon.cs \
Plugin/Screenshot.cs \
Plugin/ScreenshotSettings.cs \
AssemblyInfo.cs \
Server/*.cs -out:Server/KLFServer.exe
}
while [ -n "$1" ]
do
case $1 in
plugin|Plugin)
build_plugin
;;
client|Client)
build_client
;;
server|Server)
build_server
;;
*)
build_plugin
build_client
build_server
;;
esac
shift
done