lindquist@1: project.name = llvmdc lindquist@1: lindquist@1: package = newpackage() lindquist@1: package.name = "idgen" lindquist@1: package.kind = "exe" lindquist@1: package.language = "c++" lindquist@1: package.files = { "dmd/idgen.c" } lindquist@1: package.buildoptions = { "-x c++" } lindquist@35: package.postbuildcommands = { "./idgen", "mv -f id.c id.h dmd" } lindquist@1: lindquist@1: package = newpackage() lindquist@1: package.name = "impcnvgen" lindquist@1: package.kind = "exe" lindquist@1: package.language = "c++" lindquist@1: package.files = { "dmd/impcnvgen.c" } lindquist@1: package.buildoptions = { "-x c++" } lindquist@35: package.postbuildcommands = { "./impcnvgen", "mv -f impcnvtab.c dmd" } lindquist@1: lindquist@1: package = newpackage() lindquist@35: package.bindir = "bin" lindquist@1: package.name = "llvmdc" lindquist@1: package.kind = "exe" lindquist@1: package.language = "c++" lindquist@1: package.files = { matchfiles("dmd/*.c"), matchfiles("gen/*.c") } lindquist@1: package.excludes = { "dmd/idgen.c", "dmd/impcnvgen.c" } lindquist@1: package.buildoptions = { "-x c++", "`llvm-config --cxxflags`" } lindquist@1: package.linkoptions = { "`llvm-config --libs native bitwriter bitreader`", "`llvm-config --ldflags`" } lindquist@1: package.defines = { "IN_LLVM", "_DH" } lindquist@1: package.config.Release.defines = { "LLVMD_NO_LOGGER" } lindquist@1: package.config.Debug.buildoptions = { "-g" } lindquist@1: --package.targetprefix = "llvm" lindquist@4: package.includepaths = { ".", "dmd" } lindquist@1: --package.postbuildcommands = { "cd runtime; ./build.sh; cd .." } lindquist@1: package.links = { "gc" }