From 8184de63dc095e6189de3770686d1e62658e3100 Mon Sep 17 00:00:00 2001 From: triton Date: Wed, 7 May 2014 14:57:25 +0100 Subject: [PATCH] Added SetupLLVMIncludes in build files. --- build/LLVM.lua | 10 ++++++++-- src/CppParser/Bindings/premake4.lua | 1 + src/CppParser/premake4.lua | 1 + src/Parser/Parser.lua | 1 + 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/build/LLVM.lua b/build/LLVM.lua index fbdb3397..61d77249 100644 --- a/build/LLVM.lua +++ b/build/LLVM.lua @@ -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() 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*" } diff --git a/src/CppParser/Bindings/premake4.lua b/src/CppParser/Bindings/premake4.lua index e82a58cc..711660df 100644 --- a/src/CppParser/Bindings/premake4.lua +++ b/src/CppParser/Bindings/premake4.lua @@ -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" } diff --git a/src/CppParser/premake4.lua b/src/CppParser/premake4.lua index df9b87dd..b19d893f 100644 --- a/src/CppParser/premake4.lua +++ b/src/CppParser/premake4.lua @@ -28,6 +28,7 @@ project "CppSharp.CppParser" "*.lua" } + SetupLLVMIncludes() SetupLLVMLibs() configuration "*" diff --git a/src/Parser/Parser.lua b/src/Parser/Parser.lua index dd6e9f08..3647f31f 100644 --- a/src/Parser/Parser.lua +++ b/src/Parser/Parser.lua @@ -44,6 +44,7 @@ project "CppSharp.Parser" "*.lua" } + SetupLLVMIncludes() SetupLLVMLibs() configuration "*"