annotate premake.lua @ 35:3cfcb944304e trunk

[svn r39] * Updated to DMD 1.022 with the exception of: Bugzilla 278: dmd.conf search path doesn't work This fix was causing crashes for me :/ So for it's the old behaviour
author lindquist
date Tue, 09 Oct 2007 06:21:30 +0200
parents e116aa1488e6
children fd32135dca3e
rev   line source
lindquist@1 1 project.name = llvmdc
lindquist@1 2
lindquist@1 3 package = newpackage()
lindquist@1 4 package.name = "idgen"
lindquist@1 5 package.kind = "exe"
lindquist@1 6 package.language = "c++"
lindquist@1 7 package.files = { "dmd/idgen.c" }
lindquist@1 8 package.buildoptions = { "-x c++" }
lindquist@35 9 package.postbuildcommands = { "./idgen", "mv -f id.c id.h dmd" }
lindquist@1 10
lindquist@1 11 package = newpackage()
lindquist@1 12 package.name = "impcnvgen"
lindquist@1 13 package.kind = "exe"
lindquist@1 14 package.language = "c++"
lindquist@1 15 package.files = { "dmd/impcnvgen.c" }
lindquist@1 16 package.buildoptions = { "-x c++" }
lindquist@35 17 package.postbuildcommands = { "./impcnvgen", "mv -f impcnvtab.c dmd" }
lindquist@1 18
lindquist@1 19 package = newpackage()
lindquist@35 20 package.bindir = "bin"
lindquist@1 21 package.name = "llvmdc"
lindquist@1 22 package.kind = "exe"
lindquist@1 23 package.language = "c++"
lindquist@1 24 package.files = { matchfiles("dmd/*.c"), matchfiles("gen/*.c") }
lindquist@1 25 package.excludes = { "dmd/idgen.c", "dmd/impcnvgen.c" }
lindquist@1 26 package.buildoptions = { "-x c++", "`llvm-config --cxxflags`" }
lindquist@1 27 package.linkoptions = { "`llvm-config --libs native bitwriter bitreader`", "`llvm-config --ldflags`" }
lindquist@1 28 package.defines = { "IN_LLVM", "_DH" }
lindquist@1 29 package.config.Release.defines = { "LLVMD_NO_LOGGER" }
lindquist@1 30 package.config.Debug.buildoptions = { "-g" }
lindquist@1 31 --package.targetprefix = "llvm"
lindquist@4 32 package.includepaths = { ".", "dmd" }
lindquist@1 33 --package.postbuildcommands = { "cd runtime; ./build.sh; cd .." }
lindquist@1 34 package.links = { "gc" }