-
Notifications
You must be signed in to change notification settings - Fork 24
/
premake5.lua
46 lines (38 loc) · 1.35 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
workspace "d3d9-wrapper"
configurations { "Release", "Debug" }
platforms { "Win32", "Win64" }
location "build"
objdir ("build/obj")
buildlog ("build/log/%{prj.name}.log")
buildoptions {"-std:c++latest"}
kind "SharedLib"
language "C++"
targetname "d3d9"
targetextension ".dll"
characterset ("MBCS")
staticruntime "On"
defines { "rsc_CompanyName=\"ThirteenAG\"" }
defines { "rsc_LegalCopyright=\"MIT License\""}
defines { "rsc_FileVersion=\"1.0.0.0\"", "rsc_ProductVersion=\"1.0.0.0\"" }
defines { "rsc_InternalName=\"%{prj.name}\"", "rsc_ProductName=\"%{prj.name}\"", "rsc_OriginalFilename=\"d3d9.dll\"" }
defines { "rsc_FileDescription=\"https://thirteenag.github.io/wfp\"" }
defines { "rsc_UpdateUrl=\"https://github.com/ThirteenAG/%{prj.name}\"" }
files { "source/*.h", "source/*.cpp" }
files { "source/*.def" }
files { "source/*.rc" }
includedirs { "source/dxsdk" }
filter "configurations:Debug"
defines "DEBUG"
symbols "On"
filter "configurations:Release"
defines "NDEBUG"
optimize "On"
filter "platforms:Win32"
architecture "x32"
targetdir "data"
libdirs { "source/dxsdk/lib/x86" }
filter "platforms:Win64"
architecture "x64"
targetdir "data/x64"
libdirs { "source/dxsdk/lib/x64" }
project "d3d9-wrapper"