-
Notifications
You must be signed in to change notification settings - Fork 2
/
premake5.lua
54 lines (45 loc) · 1.62 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
workspace "skygfx_vc"
configurations { "Release", "DebugIII", "DebugVC" }
location "build"
files { "shaders/*.*" }
files { "src/*.*" }
includedirs { "shaders" }
includedirs { "src" }
includedirs { os.getenv("RWSDK34") }
includedirs { "external/injector/include" }
includedirs { "external/rwd3d9/source" }
includedirs { "../rwd3d9/source" }
libdirs { "external/rwd3d9/libs" }
libdirs { "../rwd3d9/libs" }
links { "rwd3d9.lib" }
prebuildcommands {
"for /R \"../shaders/ps/\" %%f in (*.hlsl) do \"%DXSDK_DIR%/Utilities/bin/x86/fxc.exe\" /T ps_2_0 /nologo /E main /Fh ../shaders/%%~nf.h %%f",
"for /R \"../shaders/vs/\" %%f in (*.hlsl) do \"%DXSDK_DIR%/Utilities/bin/x86/fxc.exe\" /T vs_2_0 /nologo /E main /Fh ../shaders/%%~nf.h %%f",
}
project "skygfx_vc"
kind "SharedLib"
language "C++"
targetname "skygfx"
targetdir "bin/%{cfg.buildcfg}"
targetextension ".dll"
characterset ("MBCS")
buildoptions { "/Zc:threadSafeInit-" }
filter "configurations:DebugIII"
defines { "DEBUG" }
flags { "StaticRuntime" }
symbols "On"
debugdir "C:/Users/aap/games/gta3"
debugcommand "C:/Users/aap/games/gta3/gta3.exe"
postbuildcommands "copy /y \"$(TargetPath)\" \"C:\\Users\\aap\\games\\gta3\\plugins\\skygfx.dll\""
filter "configurations:DebugVC"
defines { "DEBUG" }
flags { "StaticRuntime" }
symbols "On"
debugdir "C:/Users/aap/games/gtavc"
debugcommand "C:/Users/aap/games/gtavc/gta_vc.exe"
postbuildcommands "copy /y \"$(TargetPath)\" \"C:\\Users\\aap\\games\\gtavc\\plugins\\skygfx.dll\""
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
symbols "On"
flags { "StaticRuntime" }