mirror of https://github.com/mono/CppSharp.git
c-sharpdotnetmonobindingsbridgecclangcpluspluscppsharpglueinteropparserparsingpinvokeswigsyntax-treevisitorsxamarinxamarin-bindings
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
940 B
35 lines
940 B
-- Setup the LLVM dependency directories |
|
|
|
LLVMRootDir = "../../deps/LLVM/" |
|
LLVMBuildDir = "../../deps/LLVM/build/" |
|
|
|
-- TODO: Search for available system dependencies |
|
|
|
function SetupLLVMLibs() |
|
local c = configuration() |
|
|
|
includedirs |
|
{ |
|
path.join(LLVMRootDir, "include"), |
|
path.join(LLVMRootDir, "tools/clang/include"), |
|
path.join(LLVMRootDir, "tools/clang/lib"), |
|
path.join(LLVMBuildDir, "include"), |
|
path.join(LLVMBuildDir, "tools/clang/include"), |
|
} |
|
|
|
configuration { "Debug", "vs*" } |
|
libdirs { path.join(LLVMBuildDir, "lib/Debug") } |
|
|
|
configuration { "Release", "vs*" } |
|
libdirs { path.join(LLVMBuildDir, "lib/RelWithDebInfo") } |
|
|
|
configuration "not vs*" |
|
buildoptions { "-fpermissive" } |
|
defines { "__STDC_CONSTANT_MACROS", "__STDC_LIMIT_MACROS" } |
|
libdirs { path.join(LLVMBuildDir, "lib") } |
|
|
|
configuration "macosx" |
|
links { "c++", "curses", "pthread", "z" } |
|
|
|
configuration(c) |
|
end |