Browse Source

Copy the bundled Clang builtin include files folder to the build folder.

pull/683/merge
João Matos 9 years ago
parent
commit
e5a667afc3
  1. 21
      build/LLVM.lua
  2. 1
      src/CppParser/premake4.lua

21
build/LLVM.lua

@ -66,6 +66,27 @@ function SetupLLVMIncludes() @@ -66,6 +66,27 @@ function SetupLLVMIncludes()
configuration(c)
end
function CopyClangIncludes()
local clangBuiltinIncludeDir = path.join(LLVMRootDir, "lib", "clang")
if LLVMDirPerConfiguration then
local clangBuiltinDebug = path.join(LLVMRootDirDebug, "lib", "clang")
local clangBuiltinRelease = path.join(LLVMRootDirRelease, "lib", "clang")
if os.isdir(clangBuiltinDebug) then
clangBuiltinIncludeDir = clangBuiltinDebug
end
if os.isdir(clangBuiltinRelease) then
clangBuiltinIncludeDir = clangBuiltinRelease
end
end
if os.isdir(clangBuiltinIncludeDir) then
prebuildcommands { string.format("{COPY} %s %%{cfg.buildtarget.directory}", clangBuiltinIncludeDir) }
end
end
function SetupLLVMLibs()
local c = configuration()

1
src/CppParser/premake4.lua

@ -41,6 +41,7 @@ project "CppSharp.CppParser" @@ -41,6 +41,7 @@ project "CppSharp.CppParser"
SearchLLVM()
SetupLLVMIncludes()
SetupLLVMLibs()
CopyClangIncludes()
configuration "*"

Loading…
Cancel
Save