From 1cc6a04b8bce82fa83b62d919bf8bdf14cad0b92 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sat, 1 Oct 2016 13:54:14 -0400 Subject: update sdlang, start looking to using dub remote dependencies --- dub.sdl | 199 +++++++++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 134 insertions(+), 65 deletions(-) (limited to 'dub.sdl') diff --git a/dub.sdl b/dub.sdl index c4a363c..10cd660 100644 --- a/dub.sdl +++ b/dub.sdl @@ -8,84 +8,153 @@ targetPath "./bin" sourcePath "./src" stringImportPaths "./views" buildRequirements "allowWarnings" -configuration "sdp-release" { - name "release" - targetType "executable" - platforms "posix" - targetName "sdp" - buildOptions "releaseMode" "optimize" "inline" +dependency "sdlang-d" version="~>0.10.0" +configuration "sdp-release" { + name "release" + targetType "executable" + platforms "posix" + #compiler "dmd" + targetName "sdp" + dflags "-J=views" "-I=src/sdp" + buildOptions "verbose" "releaseMode" "optimize" "inline" postGenerateCommands "/usr/bin/notify-send -t 0 'D release executable ready' 'sdp'" } -configuration "sdp-debug" { - name "debuging" - targetType "executable" - platforms "posix" - targetName "sdp-debug" - debugVersions "checkdoc" - debugVersions "summary" - debugVersions "dumpdoc" - buildOptions "debugMode" "debugInfo" "optimize" +configuration "sdp-debug" { + name "debuging" + targetType "executable" + platforms "posix" + #compiler "dmd" + targetName "sdp-debug" + dflags "-J=views" "-I=src/sdp" + buildRequirements "allowWarnings" + buildOptions "verbose" "debugMode" "debugInfo" "optimize" + debugVersions "checkdoc" "summary" + debugVersions "dumpdoc" postGenerateCommands "/usr/bin/notify-send -t 0 'D (debug) executable ready' 'sdp-debug'" } -configuration "sdp-tmp" { - name "tmp" - targetType "executable" - platforms "posix" - targetName "sdp-tmp" - debugVersions "tmp" - debugVersions "crap" - debugVersions "header" - debugVersions "header1" - buildOptions "debugMode" "debugInfo" "optimize" +configuration "sdp-tmp" { + name "tmp" + targetType "executable" + platforms "posix" + #compiler "dmd" + targetName "sdp-tmp" + dflags "-J=views" "-I=src/sdp" + buildRequirements "allowWarnings" + buildOptions "verbose" "debugMode" "debugInfo" "optimize" + debugVersions "checkdoc" "summary" + debugVersions "tmp" + debugVersions "crap" + debugVersions "header" + debugVersions "header1" postGenerateCommands "/usr/bin/notify-send -t 0 'D (debug) executable ready' 'sdp-tmp'" } -configuration "sdp-debug-clean" { - name "debug-clean" - targetType "executable" - platforms "posix" - targetName "sdp-debug-clean" - buildOptions "debugMode" "debugInfo" "optimize" +configuration "sdp-debug-clean" { + name "debug-clean" + targetType "executable" + platforms "posix" + #compiler "dmd" + targetName "sdp-debug-clean" + dflags "-J=views" "-I=src/sdp" + buildOptions "verbose" "debugMode" "debugInfo" "optimize" postGenerateCommands "/usr/bin/notify-send -t 0 'D (debug) executable ready' 'sdp-debug-clean'" } -configuration "sdp-dmd" { - name "dmd" - targetType "executable" - platforms "posix" - #compiler "dmd" - targetName "sdp-dmd" - buildOptions "releaseMode" "optimize" "inline" +configuration "sdp-dmd" { + name "dmd" + targetType "executable" + platforms "posix" + compiler "dmd" + targetName "sdp-dmd" + dflags "-J=views" "-I=src/sdp" + buildRequirements "allowWarnings" + buildOptions "verbose" "releaseMode" "optimize" "inline" postGenerateCommands "/usr/bin/notify-send -t 0 'D dmd compiled test release executable ready' 'sdp-dmd'" } -configuration "sdp-debug-dmd" { - name "debuging" - targetType "executable" - platforms "posix" - targetName "sdp-debug-dmd" - debugVersions "checkdoc" - debugVersions "summary" - debugVersions "dumpdoc" - buildOptions "debugMode" "debugInfo" "optimize" +configuration "sdp-debug-dmd" { + name "debuging" + targetType "executable" + platforms "posix" + compiler "dmd" + targetName "sdp-debug-dmd" + dflags "-J=views" "-I=src/sdp" + buildRequirements "allowWarnings" + buildOptions "verbose" "debugMode" "debugInfo" "optimize" + debugVersions "checkdoc" "summary" + debugVersions "dumpdoc" postGenerateCommands "/usr/bin/notify-send -t 0 'D (debug) executable ready' 'sdp-debug-dmd'" } -configuration "sdp-ldc" { - name "ldc" - targetType "executable" - platforms "posix" - #compiler "ldc2" - targetName "sdp-ldc" - buildOptions "releaseMode" "optimize" "inline" +configuration "sdp-debug-unittest-dmd" { + name "debuging" + targetType "executable" + platforms "posix" + compiler "dmd" + targetName "sdp-debug-dmd" + dflags "-J=views" "-I=src/sdp" + buildRequirements "allowWarnings" + buildOptions "verbose" "debugMode" "debugInfo" "unittests" "optimize" + debugVersions "checkdoc" "summary" + debugVersions "dumpdoc" + postGenerateCommands "/usr/bin/notify-send -t 0 'D (debug) executable ready' 'sdp-debug-dmd'" +} +configuration "sdp-debug-docs-dmd" { + name "debuging" + targetType "executable" + platforms "posix" + compiler "dmd" + targetName "sdp-debug-dmd" + dflags "-J=views" "-I=src/sdp" + #lflags "ld.gold" + buildRequirements "allowWarnings" + buildOptions "verbose" "debugMode" "debugInfo" "optimize" + debugVersions "checkdoc" "summary" + debugVersions "dumpdoc" + postGenerateCommands "/usr/bin/notify-send -t 0 'D (debug) executable ready' 'sdp-debug-dmd'" +} +configuration "sdp-ldc" { + name "ldc" + targetType "executable" + platforms "posix" + compiler "ldc2" + targetName "sdp-ldc" + dflags "-J=views" "-I=src/sdp" + buildRequirements "allowWarnings" + buildOptions "verbose" "releaseMode" "optimize" "inline" postGenerateCommands "/usr/bin/notify-send -t 0 'D ldc2 compiled test release executable ready' 'sdp-ldc'" } -configuration "sdp-debug-ldc" { - name "debuging" - targetType "executable" - platforms "posix" - targetName "sdp-debug-ldc" - debugVersions "checkdoc" - debugVersions "summary" - #debugVersions "dumpdoc" - #debugVersions "bookindex" - #debugVersions "biblio" - buildOptions "debugMode" "debugInfo" "optimize" +configuration "sdp-debug-ldc" { + name "debuging" + targetType "executable" + platforms "posix" + compiler "ldc2" + targetName "sdp-debug-ldc" + dflags "-J=views" "-I=src/sdp" + buildRequirements "allowWarnings" + buildOptions "verbose" "debugMode" "debugInfo" "optimize" + debugVersions "checkdoc" "summary" + postGenerateCommands "/usr/bin/notify-send -t 0 'D (debug) executable ready' 'sdp-debug-ldc'" +} +configuration "sdp-debug-unittest-ldc" { + name "debuging" + targetType "executable" + platforms "posix" + compiler "ldc2" + targetName "sdp-debug-ldc" + dflags "-J=views" "-I=src/sdp" "-Dddocs" + buildRequirements "allowWarnings" + buildOptions "verbose" "debugMode" "debugInfo" "unittests" "optimize" + debugVersions "checkdoc" "summary" + #debugVersions "dumpdoc" + postGenerateCommands "/usr/bin/notify-send -t 0 'D (debug) executable ready' 'sdp-debug-ldc'" +} +configuration "sdp-debug-docs-ldc" { + name "debuging" + targetType "executable" + platforms "posix" + compiler "ldc2" + targetName "sdp-debug-ldc" + dflags "-J=views" "-I=src/sdp" "-Dddocs" + buildRequirements "allowWarnings" + buildOptions "verbose" "debugMode" "debugInfo" "optimize" + debugVersions "checkdoc" "summary" + #debugVersions "dumpdoc" postGenerateCommands "/usr/bin/notify-send -t 0 'D (debug) executable ready' 'sdp-debug-ldc'" } -- cgit v1.2.3