-
Notifications
You must be signed in to change notification settings - Fork 1
/
premake5.lua
65 lines (53 loc) · 1.43 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
workspace "gta2-debug"
configurations { "ReleaseII", "DebugII" }
location "project_files"
project "gta2-debug"
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:*II" }
defines { "GTA2", "PLUGIN_SGV_96EN" }
includedirs {
"$(PLUGIN_SDK_DIR)/plugin_II/",
"$(PLUGIN_SDK_DIR)/plugin_II/game_II/",
}
targetname "GTA2Debug"
debugdir "$(GTA_II_DIR)"
debugcommand "$(GTA_II_DIR)/gta2.exe"
postbuildcommands "copy /y \"$(TargetPath)\" \"$(GTA_II_DIR)\\scripts\\GTA2Debug.asi\""
filter { }
libdirs {
"$(PLUGIN_SDK_DIR)/output/lib/",
}
filter "configurations:Debug*"
defines { "DEBUG" }
symbols "on"
staticruntime "on"
filter "configurations:Release*"
defines { "NDEBUG" }
symbols "off"
optimize "On"
staticruntime "on"
filter "configurations:ReleaseII"
links { "plugin_ii" }
filter "configurations:DebugII"
links { "plugin_ii_d" }
filter { }