forked from aap/skygfx
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpremake5.lua
53 lines (45 loc) · 1.89 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
workspace "skygfx"
configurations { "Release", "Debug" }
location "build"
defines { "rsc_CompanyName=\"aap\"" }
defines { "rsc_LegalCopyright=\"\""}
defines { "rsc_FileVersion=\"4.2.0.0\"", "rsc_ProductVersion=\"4.2.0.0\"" }
defines { "rsc_InternalName=\"%{prj.name}\"", "rsc_ProductName=\"%{prj.name}\"", "rsc_OriginalFilename=\"%{prj.name}.dll\"" }
defines { "rsc_FileDescription=\"https://github.com/aap\"" }
defines { "rsc_UpdateUrl=\"https://github.com/aap/skygfx\"" }
files { "external/*.*" }
files { "resources/*.*" }
files { "shaders/*.*" }
files { "src/*.*" }
includedirs { "external/injector/include" }
includedirs { "external" }
includedirs { "resources" }
includedirs { "shaders" }
includedirs { "src" }
includedirs { os.getenv("RWSDK36") }
prebuildcommands {
"for /r "../shaders/ps/2_a/" %%f in (*.hlsl) do "fxc.exe" /T ps_2_a /nologo /E main /Fo ../resources/cso/%%~nf.cso %%f",
"for /r "../shaders/ps/" %%f in (*.hlsl) do "fxc.exe" /T ps_2_a /nologo /E main /Fo ../resources/cso/%%~nf.cso %%f",
"for /r "../shaders/vs/" %%f in (*.hlsl) do "fxc.exe" /T vs_2_0 /nologo /E main /Fo ../resources/cso/%%~nf.cso %%f",
}
project "skygfx"
kind "SharedLib"
language "C++"
targetdir "bin/%{cfg.buildcfg}"
targetextension ".dll"
characterset ("MBCS")
buildoptions { "/Zc:threadSafeInit-" }
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
flags { "StaticRuntime" }
debugdir "C:/Users/aap/games/gtasa"
debugcommand "C:/Users/aap/games/gtasa/gta_sa.exe"
postbuildcommands "copy /y \"$(TargetPath)\" \"C:\\Users\\aap\\games\\gtasa\\plugins\\skygfx.dll\""
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
flags { "StaticRuntime" }
debugdir "C:/Users/aap/games/gtasa"
debugcommand "C:/Users/aap/games/gtasa/gta_sa.exe"
postbuildcommands "copy /y \"$(TargetPath)\" \"C:\\Users\\aap\\games\\gtasa\\plugins\\skygfx.dll\""