diff options
Diffstat (limited to 'dub.sdl')
-rw-r--r-- | dub.sdl | 92 |
1 files changed, 39 insertions, 53 deletions
@@ -5,7 +5,7 @@ authors "Ralph Amissah" copyright "Copyright © 2016 Ralph Amissah" license "AGPL-3+" targetPath "./bin" -sourcePath "./src" +#sourcePath "./src/sdp" stringImportPaths "./views" buildRequirements "allowWarnings" dependency "sdlang-d" version="~>0.10.0" @@ -14,7 +14,6 @@ configuration "sdp-release" { name "release" targetType "executable" platforms "posix" - #compiler "dmd" targetName "sdp" dflags "-J=views" "-I=src/sdp" buildOptions "verbose" "releaseMode" "optimize" "inline" @@ -24,9 +23,9 @@ configuration "sdp-debug" { name "debuging" targetType "executable" platforms "posix" - #compiler "dmd" targetName "sdp-debug" - dflags "-J=views" "-I=src/sdp" + dflags "-g" "-J=views" "-I=src/sdp" + #lflags "ld.gold" buildRequirements "allowWarnings" buildOptions "verbose" "debugMode" "debugInfo" "optimize" debugVersions "checkdoc" "summary" @@ -37,9 +36,9 @@ configuration "sdp-tmp" { name "tmp" targetType "executable" platforms "posix" - #compiler "dmd" targetName "sdp-tmp" dflags "-J=views" "-I=src/sdp" + #lflags "ld.gold" buildRequirements "allowWarnings" buildOptions "verbose" "debugMode" "debugInfo" "optimize" debugVersions "checkdoc" "summary" @@ -53,7 +52,6 @@ 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" @@ -63,147 +61,135 @@ 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" { +configuration "sdp-dmd-debug" { name "debuging" targetType "executable" platforms "posix" - compiler "dmd" - targetName "sdp-debug-dmd" - dflags "-J=views" "-I=src/sdp" + targetName "sdp-dmd-debug" + dflags "-g" "-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'" + postGenerateCommands "/usr/bin/notify-send -t 0 'D (debug) executable ready' 'sdp-dmd-debug'" } -configuration "sdp-debug-unittest-dmd" { +configuration "sdp-dmd-debug-unittest" { name "debuging" targetType "executable" platforms "posix" - compiler "dmd" - targetName "sdp-debug-dmd" + targetName "sdp-dmd-debug" 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'" + postGenerateCommands "/usr/bin/notify-send -t 0 'D (debug) executable ready' 'sdp-dmd-debug'" } -configuration "sdp-debug-docs-dmd" { +configuration "sdp-dmd-debug-docs" { name "debuging" targetType "executable" platforms "posix" - compiler "dmd" - targetName "sdp-debug-dmd" + targetName "sdp-dmd-debug" 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'" + postGenerateCommands "/usr/bin/notify-send -t 0 'D (debug) executable ready' 'sdp-dmd-debug'" } 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" { +configuration "sdp-ldc-debug" { name "debuging" targetType "executable" platforms "posix" - compiler "ldc2" - targetName "sdp-debug-ldc" - dflags "-J=views" "-I=src/sdp" + targetName "sdp-ldc-debug" + dflags "-g" "-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'" + postGenerateCommands "/usr/bin/notify-send -t 0 'D (debug) executable ready' 'sdp-ldc-debug'" } -configuration "sdp-debug-unittest-ldc" { +configuration "sdp-ldc-debug-unittest" { name "debuging" targetType "executable" platforms "posix" - compiler "ldc2" - targetName "sdp-debug-ldc" + targetName "sdp-ldc-debug" dflags "-J=views" "-I=src/sdp" - #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'" + postGenerateCommands "/usr/bin/notify-send -t 0 'D (debug) executable ready' 'sdp-ldc-debug'" } -configuration "sdp-debug-docs-ldc" { +configuration "sdp-ldc-debug-docs" { name "debuging" targetType "executable" platforms "posix" - compiler "ldc2" - targetName "sdp-debug-ldc" + targetName "sdp-ldc-debug" 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'" + postGenerateCommands "/usr/bin/notify-send -t 0 'D (debug) executable ready' 'sdp-ldc-debug'" } configuration "sdp-gdc" { name "gdc" targetType "executable" platforms "posix" - compiler "gdc" targetName "sdp-gdc" - dflags "-J=views" "-I=src/sdp" + dflags "-O2" "-J=views" "-I=src/sdp" + lflags "-lz" buildRequirements "allowWarnings" buildOptions "verbose" "releaseMode" "optimize" "inline" postGenerateCommands "/usr/bin/notify-send -t 0 'D gdc compiled test release executable ready' 'sdp-gdc'" } -configuration "sdp-debug-gdc" { +configuration "sdp-gdc-debug" { name "debuging" targetType "executable" platforms "posix" - compiler "gdc" - targetName "sdp-debug-gdc" - dflags "-J=views" "-I=src/sdp" - buildRequirements "allowWarnings" + targetName "sdp-gdc-debug" + dflags "-O2" "-fbuiltin" "-Wall" "-Werror" "-Wformat=2" "-g" "-J=views" "-I=src/sdp" + lflags "-lz" buildOptions "verbose" "debugMode" "debugInfo" "optimize" debugVersions "checkdoc" "summary" - postGenerateCommands "/usr/bin/notify-send -t 0 'D (debug) executable ready' 'sdp-debug-gdc'" + postGenerateCommands "/usr/bin/notify-send -t 0 'D gdc compiled (debug with -g) executable ready' 'sdp-gdc-debug'" } -configuration "sdp-debug-unittest-gdc" { +configuration "sdp-gdc-debug-unittest" { name "debuging" targetType "executable" platforms "posix" - compiler "gdc" - targetName "sdp-debug-gdc" + targetName "sdp-gdc-debug" dflags "-J=views" "-I=src/sdp" "-Dddocs" + lflags "-lz" buildRequirements "allowWarnings" buildOptions "verbose" "debugMode" "debugInfo" "unittests" "optimize" debugVersions "checkdoc" "summary" - postGenerateCommands "/usr/bin/notify-send -t 0 'D (debug) executable ready' 'sdp-debug-gdc'" + postGenerateCommands "/usr/bin/notify-send -t 0 'D (debug) executable ready' 'sdp-gdc-debug'" } -configuration "sdp-debug-docs-gdc" { +configuration "sdp-gdc-debug-docs" { name "debuging" targetType "executable" platforms "posix" - compiler "gdc" - targetName "sdp-debug-gdc" + targetName "sdp-gdc-debug" dflags "-J=views" "-I=src/sdp" "-Dddocs" + lflags "-lz" buildRequirements "allowWarnings" buildOptions "verbose" "debugMode" "debugInfo" "optimize" debugVersions "checkdoc" "summary" - postGenerateCommands "/usr/bin/notify-send -t 0 'D (debug) executable ready' 'sdp-debug-gdc'" + postGenerateCommands "/usr/bin/notify-send -t 0 'D (debug) executable ready' 'sdp-gdc-debug'" } |