summaryrefslogblamecommitdiffstats
path: root/premake5.lua
blob: 6966ec16bd1dc9095474ad9332b9af0b555f5af2 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
               
                                                                                  


                           




                                     

                                     

                                   
                                  



                                    
 
                             








                                       

                                      
                                      
                                     
 
                                       
                                            
 
                               







                                       
                                 


                                     
                                  
                            


                                                                                                     



                                       
                                  

                                                                  
                                                                                                     




                                         

                                                      
                                      
                                                  



                                       


                                         
                                  
workspace "re3"
	configurations { "DebugCI", "ReleaseCI", "Release", "ReleaseFH", "Debug" }
	location "build"

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

	includedirs { "src" }
	includedirs { "src/animation" }
	includedirs { "src/audio" }
	includedirs { "src/control" }
	includedirs { "src/core" }
	includedirs { "src/entities" }
	includedirs { "src/modelinfo" }
	includedirs { "src/objects" }
	includedirs { "src/peds" }
	includedirs { "src/render" }
	includedirs { "src/skel/" }
	includedirs { "src/skel/win" }
	includedirs { "src/vehicles" }
	includedirs { "src/weapons" }

	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 "$(GTA_III_RE_DIR)"
		debugcommand "$(GTA_III_RE_DIR)/gta3.exe"
		postbuildcommands "copy /y \"$(TargetPath)\" \"$(GTA_III_RE_DIR)\\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)\" \"$(GTA_III_RE_DIR)\\plugins\\re3.dll\""
	filter "configurations:ReleaseFH"
		defines { "NDEBUG" }
		symbols "Full"
		optimize "off"
		staticruntime "on"
		debugdir "$(GTA_III_DIR)"
		debugcommand "$(GTA_III_DIR)/gta3.exe"
		targetextension ".asi"
		targetdir "$(GTA_III_DIR)/scripts"
	filter "configurations:DebugCI"
		defines { "DEBUG" }
		symbols "On"
		staticruntime "on"
	filter "configurations:ReleaseCI"
		defines { "NDEBUG" }
		optimize "On"
		staticruntime "on"