-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpremake5.lua
126 lines (113 loc) · 2.87 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
124
125
126
workspace "ClassicHud"
configurations {
"ReleaseIII",
"ReleaseVC",
"ReleaseSA",
"DebugIII",
"DebugVC",
"DebugSA"
}
location "project_files"
objdir ("output/obj")
buildlog ("output/log/%{prj.name}.log")
buildoptions "/std:c++latest"
systemversion "latest"
kind "SharedLib"
language "C++"
targetname "ClassicHud"
targetdir "output/asi"
targetextension ".asi"
characterset ("MBCS")
linkoptions "/SAFESEH:NO"
staticruntime "On"
defines { "_CRT_SECURE_NO_WARNINGS", "_CRT_NON_CONFORMING_SWPRINTFS" }
buildoptions { "/sdl-" }
disablewarnings { "4073", "4221", "4244" }
files {
"include/debugmenu/*.*",
"include/extensions/*.*",
"source/*.*",
"source/render/*.*",
"source/settings/*.*"
}
includedirs {
"include/",
"include/debugmenu/",
"include/extensions/",
"$(PLUGIN_SDK_DIR)/shared/",
"$(PLUGIN_SDK_DIR)/shared/game/",
"source/",
"source/render/",
"source/settings/"
}
libdirs {
"$(PLUGIN_SDK_DIR)/output/lib/"
}
filter "DebugIII"
symbols "On"
filter "DebugVC"
symbols "On"
filter "DebugSA"
symbols "On"
filter "ReleaseIII"
flags "LinkTimeOptimization"
optimize "Off"
filter "ReleaseVC"
flags "LinkTimeOptimization"
optimize "Off"
filter "ReleaseSA"
flags "LinkTimeOptimization"
optimize "Off"
filter {}
project "ClassicHud"
filter "configurations:DebugIII"
defines { "GTA3", "PLUGIN_SGV_10EN" }
links { "plugin_iii_d" }
includedirs {
"$(PLUGIN_SDK_DIR)/plugin_iii/",
"$(PLUGIN_SDK_DIR)/plugin_iii/game_iii/"
}
debugdir "$(GTA_III_DIR)"
debugcommand "$(GTA_III_DIR)/gta3.exe"
postbuildcommands "copy /y \"$(TargetPath)\" \"$(GTA_III_DIR)\\scripts\\ClassicHud.asi\""
filter "configurations:DebugVC"
defines { "GTAVC", "PLUGIN_SGV_10EN" }
links { "plugin_vc_d" }
includedirs {
"$(PLUGIN_SDK_DIR)/plugin_vc/",
"$(PLUGIN_SDK_DIR)/plugin_vc/game_vc/"
}
debugdir "$(GTA_VC_DIR)"
debugcommand "$(GTA_VC_DIR)/gta-vc.exe"
postbuildcommands "copy /y \"$(TargetPath)\" \"$(GTA_VC_DIR)\\scripts\\ClassicHud.asi\""
filter "configurations:DebugSA"
defines { "GTASA", "PLUGIN_SGV_10US" }
links { "plugin_d" }
includedirs {
"$(PLUGIN_SDK_DIR)/plugin_sa/",
"$(PLUGIN_SDK_DIR)/plugin_sa/game_sa/"
}
debugdir "$(GTA_SA_DIR)"
debugcommand "$(GTA_SA_DIR)/gta-sa.exe"
postbuildcommands "copy /y \"$(TargetPath)\" \"$(GTA_SA_DIR)\\scripts\\ClassicHud.asi\""
filter "configurations:ReleaseIII"
defines { "GTA3", "PLUGIN_SGV_10EN" }
links { "plugin_iii" }
includedirs {
"$(PLUGIN_SDK_DIR)/plugin_iii/",
"$(PLUGIN_SDK_DIR)/plugin_iii/game_iii/"
}
filter "configurations:ReleaseVC"
defines { "GTAVC", "PLUGIN_SGV_10EN" }
links { "plugin_vc" }
includedirs {
"$(PLUGIN_SDK_DIR)/plugin_vc/",
"$(PLUGIN_SDK_DIR)/plugin_vc/game_vc/"
}
filter "configurations:ReleaseSA"
defines { "GTASA", "PLUGIN_SGV_10US" }
links { "plugin" }
includedirs {
"$(PLUGIN_SDK_DIR)/plugin_sa/",
"$(PLUGIN_SDK_DIR)/plugin_sa/game_sa/"
}