clang_msvc_flags = { "/wd4146", "/wd4244", "/wd4800", "/wd4345", "/wd4355", "/wd4996", "/wd4624", "/wd4291" } project "CppSharp.Parser" kind "SharedLib" language "C++" SetupNativeProject() dependson { "CppSharp.AST" } flags { common_flags, "Managed" } -- usingdirs is only supported in per-file configs in our -- premake build. remove this once this support is added -- at the project level. configuration { "Main.cpp" } flags { "Managed" } usingdirs { libdir } configuration { "Parser.cpp" } flags { "Managed" } usingdirs { libdir } configuration { "Comments.cpp" } flags { "Managed" } usingdirs { libdir } configuration "vs*" buildoptions { clang_msvc_flags } files { "VSLookup.cpp" } configuration "*" files { "**.h", "*.cpp", "**.lua" } includedirs { "../../deps/LLVM/include", "../../deps/LLVM/build/include", "../../deps/LLVM/tools/clang/include", "../../deps/LLVM/tools/clang/lib", "../../deps/LLVM/build/tools/clang/include" } configuration "Debug" libdirs { "../../deps/LLVM/build/lib/Debug" } configuration "Release" libdirs { "../../deps/LLVM/build/lib/RelWithDebInfo" } configuration "*" links { "clangAnalysis", "clangAST", "clangBasic", "clangCodeGen", "clangDriver", "clangEdit", "clangFrontend", "clangLex", "clangParse", "clangSema", "clangSerialization", "LLVMAnalysis", "LLVMAsmParser", "LLVMBitReader", "LLVMBitWriter", "LLVMCodeGen", "LLVMCore", "LLVMipa", "LLVMipo", "LLVMInstCombine", "LLVMInstrumentation", "LLVMIRReader", "LLVMLinker", "LLVMMC", "LLVMMCParser", "LLVMObjCARCOpts", "LLVMObject", "LLVMOption", "LLVMScalarOpts", "LLVMSupport", "LLVMTarget", "LLVMTransformUtils", "LLVMVectorize", "LLVMX86AsmParser", "LLVMX86AsmPrinter", "LLVMX86Desc", "LLVMX86Info", "LLVMX86Utils", }