Skip to content
Browse files

Add dmd-style configuration file for rebuild usage. See #236 and than…

…ks to ccuter for the patch!
  • Loading branch information...
1 parent d0a8ee9 commit 490549e65cd5429586c4d2da10514bf39fb0fd3e @ckamm ckamm committed Mar 21, 2009
Showing with 23 additions and 3 deletions.
  1. +1 −0 .hgignore
  2. +1 −0 CMakeLists.txt
  3. +1 −1 ldc-posix-tango
  4. +2 −0 ldc.rebuild.conf.in
  5. +15 −2 ldc2.conf.in
  6. +2 −0 ldc2.rebuild.conf.in
  7. +1 −0 runtime/CMakeLists.txt
View
1 .hgignore
@@ -24,6 +24,7 @@ syntax: regexp
^import/
^bin/ldc2?$
^bin/ldc2?\.conf$
+^bin/ldc2?\.rebuild\.conf$
^idgen\.make$
^impcnvgen\.make$
^ldc\.make$
View
1 CMakeLists.txt
@@ -227,6 +227,7 @@ get_target_property(LDC_LOC ${LDC_EXE} LOCATION)
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)
View
2 ldc-posix-tango
@@ -1,7 +1,7 @@
ignore=object
compiler=ldc
-inifile=ldc.conf
+inifile=ldc.rebuild.conf
exeext=
objext=o
View
2 ldc.rebuild.conf.in
@@ -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@
View
17 ldc2.conf.in
@@ -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@"
+ ];
+};
View
2 ldc2.rebuild.conf.in
@@ -0,0 +1,2 @@
+[Environment]
+DFLAGS=-I@RUNTIME_DIR@/import -L-L%@P%/../lib -defaultlib=@RUNTIME_AIO@ -debuglib=@RUNTIME_AIO@
View
1 runtime/CMakeLists.txt
@@ -85,6 +85,7 @@ if(NOT LDC_LOC)
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)

0 comments on commit 490549e

Please sign in to comment.
Something went wrong with that request. Please try again.