-
Notifications
You must be signed in to change notification settings - Fork 1
/
premake5.lua
100 lines (86 loc) · 2.53 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
workspace "menu-map"
configurations { "ReleaseSA", "DebugSA", "ReleaseVC", "DebugVC", "ReleaseIII", "DebugIII" }
location "project_files"
project "menu-map"
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" }
files {
"source/**.*",
}
includedirs {
"source/**",
"vendor/**"
}
includedirs {
"$(PLUGIN_SDK_DIR)/shared/",
"$(PLUGIN_SDK_DIR)/shared/game/",
}
filter { "configurations:*III" }
links { "d3d8", "d3dx8" }
defines { "GTA3", "PLUGIN_SGV_10EN" }
includedirs {
"$(PLUGIN_SDK_DIR)/plugin_III/",
"$(PLUGIN_SDK_DIR)/plugin_III/game_III/",
}
targetname "MenuMapIII"
debugdir "$(GTA_III_DIR)"
debugcommand "$(GTA_III_DIR)/gta3.exe"
postbuildcommands "copy /y \"$(TargetPath)\" \"$(GTA_III_DIR)\\scripts\\MenuMapIII.asi\""
filter { "configurations:*VC" }
links { "d3d8", "d3dx8" }
defines { "GTAVC", "PLUGIN_SGV_10EN" }
includedirs {
"$(PLUGIN_SDK_DIR)/plugin_vc/",
"$(PLUGIN_SDK_DIR)/plugin_vc/game_vc/",
"$(RWD3D9_DIR)/source"
}
targetname "MenuMapVC"
debugdir "$(GTA_VC_DIR)"
debugcommand "$(GTA_VC_DIR)/gta-vc.exe"
postbuildcommands "copy /y \"$(TargetPath)\" \"$(GTA_VC_DIR)\\scripts\\MenuMapVC.asi\""
filter { "configurations:*SA" }
defines { "GTASA", "PLUGIN_SGV_10US" }
includedirs {
"$(PLUGIN_SDK_DIR)/plugin_sa/",
"$(PLUGIN_SDK_DIR)/plugin_sa/game_sa/",
}
targetname "MenuMapSA"
debugdir "$(GTA_SA_DIR)"
debugcommand "$(GTA_SA_DIR)/gta-sa.exe"
postbuildcommands "copy /y \"$(TargetPath)\" \"$(GTA_SA_DIR)\\scripts\\MenuMapSA.asi\""
filter { }
libdirs {
"vendor/dx8",
"$(PLUGIN_SDK_DIR)/output/lib/",
"$(DXSDK_DIR)/Lib/x86",
}
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 { }