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

1
src/CppParser/Bindings/premake4.lua

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

1
src/CppParser/premake4.lua

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

1
src/Parser/Parser.lua

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

Loading…
Cancel
Save