-
Notifications
You must be signed in to change notification settings - Fork 2
/
premake5.lua
68 lines (56 loc) · 1.51 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
workspace "iv-radiowheel"
configurations { "ReleaseIV", "DebugIV" }
location "project_files"
project "iv-radiowheel"
kind "SharedLib"
language "C++"
targetdir "output/asi/"
objdir ("output/obj")
targetextension ".asi"
characterset ("MBCS")
linkoptions "/SAFESEH:NO"
buildoptions { "/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" }
cppdialect "c++17"
files {
"source/**.*",
}
includedirs {
"source/**",
"vendor/**"
}
includedirs {
"$(PLUGIN_SDK_DIR)/shared/",
"$(PLUGIN_SDK_DIR)/shared/game/",
}
filter { "configurations:*IV" }
defines { "GTAIV", "PLUGIN_SGV_CE", "RAGE" }
includedirs {
"$(PLUGIN_SDK_DIR)/plugin_IV/",
"$(PLUGIN_SDK_DIR)/plugin_IV/game_IV/",
}
targetname "RadioWheelIV"
debugdir "$(GTA_IV_DIR)"
debugcommand "$(GTA_IV_DIR)/GTAIV.exe"
postbuildcommands "copy /y \"$(TargetPath)\" \"$(GTA_IV_DIR)\\plugins\\RadioWheelIV.asi\""
filter { }
libdirs {
"$(PLUGIN_SDK_DIR)/output/lib/",
"$(DXSDK_DIR)/Lib/x86",
"$(PLUGIN_SDK_DIR)\\shared\\bass",
}
filter "configurations:Debug*"
defines { "DEBUG" }
symbols "on"
staticruntime "on"
filter "configurations:Release*"
defines { "NDEBUG" }
symbols "off"
optimize "On"
staticruntime "on"
filter "configurations:ReleaseIV"
links { "plugin_iv" }
filter "configurations:DebugIV"
links { "plugin_iv_d" }
filter { }