Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…ks to ccuter for the patch!
  • Loading branch information...
commit 490549e65cd5429586c4d2da10514bf39fb0fd3e 1 parent d0a8ee9
@ckamm ckamm authored
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)
Please sign in to comment.
Something went wrong with that request. Please try again.