Browse Source

Added SetupLLVMIncludes in build files.

pull/238/head
triton 11 years ago
parent
commit
8184de63dc
  1. 10
      build/LLVM.lua
  2. 1
      src/CppParser/Bindings/premake4.lua
  3. 1
      src/CppParser/premake4.lua
  4. 1
      src/Parser/Parser.lua

10
build/LLVM.lua

@ -5,7 +5,7 @@ LLVMBuildDir = "../../deps/llvm/build/" @@ -5,7 +5,7 @@ LLVMBuildDir = "../../deps/llvm/build/"
-- TODO: Search for available system dependencies
function SetupLLVMLibs()
function SetupLLVMIncludes()
local c = configuration()
includedirs
@ -16,7 +16,13 @@ function SetupLLVMLibs() @@ -16,7 +16,13 @@ function SetupLLVMLibs()
path.join(LLVMBuildDir, "include"),
path.join(LLVMBuildDir, "tools/clang/include"),
}
configuration(c)
end
function SetupLLVMLibs()
local c = configuration()
libdirs { path.join(LLVMBuildDir, "lib") }
configuration { "Debug", "vs*" }

1
src/CppParser/Bindings/premake4.lua

@ -41,6 +41,7 @@ if string.starts(action, "vs") and os.is_windows() then @@ -41,6 +41,7 @@ if string.starts(action, "vs") and os.is_windows() then
kind "SharedLib"
language "C++"
SetupNativeProject()
SetupLLVMIncludes()
dependson { "CppSharp.CppParser" }
flags { common_flags, "Managed" }

1
src/CppParser/premake4.lua

@ -28,6 +28,7 @@ project "CppSharp.CppParser" @@ -28,6 +28,7 @@ project "CppSharp.CppParser"
"*.lua"
}
SetupLLVMIncludes()
SetupLLVMLibs()
configuration "*"

1
src/Parser/Parser.lua

@ -44,6 +44,7 @@ project "CppSharp.Parser" @@ -44,6 +44,7 @@ project "CppSharp.Parser"
"*.lua"
}
SetupLLVMIncludes()
SetupLLVMLibs()
configuration "*"

Loading…
Cancel
Save