-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathpremake5.lua
More file actions
50 lines (41 loc) · 1.48 KB
/
premake5.lua
File metadata and controls
50 lines (41 loc) · 1.48 KB
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
_AMD_SAMPLE_NAME = "HelloD3D12"
dofile ("../../premake/amd_premake_util.lua")
workspace (_AMD_SAMPLE_NAME)
configurations { "Debug", "Release" }
platforms { "x64" }
location "../build"
filename (_AMD_SAMPLE_NAME .. _AMD_VS_SUFFIX)
startproject (_AMD_SAMPLE_NAME)
filter "platforms:x64"
system "Windows"
architecture "x64"
project (_AMD_SAMPLE_NAME)
kind "WindowedApp"
language "C++"
location "../build"
filename (_AMD_SAMPLE_NAME .. _AMD_VS_SUFFIX)
uuid "3F3B938C-ABC6-0051-B4D7-834520E25C51"
targetdir "../bin"
objdir "../build/%{_AMD_SAMPLE_DIR_LAYOUT}"
warnings "Extra"
floatingpoint "Fast"
-- Specify WindowsTargetPlatformVersion here for VS2015
systemversion (_AMD_WIN_SDK_VERSION)
files { "../src/**.h", "../src/**.cpp" }
links { "d3dcompiler", "dxguid", "d3d12", "dxgi" }
defines { "_CRT_SECURE_NO_WARNINGS" }
filter "configurations:Debug"
defines { "WIN32", "_DEBUG", "DEBUG", "_WINDOWS" }
symbols "On"
characterset ("Unicode")
entrypoint "WinMainCRTStartup"
flags { "FatalWarnings"}
targetsuffix ("_Debug" .. _AMD_VS_SUFFIX)
filter "configurations:Release"
defines { "WIN32", "NDEBUG", "PROFILE", "_WINDOWS" }
symbols "On"
characterset ("Unicode")
entrypoint "WinMainCRTStartup"
flags { "LinkTimeOptimization", "FatalWarnings" }
targetsuffix ("_Release" .. _AMD_VS_SUFFIX)
optimize "On"