From 1296c7bb55b14db24308f31cacdda7f7a71fc937 Mon Sep 17 00:00:00 2001 From: Yong He Date: Sun, 17 Jan 2021 22:00:49 -0800 Subject: Make `gfx` compile to a DLL. (#1660) * Make `gfx` compile to a DLL. * Fix cuda * Fix cuda build * Bug gl screen capture bug. --- build/visual-studio/gfx/gfx.vcxproj | 46 ++++++++++++++++++----------- build/visual-studio/gfx/gfx.vcxproj.filters | 18 ----------- 2 files changed, 28 insertions(+), 36 deletions(-) (limited to 'build/visual-studio/gfx') diff --git a/build/visual-studio/gfx/gfx.vcxproj b/build/visual-studio/gfx/gfx.vcxproj index 789440fb7..0ed5ed233 100644 --- a/build/visual-studio/gfx/gfx.vcxproj +++ b/build/visual-studio/gfx/gfx.vcxproj @@ -27,25 +27,25 @@ - StaticLibrary + DynamicLibrary true Unicode v140 - StaticLibrary + DynamicLibrary true Unicode v140 - StaticLibrary + DynamicLibrary false Unicode v140 - StaticLibrary + DynamicLibrary false Unicode v140 @@ -67,34 +67,38 @@ + true ..\..\..\bin\windows-x86\debug\ ..\..\..\intermediate\windows-x86\debug\gfx\ gfx - .lib + .dll + true ..\..\..\bin\windows-x64\debug\ ..\..\..\intermediate\windows-x64\debug\gfx\ gfx - .lib + .dll + false ..\..\..\bin\windows-x86\release\ ..\..\..\intermediate\windows-x86\release\gfx\ gfx - .lib + .dll + false ..\..\..\bin\windows-x64\release\ ..\..\..\intermediate\windows-x64\release\gfx\ gfx - .lib + .dll NotUsing Level3 - _DEBUG;%(PreprocessorDefinitions) + _DEBUG;SLANG_GFX_DYNAMIC;SLANG_GFX_DYNAMIC_EXPORT;%(PreprocessorDefinitions) ..\..\..;..\..\..\external;..\..\..\source;%(AdditionalIncludeDirectories) EditAndContinue Disabled @@ -103,6 +107,7 @@ Windows true + ..\..\..\bin\windows-x86\debug\gfx.lib "$(SolutionDir)tools\copy-hlsl-libs.bat" "$(WindowsSdkDir)Redist/D3D/x86/" "../../../bin/windows-x86/debug/" @@ -112,7 +117,7 @@ NotUsing Level3 - _DEBUG;%(PreprocessorDefinitions) + _DEBUG;SLANG_GFX_DYNAMIC;SLANG_GFX_DYNAMIC_EXPORT;%(PreprocessorDefinitions) ..\..\..;..\..\..\external;..\..\..\source;%(AdditionalIncludeDirectories) EditAndContinue Disabled @@ -121,6 +126,7 @@ Windows true + ..\..\..\bin\windows-x64\debug\gfx.lib "$(SolutionDir)tools\copy-hlsl-libs.bat" "$(WindowsSdkDir)Redist/D3D/x64/" "../../../bin/windows-x64/debug/" @@ -130,7 +136,7 @@ NotUsing Level3 - NDEBUG;%(PreprocessorDefinitions) + NDEBUG;SLANG_GFX_DYNAMIC;SLANG_GFX_DYNAMIC_EXPORT;%(PreprocessorDefinitions) ..\..\..;..\..\..\external;..\..\..\source;%(AdditionalIncludeDirectories) Full true @@ -143,6 +149,7 @@ Windows true true + ..\..\..\bin\windows-x86\release\gfx.lib "$(SolutionDir)tools\copy-hlsl-libs.bat" "$(WindowsSdkDir)Redist/D3D/x86/" "../../../bin/windows-x86/release/" @@ -152,7 +159,7 @@ NotUsing Level3 - NDEBUG;%(PreprocessorDefinitions) + NDEBUG;SLANG_GFX_DYNAMIC;SLANG_GFX_DYNAMIC_EXPORT;%(PreprocessorDefinitions) ..\..\..;..\..\..\external;..\..\..\source;%(AdditionalIncludeDirectories) Full true @@ -165,6 +172,7 @@ Windows true true + ..\..\..\bin\windows-x64\release\gfx.lib "$(SolutionDir)tools\copy-hlsl-libs.bat" "$(WindowsSdkDir)Redist/D3D/x64/" "../../../bin/windows-x64/release/" @@ -185,9 +193,6 @@ - - - @@ -209,9 +214,6 @@ - - - @@ -219,6 +221,14 @@ + + + {F9BE7957-8399-899E-0C49-E714FDDD4B65} + + + {DB00DA62-0533-4AFD-B59F-A67D5B3A0808} + + diff --git a/build/visual-studio/gfx/gfx.vcxproj.filters b/build/visual-studio/gfx/gfx.vcxproj.filters index 90caef2f9..97658fffa 100644 --- a/build/visual-studio/gfx/gfx.vcxproj.filters +++ b/build/visual-studio/gfx/gfx.vcxproj.filters @@ -51,15 +51,6 @@ Header Files - - Header Files - - - Header Files - - - Header Files - Header Files @@ -119,15 +110,6 @@ Source Files - - Source Files - - - Source Files - - - Source Files - Source Files -- cgit v1.2.3