diff options
| author | Yong He <yonghe@outlook.com> | 2021-03-31 11:35:17 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-31 11:35:17 -0700 |
| commit | 3f1632a1450a5879f337b4bd178e48880cd583f8 (patch) | |
| tree | db4adc2ac0f6113dfd4a97a0e2f7a0c4312ef48b /premake5.lua | |
| parent | 5fde038b1a6b3c8b335cd5b380c3ee8d15403052 (diff) | |
`gfx` explicit transient resource management. (#1774)
Diffstat (limited to 'premake5.lua')
| -rw-r--r-- | premake5.lua | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/premake5.lua b/premake5.lua index 7052d1de9..c53c4f48a 100644 --- a/premake5.lua +++ b/premake5.lua @@ -548,6 +548,17 @@ function toolSharedLibrary(name) kind "SharedLib" end +function exampleLibrary(name) + group "examples" + baseSlangProject(name, "examples/"..name) + kind "StaticLib" + includedirs { ".", "tools" } + links { "gfx", "slang", "platform", "gfx-util", "core"} + addCUDAIfEnabled(); +end + +exampleLibrary "example-base" + -- Finally we have the example programs that show how to use Slang. -- function example(name) @@ -579,7 +590,7 @@ function example(name) -- and the `gfx` abstraction layer (which in turn -- depends on the `core` library). We specify all of that here, -- rather than in each example. - links { "slang", "core", "gfx", "gfx-util", "platform" } + links { "example-base", "slang", "gfx", "gfx-util", "platform", "core" } if isTargetWindows then else |
