Mercurial > projects > ldc
changeset 1129:8403fec8c34c
Add dmd-style configuration file for rebuild usage. See #236 and thanks to ccuter for the patch!
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 21 Mar 2009 09:47:48 +0100 |
parents | 83ef1e7cde70 |
children | 30663babccff |
files | .hgignore CMakeLists.txt ldc-posix-tango ldc.rebuild.conf.in ldc2.conf.in ldc2.rebuild.conf.in runtime/CMakeLists.txt |
diffstat | 7 files changed, 23 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/.hgignore Fri Mar 20 15:50:01 2009 +0100 +++ b/.hgignore Sat Mar 21 09:47:48 2009 +0100 @@ -24,6 +24,7 @@ ^import/ ^bin/ldc2?$ ^bin/ldc2?\.conf$ +^bin/ldc2?\.rebuild\.conf$ ^idgen\.make$ ^impcnvgen\.make$ ^ldc\.make$
--- a/CMakeLists.txt Fri Mar 20 15:50:01 2009 +0100 +++ b/CMakeLists.txt Sat Mar 21 09:47:48 2009 +0100 @@ -227,6 +227,7 @@ install(TARGETS ${LDC_EXE} DESTINATION bin) install(FILES ${PROJECT_BINARY_DIR}/bin/${LDC_EXE}.conf DESTINATION ${CONF_INST_DIR}) +install(FILES ${PROJECT_BINARY_DIR}/bin/${LDC_EXE}.rebuild.conf DESTINATION ${CONF_INST_DIR}) install(DIRECTORY ${PROJECT_BINARY_DIR}/lib DESTINATION . USE_SOURCE_PERMISSIONS) add_subdirectory(runtime EXCLUDE_FROM_ALL)
--- a/ldc-posix-tango Fri Mar 20 15:50:01 2009 +0100 +++ b/ldc-posix-tango Sat Mar 21 09:47:48 2009 +0100 @@ -1,7 +1,7 @@ ignore=object compiler=ldc -inifile=ldc.conf +inifile=ldc.rebuild.conf exeext= objext=o
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ldc.rebuild.conf.in Sat Mar 21 09:47:48 2009 +0100 @@ -0,0 +1,2 @@ +[Environment] +DFLAGS=-I@RUNTIME_DIR@ -I@RUNTIME_DIR@/lib/common -L-L%@P%/../lib -d-version=Tango -defaultlib=@RUNTIME_AIO@ -debuglib=@RUNTIME_AIO@
--- a/ldc2.conf.in Fri Mar 20 15:50:01 2009 +0100 +++ b/ldc2.conf.in Sat Mar 21 09:47:48 2009 +0100 @@ -1,2 +1,15 @@ -[Environment] -DFLAGS=-I@RUNTIME_DIR@/import -L-L%@P%/../lib +// This configuration file uses libconfig. +// See http://www.hyperrealm.com/libconfig/ for syntax details. + +// The default group is required +default: +{ + // 'switches' holds array of string that are appends to the command line + // arguments before they are parsed. + switches = [ + "-I@RUNTIME_DIR@/import", + "-L-L@PROJECT_BINARY_DIR@/../lib", + "-defaultlib=@RUNTIME_AIO@", + "-debuglib=@RUNTIME_AIO@" + ]; +};
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ldc2.rebuild.conf.in Sat Mar 21 09:47:48 2009 +0100 @@ -0,0 +1,2 @@ +[Environment] +DFLAGS=-I@RUNTIME_DIR@/import -L-L%@P%/../lib -defaultlib=@RUNTIME_AIO@ -debuglib=@RUNTIME_AIO@
--- a/runtime/CMakeLists.txt Fri Mar 20 15:50:01 2009 +0100 +++ b/runtime/CMakeLists.txt Sat Mar 21 09:47:48 2009 +0100 @@ -85,6 +85,7 @@ endif(NOT LDC_LOC) configure_file(${PROJECT_PARENT_DIR}/${LDC_EXE}.conf.in ${PROJECT_BINARY_DIR}/../bin/${LDC_EXE}.conf) +configure_file(${PROJECT_PARENT_DIR}/${LDC_EXE}.rebuild.conf.in ${PROJECT_BINARY_DIR}/../bin/${LDC_EXE}.rebuild.conf) # patch runtime source, uses LDC_EXE for ldc2 if(D_VERSION EQUAL 2)