Mercurial > projects > ldc
comparison premake.lua @ 336:aaade6ded589 trunk
[svn r357] Merged DMD 1.033
author | lindquist |
---|---|
date | Sat, 12 Jul 2008 19:38:31 +0200 |
parents | 895e1b50cf2a |
children | 1d3026702f65 |
comparison
equal
deleted
inserted
replaced
335:17b844102023 | 336:aaade6ded589 |
---|---|
16 else | 16 else |
17 USE_BOEHM_GC = 1 | 17 USE_BOEHM_GC = 1 |
18 end | 18 end |
19 end | 19 end |
20 | 20 |
21 -- D version - don't change these !!! | |
22 DMDV1 = "1" | |
23 | |
21 -- idgen | 24 -- idgen |
22 package = newpackage() | 25 package = newpackage() |
23 package.name = "idgen" | 26 package.name = "idgen" |
24 package.kind = "exe" | 27 package.kind = "exe" |
25 package.language = "c++" | 28 package.language = "c++" |
26 package.files = { "dmd/idgen.c" } | 29 package.files = { "dmd/idgen.c" } |
27 package.buildoptions = { "-x c++" } | 30 package.buildoptions = { "-x c++" } |
28 package.postbuildcommands = { "./idgen", "mv -f id.c id.h dmd" } | 31 package.postbuildcommands = { "./idgen", "mv -f id.c id.h dmd" } |
32 package.defines = { "DMDV1="..DMDV1 } | |
29 | 33 |
30 -- impcnvgen | 34 -- impcnvgen |
31 package = newpackage() | 35 package = newpackage() |
32 package.name = "impcnvgen" | 36 package.name = "impcnvgen" |
33 package.kind = "exe" | 37 package.kind = "exe" |
34 package.language = "c++" | 38 package.language = "c++" |
35 package.files = { "dmd/impcnvgen.c" } | 39 package.files = { "dmd/impcnvgen.c" } |
36 package.buildoptions = { "-x c++" } | 40 package.buildoptions = { "-x c++" } |
37 package.postbuildcommands = { "./impcnvgen", "mv -f impcnvtab.c dmd" } | 41 package.postbuildcommands = { "./impcnvgen", "mv -f impcnvtab.c dmd" } |
42 package.defines = { "DMDV1="..DMDV1 } | |
43 | |
44 --md5 | |
45 package = newpackage() | |
46 package.name = "md5" | |
47 package.kind = "lib" | |
48 package.language = "c" | |
49 package.files = { "dmd/md5.c" } | |
38 | 50 |
39 -- llvmdc | 51 -- llvmdc |
40 package = newpackage() | 52 package = newpackage() |
41 package.bindir = "bin" | 53 package.bindir = "bin" |
42 package.name = "llvmdc" | 54 package.name = "llvmdc" |
43 package.kind = "exe" | 55 package.kind = "exe" |
44 package.language = "c++" | 56 package.language = "c++" |
45 package.files = { matchfiles("dmd/*.c"), matchfiles("gen/*.cpp"), matchfiles("ir/*.cpp") } | 57 package.files = { matchfiles("dmd/*.c"), matchfiles("gen/*.cpp"), matchfiles("ir/*.cpp") } |
46 package.excludes = { "dmd/idgen.c", "dmd/impcnvgen.c" } | 58 package.excludes = { "dmd/idgen.c", "dmd/impcnvgen.c", "dmd/md5.c" } |
47 package.buildoptions = { "-x c++", "`llvm-config --cxxflags`" } | 59 package.buildoptions = { "-x c++", "`llvm-config --cxxflags`" } |
48 package.linkoptions = { | 60 package.linkoptions = { |
49 -- long but it's faster than just 'all' | 61 -- long but it's faster than just 'all' |
50 "`llvm-config --libs core asmparser bitreader bitwriter linker support target transformutils scalaropts ipo instrumentation x86 powerpc`", | 62 "`llvm-config --libs core asmparser bitreader bitwriter linker support target transformutils scalaropts ipo instrumentation x86 powerpc`", |
51 "`llvm-config --ldflags`", | 63 "`llvm-config --ldflags`", |
53 package.defines = { | 65 package.defines = { |
54 "IN_LLVM", | 66 "IN_LLVM", |
55 "_DH", | 67 "_DH", |
56 "OPAQUE_VTBLS="..OPAQUE_VTBLS, | 68 "OPAQUE_VTBLS="..OPAQUE_VTBLS, |
57 "USE_BOEHM_GC="..USE_BOEHM_GC, | 69 "USE_BOEHM_GC="..USE_BOEHM_GC, |
70 "DMDV1="..DMDV1, | |
58 } | 71 } |
59 package.config.Release.defines = { "LLVMD_NO_LOGGER" } | 72 package.config.Release.defines = { "LLVMD_NO_LOGGER" } |
60 package.config.Debug.buildoptions = { "-g -O0" } | 73 package.config.Debug.buildoptions = { "-g -O0" } |
61 --package.targetprefix = "llvm" | 74 --package.targetprefix = "llvm" |
62 package.includepaths = { ".", "dmd" } | 75 package.includepaths = { ".", "dmd" } |