From d631233f4fcc2e41a9e7d7e0d3e277c90c81582b Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Thu, 14 Nov 2019 11:03:02 -0800 Subject: Enable use of pre-built glslang binaries (#1120) * Enable use of pre-built glslang binaries This change uses an updated version of the `slang-binaries` submodule that includes pre-built versions of `slang-glslang.dll` and `libslang-glslang.so`, and enables the build of the main Slang project to rely on these binaries instead of building them from source. An option to the premake build file can be used to generate the appropriate project files for `slang-glslang`, which should enable us to build updated binaries as needed. The default option is to *not* build those projects, so that we can reduce build times in the common case (and on CI). * fixup: different copy commands per platform * fixup * fixup * fixup: remove stray line added to premake file by accident --- source/core/core.vcxproj | 4 +- source/core/core.vcxproj.filters | 4 +- source/slang/slang.vcxproj | 26 +++++++---- source/slang/slang.vcxproj.filters | 90 +++++++++++++++++++------------------- 4 files changed, 67 insertions(+), 57 deletions(-) (limited to 'source') diff --git a/source/core/core.vcxproj b/source/core/core.vcxproj index 5b42dc81b..e0cc33569 100644 --- a/source/core/core.vcxproj +++ b/source/core/core.vcxproj @@ -241,9 +241,7 @@ - - Document - + diff --git a/source/core/core.vcxproj.filters b/source/core/core.vcxproj.filters index 8184637f2..6042a1c22 100644 --- a/source/core/core.vcxproj.filters +++ b/source/core/core.vcxproj.filters @@ -214,8 +214,8 @@ - + Source Files - + \ No newline at end of file diff --git a/source/slang/slang.vcxproj b/source/slang/slang.vcxproj index bc129a2c6..9b2b4d7ea 100644 --- a/source/slang/slang.vcxproj +++ b/source/slang/slang.vcxproj @@ -109,6 +109,9 @@ ..\..\bin\windows-x86\debug\slang.lib true + + IF EXIST ..\..\external\slang-binaries\bin\windows-x86\slang-glslang.dll\ (xcopy /Q /E /Y /I ..\..\external\slang-binaries\bin\windows-x86\slang-glslang.dll ..\..\bin\windows-x86\debug > nul) ELSE (xcopy /Q /Y /I ..\..\external\slang-binaries\bin\windows-x86\slang-glslang.dll ..\..\bin\windows-x86\debug > nul) + @@ -126,6 +129,9 @@ ..\..\bin\windows-x64\debug\slang.lib true + + IF EXIST ..\..\external\slang-binaries\bin\windows-x64\slang-glslang.dll\ (xcopy /Q /E /Y /I ..\..\external\slang-binaries\bin\windows-x64\slang-glslang.dll ..\..\bin\windows-x64\debug > nul) ELSE (xcopy /Q /Y /I ..\..\external\slang-binaries\bin\windows-x64\slang-glslang.dll ..\..\bin\windows-x64\debug > nul) + @@ -147,6 +153,9 @@ ..\..\bin\windows-x86\release\slang.lib true + + IF EXIST ..\..\external\slang-binaries\bin\windows-x86\slang-glslang.dll\ (xcopy /Q /E /Y /I ..\..\external\slang-binaries\bin\windows-x86\slang-glslang.dll ..\..\bin\windows-x86\release > nul) ELSE (xcopy /Q /Y /I ..\..\external\slang-binaries\bin\windows-x86\slang-glslang.dll ..\..\bin\windows-x86\release > nul) + @@ -168,6 +177,9 @@ ..\..\bin\windows-x64\release\slang.lib true + + IF EXIST ..\..\external\slang-binaries\bin\windows-x64\slang-glslang.dll\ (xcopy /Q /E /Y /I ..\..\external\slang-binaries\bin\windows-x64\slang-glslang.dll ..\..\bin\windows-x64\release > nul) ELSE (xcopy /Q /Y /I ..\..\external\slang-binaries\bin\windows-x64\slang-glslang.dll ..\..\bin\windows-x64\release > nul) + @@ -311,12 +323,6 @@ - - - - Document - - Document @@ -324,7 +330,7 @@ "../../bin/windows-x64/debug/slang-generate" %(Identity) "../../bin/windows-x86/release/slang-generate" %(Identity) "../../bin/windows-x64/release/slang-generate" %(Identity) - %(Identity).h + ../../core.meta.slang.h slang-generate %(Identity) ../../bin/windows-x86/debug/slang-generate.exe ../../bin/windows-x64/debug/slang-generate.exe @@ -337,7 +343,7 @@ "../../bin/windows-x64/debug/slang-generate" %(Identity) "../../bin/windows-x86/release/slang-generate" %(Identity) "../../bin/windows-x64/release/slang-generate" %(Identity) - %(Identity).h + ../../hlsl.meta.slang.h slang-generate %(Identity) ../../bin/windows-x86/debug/slang-generate.exe ../../bin/windows-x64/debug/slang-generate.exe @@ -345,6 +351,10 @@ ../../bin/windows-x64/release/slang-generate.exe + + + + {F9BE7957-8399-899E-0C49-E714FDDD4B65} diff --git a/source/slang/slang.vcxproj.filters b/source/slang/slang.vcxproj.filters index 943ce8281..b2c045fa8 100644 --- a/source/slang/slang.vcxproj.filters +++ b/source/slang/slang.vcxproj.filters @@ -1,4 +1,4 @@ - + @@ -21,6 +21,9 @@ Header Files + + Header Files + Header Files @@ -123,6 +126,9 @@ Header Files + + Header Files + Header Files @@ -162,6 +168,9 @@ Header Files + + Header Files + Header Files @@ -219,17 +228,38 @@ Header Files - - Header Files - - - Header Files - - - Header Files - + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + Source Files @@ -320,6 +350,9 @@ Source Files + + Source Files + Source Files @@ -392,39 +425,6 @@ Source Files - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - @@ -438,6 +438,8 @@ Source Files - + + Source Files + \ No newline at end of file -- cgit v1.2.3