diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2021-10-25 15:02:17 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-25 15:02:17 -0400 |
| commit | 499e6764e6fbb2a1e9b107e5b30f45ec2b13046c (patch) | |
| tree | cb814599487f95d9a8436da5ea67aaa5702038f1 /premake5.lua | |
| parent | 8fb8459150efcb61bd65e6e83d94d12c821f6a4e (diff) | |
Enabling slang-llvm for host-callable (#1975)
* #include an absolute path didn't work - because paths were taken to always be relative.
* First integration of slang-pack.
* Use .os
* Add optional dependency support.
* Update github actions/scripts to update deps. aarch64 needs special handling.
* Upgrade to latest slang-pack for ignore-deps support.
* Fix linux build issues.
* Copying slang-llvm from dependencies.
* Add support for LLVM for host callable.
Added CodeGenTransitionMap.
* Remove hack to enable host callable for LLVM.
* Small improvements around transitions/downstream compiler.
* Fix typo in method name.
* Fix comment.
* Update visual studio project.
* Updage slang-llvm to include initialization fix.
* Fix handling extraction of clang version number.
* Fix some formatting problems.
* hack - to see if there is a version problem on CI.
* Remove progress on github action linux.
* Allow version lines to have text before 'prefix'.
* Update slang-binaries to include centos-7 premake binaries.
* Upgrade slang-binaries.
* Upgrade slang-binaries.
* Update slang binaries to have certificates.
* Fix handling of dependency path.
* Update README to include LLVM
Update building to include --deps and --arch
* Include slang-llvm in packages.
* Update building docs.
Diffstat (limited to 'premake5.lua')
| -rw-r--r-- | premake5.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/premake5.lua b/premake5.lua index 57658d6d7..f83499ce2 100644 --- a/premake5.lua +++ b/premake5.lua @@ -1305,6 +1305,22 @@ end dependson { "run-generators" } + -- If we have slang-llvm copy it + local slangLLVMPath = deps:getProjectRelativePath("slang-llvm", "../../..") + + if slangLLVMPath then + + filter { "system:windows" } + postbuildcommands { + "{COPY} " .. slangLLVMPath .."/bin/" .. targetName .. "/release/slang-llvm.dll %{cfg.targetdir}" + } + + filter { "system:linux" } + postbuildcommands { + "{COPY} " .. slangLLVMPath .. "/bin/" .. targetName .. "/release/libslang-llvm.so %{cfg.targetdir}" + } + end + -- If we are not building glslang from source, then be -- sure to copy a binary copy over to the output directory if not buildGlslang then |
