This repository has been archived by the owner on Mar 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
premake5.lua
110 lines (96 loc) · 2.77 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
workspace "v-hud"
configurations { "ReleaseSA", "DebugSA", "ReleaseVC", "DebugVC", "ReleaseIII", "DebugIII" }
location "project_files"
project "v-hud"
kind "SharedLib"
language "C++"
targetdir "output/asi/"
objdir ("output/obj")
targetextension ".asi"
characterset ("MBCS")
linkoptions "/SAFESEH:NO"
buildoptions { "-std:c++latest", "/permissive" }
defines { "_CRT_SECURE_NO_WARNINGS", "_CRT_NON_CONFORMING_SWPRINTFS", "_USE_MATH_DEFINES" }
disablewarnings { "4244", "4800", "4305", "4073", "4838", "4996", "4221", "4430", "26812", "26495", "6031" }
defines { "_DX9_SDK_INSTALLED" }
links { "d3d9", "d3dx9", "bass" }
files {
"source/**.*",
"vendor/pugixml/src/*.*"
}
includedirs {
"source/**"
}
includedirs {
"vendor/GInputAPI",
"$(PLUGIN_SDK_DIR)/shared/",
"$(PLUGIN_SDK_DIR)/shared/game/",
"vendor/pugixml/src",
"$(DXSDK_DIR)/Include/",
"vendor/ModUtils",
"vendor/bass"
}
filter { "configurations:*III" }
defines { "GTAIII", "PLUGIN_SGV_10EN" }
includedirs {
"$(PLUGIN_SDK_DIR)/plugin_III/",
"$(PLUGIN_SDK_DIR)/plugin_III/game_III/",
"$(RWD3D9_DIR)/source"
}
targetname "VHudIII"
debugdir "$(GTA_III_DIR)"
debugcommand "$(GTA_III_DIR)/gta3.exe"
postbuildcommands "copy /y \"$(TargetPath)\" \"$(GTA_III_DIR)\\scripts\\VHudIII.asi\""
libdirs { "$(RWD3D9_DIR)/libs" }
links { "rwd3d9" }
filter { "configurations:*VC" }
defines { "GTAVC", "PLUGIN_SGV_10EN" }
includedirs {
"$(PLUGIN_SDK_DIR)/plugin_vc/",
"$(PLUGIN_SDK_DIR)/plugin_vc/game_vc/",
"$(RWD3D9_DIR)/source"
}
targetname "VHudVC"
debugdir "$(GTA_VC_DIR)"
debugcommand "$(GTA_VC_DIR)/gta-vc.exe"
postbuildcommands "copy /y \"$(TargetPath)\" \"$(GTA_VC_DIR)\\scripts\\VHudVC.asi\""
libdirs { "$(RWD3D9_DIR)/libs" }
links { "rwd3d9" }
filter { "configurations:*SA" }
defines { "GTASA", "PLUGIN_SGV_10US" }
includedirs {
"$(PLUGIN_SDK_DIR)/plugin_sa/",
"$(PLUGIN_SDK_DIR)/plugin_sa/game_sa/"
}
targetname "VHud"
debugdir "$(GTA_SA_DIR)"
debugcommand "$(GTA_SA_DIR)/gta-sa.exe"
postbuildcommands "copy /y \"$(TargetPath)\" \"$(GTA_SA_DIR)\\scripts\\VHud.asi\""
filter { }
libdirs {
"$(PLUGIN_SDK_DIR)/output/lib/",
"$(DXSDK_DIR)/Lib/x86",
"vendor/bass"
}
filter "configurations:Debug*"
defines { "DEBUG" }
symbols "on"
staticruntime "on"
filter "configurations:Release*"
defines { "NDEBUG" }
symbols "off"
optimize "On"
staticruntime "on"
filter "configurations:ReleaseSA"
links { "plugin" }
filter "configurations:ReleaseVC"
links { "plugin_vc" }
filter "configurations:ReleaseIII"
links { "plugin_iii" }
filter "configurations:DebugSA"
links { "plugin_d" }
filter "configurations:DebugVC"
links { "plugin_vc_d" }
filter "configurations:DebugIII"
links { "plugin_iii_d" }
filter { }