-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
61 lines (51 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
workspace "camerashakeathighspeed-sa"
configurations { "Release", "Debug" }
location "project_files"
project "camerashakeathighspeed-sa"
files {
"source/**.*"
}
includedirs {
"source/**",
}
includedirs {
"$(PLUGIN_SDK_DIR)/shared/",
"$(PLUGIN_SDK_DIR)/shared/game/",
"$(PLUGIN_SDK_DIR)/plugin_sa/",
"$(PLUGIN_SDK_DIR)/plugin_sa/game_sa/",
"$(DXSDK_DIR)/Include/"
}
libdirs {
"$(PLUGIN_SDK_DIR)/output/lib/",
"$(DXSDK_DIR)/Lib/x86"
}
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", "6031"}
defines { "GTASA", "PLUGIN_SGV_10US", "_DX9_SDK_INSTALLED" }
filter "configurations:Debug"
links { "plugin_d" }
targetname "camerashakeathighspeed-sa"
defines { "DEBUG" }
symbols "on"
staticruntime "on"
debugdir "$(GTA_SA_DIR)"
debugcommand "$(GTA_SA_DIR)/gta-sa.exe"
postbuildcommands "copy /y \"$(TargetPath)\" \"$(GTA_SA_DIR)\\scripts\\CamShake-sa.asi\""
filter "configurations:Release"
links { "plugin" }
targetname "camerashakeathighspeed-sa"
defines { "NDEBUG" }
symbols "off"
optimize "On"
staticruntime "on"
debugdir "$(GTA_SA_DIR)"
debugcommand "$(GTA_SA_DIR)/gta-sa.exe"
postbuildcommands "copy /y \"$(TargetPath)\" \"$(GTA_SA_DIR)\\scripts\\CamShake-sa.asi\""