-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpremake5.lua
123 lines (96 loc) · 2.8 KB
/
premake5.lua
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
local existing = io.open("ror2_dir.txt", "r")
local ror2_dir
if (not existing) then
print "Please enter where Risk of Rain 2 is installed:"
print "Default (windows): C:\\Program Files (x86)\\Steam\\steamapps\\common\\Risk of Rain 2"
ror2_dir = io.read()
print("Saving install directory to ror2_dir.txt")
existing = io.open("ror2_dir.txt", "w")
existing:write(ror2_dir)
existing:close()
else
ror2_dir = existing:read "*a"
existing:close()
end
print("Game install directory: " .. ror2_dir)
workspace "ror2-modloader"
configurations { "Debug", "Release" }
location "project"
project "ModLoader"
kind "SharedLib"
language "C#"
dotnetframework "4.6"
libdirs {
ror2_dir .. "/Risk of Rain 2_Data/Managed",
"cs_libraries"
}
links {
"UnityEngine",
"UnityEngine.CoreModule",
"0Harmony",
"Assembly-CSharp",
"System",
"System.ComponentModel.Primitives",
"netstandard",
"System.Collections"
}
targetdir "bin/Risk of Rain 2_Data/Managed/"
targetname "ror2-modloader"
files "modloader/**.cs"
filter "configurations:Release"
optimize "Full"
filter "configurations:Debug"
optimize "Debug"
project "ModLoader Loader"
kind "SharedLib"
language "C++"
architecture "x86_64"
characterset "MBCS"
targetdir "bin/Risk of Rain 2_Data/Plugins/"
targetname "AkHarmonizer_Modded"
files {
"loader/**.cpp",
"loader/**.c",
"loader/**.h",
"loader/**.hpp"
}
filter "configurations:Release"
defines "DEBUG"
optimize "Full"
filter "configurations:Debug"
defines "NDEBUG"
optimize "Debug"
project "Ready for Release"
kind "ConsoleApp"
language "C#"
targetdir "."
targetname "readyrelease"
files {
"build/**.cs"
}
links {
"System.IO.Compression.FileSystem"
}
filter "configurations:Release"
defines "DEBUG"
optimize "Full"
filter "configurations:Debug"
defines "NDEBUG"
optimize "Debug"
project "ModLoader Manager"
kind "ConsoleApp"
language "C#"
targetdir "bin"
targetname "ror2-modloader-manager"
files {
"install/**.cs"
}
links {
"System.IO.Compression.FileSystem"
}
filter "configurations:Release"
defines "DEBUG"
optimize "Full"
filter "configurations:Debug"
defines "NDEBUG"
optimize "Debug"