Mercurial > projects > ldc
diff 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 |
line wrap: on
line diff
--- a/premake.lua Sat Jul 12 17:04:36 2008 +0200 +++ b/premake.lua Sat Jul 12 19:38:31 2008 +0200 @@ -18,6 +18,9 @@ end end +-- D version - don't change these !!! +DMDV1 = "1" + -- idgen package = newpackage() package.name = "idgen" @@ -26,6 +29,7 @@ package.files = { "dmd/idgen.c" } package.buildoptions = { "-x c++" } package.postbuildcommands = { "./idgen", "mv -f id.c id.h dmd" } +package.defines = { "DMDV1="..DMDV1 } -- impcnvgen package = newpackage() @@ -35,6 +39,14 @@ package.files = { "dmd/impcnvgen.c" } package.buildoptions = { "-x c++" } package.postbuildcommands = { "./impcnvgen", "mv -f impcnvtab.c dmd" } +package.defines = { "DMDV1="..DMDV1 } + +--md5 +package = newpackage() +package.name = "md5" +package.kind = "lib" +package.language = "c" +package.files = { "dmd/md5.c" } -- llvmdc package = newpackage() @@ -43,7 +55,7 @@ package.kind = "exe" package.language = "c++" package.files = { matchfiles("dmd/*.c"), matchfiles("gen/*.cpp"), matchfiles("ir/*.cpp") } -package.excludes = { "dmd/idgen.c", "dmd/impcnvgen.c" } +package.excludes = { "dmd/idgen.c", "dmd/impcnvgen.c", "dmd/md5.c" } package.buildoptions = { "-x c++", "`llvm-config --cxxflags`" } package.linkoptions = { -- long but it's faster than just 'all' @@ -55,6 +67,7 @@ "_DH", "OPAQUE_VTBLS="..OPAQUE_VTBLS, "USE_BOEHM_GC="..USE_BOEHM_GC, + "DMDV1="..DMDV1, } package.config.Release.defines = { "LLVMD_NO_LOGGER" } package.config.Debug.buildoptions = { "-g -O0" }