1
|
1 project.name = llvmdc
|
|
2 project.bindir = "bin"
|
|
3
|
|
4 package = newpackage()
|
|
5 package.name = "idgen"
|
|
6 package.kind = "exe"
|
|
7 package.language = "c++"
|
|
8 package.files = { "dmd/idgen.c" }
|
|
9 package.buildoptions = { "-x c++" }
|
|
10 package.postbuildcommands = { "bin/idgen", "mv -f id.c id.h dmd" }
|
|
11
|
|
12 package = newpackage()
|
|
13 package.name = "impcnvgen"
|
|
14 package.kind = "exe"
|
|
15 package.language = "c++"
|
|
16 package.files = { "dmd/impcnvgen.c" }
|
|
17 package.buildoptions = { "-x c++" }
|
|
18 package.postbuildcommands = { "bin/impcnvgen", "mv -f impcnvtab.c dmd" }
|
|
19
|
|
20 package = newpackage()
|
|
21 package.name = "llvmdc"
|
|
22 package.kind = "exe"
|
|
23 package.language = "c++"
|
|
24 package.files = { matchfiles("dmd/*.c"), matchfiles("gen/*.c") }
|
|
25 package.excludes = { "dmd/idgen.c", "dmd/impcnvgen.c" }
|
|
26 package.buildoptions = { "-x c++", "`llvm-config --cxxflags`" }
|
|
27 package.linkoptions = { "`llvm-config --libs native bitwriter bitreader`", "`llvm-config --ldflags`" }
|
|
28 package.defines = { "IN_LLVM", "_DH" }
|
|
29 package.config.Release.defines = { "LLVMD_NO_LOGGER" }
|
|
30 package.config.Debug.buildoptions = { "-g" }
|
|
31 --package.targetprefix = "llvm"
|
|
32 package.includepaths = { "dmd" }
|
|
33 --package.postbuildcommands = { "cd runtime; ./build.sh; cd .." }
|
|
34 package.links = { "gc" }
|