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.
86 lines
1.9 KiB
86 lines
1.9 KiB
-- Setup the LLVM dependency directories |
|
|
|
LLVMRootDir = "../../deps/llvm/" |
|
LLVMBuildDir = "../../deps/llvm/build/" |
|
|
|
-- TODO: Search for available system dependencies |
|
|
|
function SetupLLVMIncludes() |
|
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(c) |
|
end |
|
|
|
function SetupLLVMLibs() |
|
local c = configuration() |
|
|
|
libdirs { path.join(LLVMBuildDir, "lib") } |
|
|
|
configuration { "Debug", "vs*" } |
|
libdirs { path.join(LLVMBuildDir, "Debug/lib") } |
|
|
|
configuration { "Release", "vs*" } |
|
libdirs { path.join(LLVMBuildDir, "RelWithDebInfo/lib") } |
|
|
|
configuration "not vs*" |
|
defines { "__STDC_CONSTANT_MACROS", "__STDC_LIMIT_MACROS" } |
|
|
|
configuration "macosx" |
|
links { "c++", "curses", "pthread", "z" } |
|
|
|
configuration "*" |
|
links |
|
{ |
|
"clangFrontend", |
|
"clangDriver", |
|
"clangSerialization", |
|
"clangCodeGen", |
|
"clangParse", |
|
"clangSema", |
|
"clangAnalysis", |
|
"clangEdit", |
|
"clangAST", |
|
"clangLex", |
|
"clangBasic", |
|
"clangIndex", |
|
"LLVMObjCARCOpts", |
|
"LLVMLinker", |
|
"LLVMipo", |
|
"LLVMVectorize", |
|
"LLVMBitWriter", |
|
"LLVMIRReader", |
|
"LLVMAsmParser", |
|
"LLVMOption", |
|
"LLVMInstrumentation", |
|
"LLVMProfileData", |
|
"LLVMX86AsmParser", |
|
"LLVMX86Desc", |
|
"LLVMObject", |
|
"LLVMMCParser", |
|
"LLVMBitReader", |
|
"LLVMX86Info", |
|
"LLVMX86AsmPrinter", |
|
"LLVMX86Utils", |
|
"LLVMCodeGen", |
|
"LLVMScalarOpts", |
|
"LLVMInstCombine", |
|
"LLVMTransformUtils", |
|
"LLVMipa", |
|
"LLVMAnalysis", |
|
"LLVMTarget", |
|
"LLVMMC", |
|
"LLVMCore", |
|
"LLVMSupport", |
|
} |
|
|
|
configuration(c) |
|
end
|
|
|