2017-06-16 15:21:31 +00:00
|
|
|
-- _ACTION is a premake global variable and for our usage will be vs2012, vs2013, etc.
|
|
|
|
-- Strip "vs" from this string to make a suffix for solution and project files.
|
2017-08-21 13:47:30 +00:00
|
|
|
_SUFFIX = _ACTION
|
2017-06-16 15:21:31 +00:00
|
|
|
|
|
|
|
workspace "VulkanSample"
|
|
|
|
configurations { "Debug", "Release" }
|
2017-08-21 14:04:40 +00:00
|
|
|
platforms { "x64", "Linux-x64" }
|
2017-06-16 15:21:31 +00:00
|
|
|
location "../build"
|
|
|
|
filename ("VulkanSample_" .. _SUFFIX)
|
|
|
|
startproject "VulkanSample"
|
2021-02-22 13:44:05 +00:00
|
|
|
cppdialect "C++14"
|
2017-06-16 15:21:31 +00:00
|
|
|
|
2017-08-21 14:04:40 +00:00
|
|
|
filter "platforms:x64"
|
2017-06-16 15:21:31 +00:00
|
|
|
system "Windows"
|
|
|
|
architecture "x64"
|
2018-08-07 10:23:55 +00:00
|
|
|
includedirs { "$(VULKAN_SDK)/Include" }
|
2017-07-05 14:47:26 +00:00
|
|
|
libdirs { "$(VULKAN_SDK)/Lib" }
|
2017-06-16 15:21:31 +00:00
|
|
|
|
2017-08-21 13:47:30 +00:00
|
|
|
filter "platforms:Linux-x64"
|
|
|
|
system "Linux"
|
|
|
|
architecture "x64"
|
|
|
|
includedirs { "$(VULKAN_SDK)/include" }
|
|
|
|
libdirs { "$(VULKAN_SDK)/lib" }
|
|
|
|
|
2018-08-07 11:44:20 +00:00
|
|
|
|
2017-06-16 15:21:31 +00:00
|
|
|
project "VulkanSample"
|
|
|
|
kind "ConsoleApp"
|
|
|
|
language "C++"
|
|
|
|
location "../build"
|
|
|
|
filename ("VulkanSample_" .. _SUFFIX)
|
|
|
|
targetdir "../bin"
|
|
|
|
objdir "../build/Desktop_%{_SUFFIX}/%{cfg.platform}/%{cfg.buildcfg}"
|
|
|
|
floatingpoint "Fast"
|
2021-04-19 11:46:49 +00:00
|
|
|
files { "../src/*.h", "../src/*.cpp", "../include/*.h" }
|
2017-06-16 15:21:31 +00:00
|
|
|
flags { "NoPCH", "FatalWarnings" }
|
|
|
|
characterset "Unicode"
|
|
|
|
|
|
|
|
filter "configurations:Debug"
|
|
|
|
defines { "_DEBUG", "DEBUG" }
|
|
|
|
flags { }
|
|
|
|
targetsuffix ("_Debug_" .. _SUFFIX)
|
|
|
|
|
|
|
|
filter "configurations:Release"
|
|
|
|
defines { "NDEBUG" }
|
|
|
|
optimize "On"
|
|
|
|
flags { "LinkTimeOptimization" }
|
|
|
|
targetsuffix ("_Release_" .. _SUFFIX)
|
2017-08-21 13:47:30 +00:00
|
|
|
|
2017-08-21 14:04:40 +00:00
|
|
|
filter { "platforms:x64" }
|
2017-08-21 13:47:30 +00:00
|
|
|
defines { "WIN32", "_CONSOLE", "PROFILE", "_WINDOWS", "_WIN32_WINNT=0x0601" }
|
|
|
|
links { "vulkan-1" }
|
|
|
|
|
|
|
|
filter { "platforms:Linux-x64" }
|
|
|
|
links { "vulkan" }
|
|
|
|
|
2017-08-21 14:04:40 +00:00
|
|
|
filter { "configurations:Debug", "platforms:x64" }
|
2017-08-21 13:47:30 +00:00
|
|
|
buildoptions { "/MDd" }
|
|
|
|
|
|
|
|
filter { "configurations:Release", "platforms:Windows-x64" }
|
2017-06-16 15:21:31 +00:00
|
|
|
buildoptions { "/MD" }
|
2018-08-07 11:44:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
project "VmaReplay"
|
2018-08-27 10:30:53 +00:00
|
|
|
removeplatforms { "Linux-x64" }
|
2018-08-07 11:44:20 +00:00
|
|
|
kind "ConsoleApp"
|
|
|
|
language "C++"
|
|
|
|
location "../build"
|
|
|
|
filename ("VmaReplay_" .. _SUFFIX)
|
|
|
|
targetdir "../bin"
|
|
|
|
objdir "../build/Desktop_%{_SUFFIX}/%{cfg.platform}/%{cfg.buildcfg}"
|
|
|
|
floatingpoint "Fast"
|
2021-04-19 11:46:49 +00:00
|
|
|
files { "../src/VmaReplay/*.h", "../src/VmaReplay/*.cpp", "../include/*.h" }
|
2018-08-07 11:44:20 +00:00
|
|
|
flags { "NoPCH", "FatalWarnings" }
|
|
|
|
characterset "Default"
|
|
|
|
|
|
|
|
filter "configurations:Debug"
|
|
|
|
defines { "_DEBUG", "DEBUG" }
|
|
|
|
flags { }
|
|
|
|
targetsuffix ("_Debug_" .. _SUFFIX)
|
|
|
|
|
|
|
|
filter "configurations:Release"
|
|
|
|
defines { "NDEBUG" }
|
|
|
|
optimize "On"
|
|
|
|
flags { "LinkTimeOptimization" }
|
|
|
|
targetsuffix ("_Release_" .. _SUFFIX)
|
|
|
|
|
|
|
|
filter { "platforms:x64" }
|
|
|
|
defines { "WIN32", "_CONSOLE", "PROFILE", "_WINDOWS", "_WIN32_WINNT=0x0601" }
|
|
|
|
links { "vulkan-1" }
|
|
|
|
|
|
|
|
filter { "platforms:Linux-x64" }
|
|
|
|
links { "vulkan" }
|
|
|
|
|
|
|
|
filter { "configurations:Debug", "platforms:x64" }
|
|
|
|
buildoptions { "/MDd" }
|
|
|
|
|
|
|
|
filter { "configurations:Release", "platforms:Windows-x64" }
|
|
|
|
buildoptions { "/MD" }
|