mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-10 17:56:36 +01:00
Add dmd-style configuration file for rebuild usage. See #236 and thanks to ccuter for the patch!
This commit is contained in:
@@ -24,6 +24,7 @@ syntax: regexp
|
||||
^import/
|
||||
^bin/ldc2?$
|
||||
^bin/ldc2?\.conf$
|
||||
^bin/ldc2?\.rebuild\.conf$
|
||||
^idgen\.make$
|
||||
^impcnvgen\.make$
|
||||
^ldc\.make$
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
ignore=object
|
||||
|
||||
compiler=ldc
|
||||
inifile=ldc.conf
|
||||
inifile=ldc.rebuild.conf
|
||||
|
||||
exeext=
|
||||
objext=o
|
||||
|
||||
2
ldc.rebuild.conf.in
Normal file
2
ldc.rebuild.conf.in
Normal file
@@ -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@
|
||||
17
ldc2.conf.in
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@"
|
||||
];
|
||||
};
|
||||
|
||||
2
ldc2.rebuild.conf.in
Normal file
2
ldc2.rebuild.conf.in
Normal file
@@ -0,0 +1,2 @@
|
||||
[Environment]
|
||||
DFLAGS=-I@RUNTIME_DIR@/import -L-L%@P%/../lib -defaultlib=@RUNTIME_AIO@ -debuglib=@RUNTIME_AIO@
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user