From 5974f3e543b56cd11f28093c5a9d7410b2b3f979 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Sun, 6 Jun 2021 13:20:42 -0400 Subject: Made 'slang-test' the startup project on visual studio (#1873) * #include an absolute path didn't work - because paths were taken to always be relative. * Make slang-test the startup project. --- premake5.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'premake5.lua') diff --git a/premake5.lua b/premake5.lua index a0a5dbb35..1717cdcf2 100644 --- a/premake5.lua +++ b/premake5.lua @@ -154,6 +154,7 @@ enableOptix = not not (_OPTIONS["enable-optix"] == "true" or optixPath) enableProfile = (_OPTIONS["enable-profile"] == "true") enableEmbedStdLib = (_OPTIONS["enable-embed-stdlib"] == "true") enableXlib = (_OPTIONS["enable-xlib"] == "true") + -- This is the path where nvapi is expected to be found nvapiPath = "external/nvapi" @@ -216,6 +217,12 @@ workspace "slang" if buildLocation then location(buildLocation) end + + -- + -- Make slang-test the startup project. + -- + -- https://premake.github.io/docs/startproject + startproject "slang-test" -- The output binary directory will be derived from the OS -- and configuration options, e.g. `bin/windows-x64/debug/` @@ -244,7 +251,6 @@ workspace "slang" architecture "ARM" - filter { "toolset:clang or gcc*" } buildoptions { "-Wno-unused-parameter", "-Wno-type-limits", "-Wno-sign-compare", "-Wno-unused-variable", "-Wno-reorder", "-Wno-switch", "-Wno-return-type", "-Wno-unused-local-typedefs", "-Wno-parentheses", "-fvisibility=hidden" , "-Wno-ignored-optimization-argument", "-Wno-unknown-warning-option", "-Wno-class-memaccess"} @@ -1412,3 +1418,5 @@ standardProject("slang-glslang", "source/slang-glslang") -- end + + -- cgit v1.2.3