summaryrefslogtreecommitdiff
path: root/premake5.lua
blob: 49d0d502a320d420de73d4ca405588207f13eeb3 (plain)
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
workspace "re3"
	configurations { "DebugCI", "ReleaseCI", "Release", "ReleaseFH", "Debug" }
	location "build"

	files { "src/*.*" }
	files { "src/skel/*.*" }
	files { "src/skel/win/*.*" }
	files { "src/math/*.*" }
	files { "src/modelinfo/*.*" }
	files { "src/entities/*.*" }
	files { "src/weapons/*.*" }
	files { "src/render/*.*" }
	files { "src/control/*.*" }
	files { "src/animation/*.*" }
	files { "src/audio/*.*" }

	includedirs { "src" }
	includedirs { "src/skel/" }
	includedirs { "src/skel/win" }
	includedirs { "src/modelinfo" }
	includedirs { "src/entities" }
	includedirs { "src/weapons" }
	includedirs { "src/render" }
	includedirs { "src/control" }
	includedirs { "src/audio" }
	includedirs { "src/animation" }
	includedirs { "dxsdk/include" }
	includedirs { "rwsdk/include/d3d8" }
	
	libdirs { "dxsdk/lib" }

project "re3"
	kind "SharedLib"
	language "C++"
	targetname "re3"
	targetdir "bin/%{cfg.buildcfg}"
	targetextension ".dll"
	characterset ("MBCS")
	linkoptions "/SAFESEH:NO"

	filter "configurations:Debug"
		defines { "DEBUG" }
		staticruntime "on"
		symbols "On"
		debugdir "C:/Users/aap/games/gta3_re"
		debugcommand "C:/Users/aap/games/gta3_re/gta3.exe"
		postbuildcommands "copy /y \"$(TargetPath)\" \"C:\\Users\\aap\\games\\gta3_re\\plugins\\re3.dll\""

	filter "configurations:Release"
		defines { "NDEBUG" }
		optimize "On"
		staticruntime "on"
		debugdir "C:/Users/aap/games/gta3_re"
		debugcommand "C:/Users/aap/games/gta3_re/gta3.exe"
		postbuildcommands "copy /y \"$(TargetPath)\" \"C:\\Users\\aap\\games\\gta3_re\\plugins\\re3.dll\""
	filter "configurations:ReleaseFH"
		defines { "NDEBUG" }
		symbols "Full"
		optimize "off"
		staticruntime "on"
		debugdir "F:/Rockstar Games/GTAIII"
		debugcommand "F:/Rockstar Games/GTAIII/gta3.exe"
		targetextension ".asi"
		targetdir "F:/Rockstar Games/GTAIII/scripts"
	filter "configurations:DebugCI"
		defines { "DEBUG" }
		symbols "On"
		staticruntime "on"
	filter "configurations:ReleaseCI"
		defines { "NDEBUG" }
		optimize "On"
		staticruntime "on"