-
Notifications
You must be signed in to change notification settings - Fork 17
/
premake5.lua
52 lines (44 loc) · 1.84 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
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/\" %%f in (*.hlsl) do \"%DXSDK_DIR%/Utilities/bin/x86/fxc.exe\" /T ps_2_0 /nologo /E main /Fo ../resources/cso/%%~nf.cso %%f",
"for /R \"../shaders/vs/\" %%f in (*.hlsl) do \"%DXSDK_DIR%/Utilities/bin/x86/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\""