aboutsummaryrefslogtreecommitdiffhomepage
path: root/dub.sdl
diff options
context:
space:
mode:
Diffstat (limited to 'dub.sdl')
-rw-r--r--dub.sdl199
1 files changed, 134 insertions, 65 deletions
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'"
}