forked from EmosewaMC/lu-utility-mods
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
65 lines (47 loc) · 1.83 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
newoption {
trigger = "lu_dir",
value = "path",
description = "The path to LEGO Universe (Output Directory)"
}
CharacterSaverProjectName = "CharacterSaver"
CharacterSaverStandaloneProjectName = "CharacterSaverStandalone"
AuthPortChangerName = "AuthPortChanger"
AuthPortChangerStandaloneProjectName = "AuthPortChangerStandalone"
CharacterSaverFolder = path.getabsolute("").."\\"
workspace ("Lu_mods")
targetdir (_OPTIONS["lu_dir"])
kind ("SharedLib")
language ("C++")
conformancemode ("On")
characterset ("MBCS")
cppdialect ("c++20")
configurations {"Debug", "Release" }
libdirs { "$(TargetDir)", "$(TargetDir)\\.." }
flags { "MultiProcessorCompile" }
project (CharacterSaverProjectName)
targetdir ("build/"..CharacterSaverProjectName)
files { "dllmain.cpp" }
-- The standalone version can be run on its own with no other mods. Place in client folder with legouniverse.exe to use.
project (CharacterSaverStandaloneProjectName)
targetdir ("build/"..CharacterSaverStandaloneProjectName)
files { "dllmain.cpp", "Source.def" }
defines { "STANDALONE=1" }
targetname ("dinput8")
project (AuthPortChangerName)
targetdir ("build/"..AuthPortChangerName)
files { "dllmainAuthPortChanger.cpp" }
-- The standalone version can be run on its own with no other mods. Place in client folder with legouniverse.exe to use.
project (AuthPortChangerStandaloneProjectName)
targetdir ("build/"..AuthPortChangerStandaloneProjectName)
files { "dllmainAuthPortChanger.cpp", "Source.def" }
defines { "STANDALONE=1" }
targetname ("dinput8")
project ("*")
-- Needs to be at the bottom due to scope
filter ("configurations:Debug")
symbols ("On")
optimize ("Off")
defines {"DEBUG", "_DEBUG", "WIN32_LEAN_AND_MEAN", "_WINDLL"}
filter ("configurations:Release")
optimize ("On")
defines {"NDEBUG", "WIN32_LEAN_AND_MEAN", "_WINDLL"}