diff options
Diffstat (limited to 'premake5.lua')
| -rw-r--r-- | premake5.lua | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/premake5.lua b/premake5.lua index d59c03f90..9b985e29d 100644 --- a/premake5.lua +++ b/premake5.lua @@ -628,7 +628,7 @@ newoption { -- build items needed for other dependencies --- - function generatorProject(name, sourcePath) + function generatorProject(name, sourcePath, isSharedLib) -- We use the `group` command here to specify that the -- next project we create shold be placed into a group -- named "generator" in a generated IDE solution/workspace. @@ -642,9 +642,13 @@ newoption { -- Set up the project, but do NOT add any source files. baseSlangProject(name, sourcePath) - -- For now we just use static lib to force something + -- By default, just use static lib to force something -- to build. - kind "StaticLib" + if isSharedLib then + kind "SharedLib" + else + kind "StaticLib" + end end -- @@ -1222,7 +1226,7 @@ standardProject("slang-rt", "source/slang-rt") end if enableEmbedStdLib then - generatorProject("embed-stdlib-generator", nil) + generatorProject("embed-stdlib-generator", nil, true) -- We include these, even though they are not really part of the dummy -- build, so that the filters below can pick up the appropriate locations. |
