From 499e6764e6fbb2a1e9b107e5b30f45ec2b13046c Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Mon, 25 Oct 2021 15:02:17 -0400 Subject: 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. --- premake5.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'premake5.lua') 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 -- cgit v1.2.3