aboutsummaryrefslogtreecommitdiffhomepage
path: root/maker.org
diff options
context:
space:
mode:
Diffstat (limited to 'maker.org')
-rw-r--r--maker.org152
1 files changed, 125 insertions, 27 deletions
diff --git a/maker.org b/maker.org
index a37fbb6..5c585d3 100644
--- a/maker.org
+++ b/maker.org
@@ -47,7 +47,6 @@ LDC_FLAG_BINOF=-of=
#+BEGIN_SRC makefile :tangle makefile
GDC=gdc
-#GDC=gdc-5
GDC_FLAGS=
GDC_FLAGS_RELEASE=-march=native -O3 -pipe -frelease
GDC_FLAG_BINOF=-o
@@ -82,7 +81,7 @@ Set D_COMPILER one of DMD, LDC or GDC e.g.: SET_D_COMPILER=DMD
SET_D_COMPILER=LDC
#+END_SRC
-**** TODO SET debug flags: "SET_DC_FLAGS_DEBUG_EXTRA=-debug=": :compiler:flags:debug:
+**** TODO SET _debug_ flags: "SET_DC_FLAGS_DEBUG_EXTRA=-debug=": :compiler:flags:debug:
Set debug flags using DMD standard flag -debug= e.g.:
SET_DC_FLAGS_DEBUG_EXTRA=-debug=headings -debug=bookindex
SET_DC_FLAGS_DEBUG_EXTRA=-debug=headings -debug=footnotes -debug=endnotes
@@ -234,7 +233,7 @@ makefile_new:
make -k tangle_maker
#+END_SRC
-***** TODO dub build rebuild [#A] :dub:
+***** TODO _dub_ build rebuild [#A] :dub:
#+BEGIN_SRC makefile :tangle makefile
dub: $(PRG_SRCDIR)/$(PRG_SRC)
@@ -249,7 +248,7 @@ dub_dmd_stamp: tangle
dub_dmd_release_test: tangle
$(DUB) $(DUB_FLAGS)dmd --config=sdp-dmd
dub_dmd_debug: tangle
- $(DUB) $(DUB_FLAGS)dmd --config=sdp-debug
+ $(DUB) $(DUB_FLAGS)dmd --config=sdp-debug-dmd
dub_dmd_debug_clean: tangle
$(DUB) $(DUB_FLAGS)dmd --config=sdp-debug-clean
dub_dmd_tmp: tangle
@@ -264,7 +263,7 @@ dub_ldc_stamp: tangle
dub_ldc_release_test: tangle
$(DUB) $(DUB_FLAGS)ldc2 --config=sdp-ldc
dub_ldc_debug: tangle
- $(DUB) $(DUB_FLAGS)ldc2 --config=sdp-debug
+ $(DUB) $(DUB_FLAGS)ldc2 --config=sdp-debug-ldc
dub_ldc_debug_clean: tangle
$(DUB) $(DUB_FLAGS)ldc2 --config=sdp-debug-clean
dub_ldc_tmp: tangle
@@ -443,19 +442,25 @@ gitsnapshot: distclean tangle
** dub :dub:description:
Every DUB package should contain a [[http://code.dlang.org/package-format?lang=json][dub.json]] (or [[http://code.dlang.org/package-format?lang=sdl][dub.sdl]])
-*** dub.sdl [#A] :sdl:
+*** TODO dub.sdl [#A] :sdl:
+
+**** header :header:
#+BEGIN_SRC sh :tangle dub.sdl
name "sdp"
-description "sisu document parser."
+description "sisu document parser"
homepage "http://sisudoc.org"
authors "Ralph Amissah"
-copyright "©2016 Ralph Amissah"
+copyright "Copyright © 2016 Ralph Amissah"
license "AGPL-3+"
targetPath "./bin"
sourcePath "./src"
stringImportPaths "./views"
-buildRequirements "disallowDeprecations" "allowWarnings"
+buildRequirements "allowWarnings"
+#+END_SRC
+
+**** configuration generic :generic:
+#+BEGIN_SRC sh :tangle dub.sdl
configuration "sdp-release" {
name "release"
targetType "executable"
@@ -464,24 +469,6 @@ configuration "sdp-release" {
buildOptions "releaseMode" "optimize" "inline"
postGenerateCommands "/usr/bin/notify-send -t 0 'D release executable ready' 'sdp'"
}
-configuration "sdp-dmd" {
- name "dmd"
- targetType "executable"
- platforms "posix"
- #compiler "dmd"
- targetName "sdp-dmd"
- buildOptions "releaseMode" "optimize" "inline"
- postGenerateCommands "/usr/bin/notify-send -t 0 'D dmd compiled test release executable ready' 'sdp-dmd'"
-}
-configuration "sdp-ldc" {
- name "ldc"
- targetType "executable"
- platforms "posix"
- #compiler "ldc2"
- targetName "sdp-ldc"
- buildOptions "releaseMode" "optimize" "inline"
- postGenerateCommands "/usr/bin/notify-send -t 0 'D ldc2 compiled test release executable ready' 'sdp-ldc'"
-}
configuration "sdp-debug" {
name "debuging"
targetType "executable"
@@ -515,6 +502,117 @@ configuration "sdp-debug-clean" {
}
#+END_SRC
+**** configuration dmd :dmd:
+***** sdp-dmd
+#+BEGIN_SRC sh :tangle dub.sdl
+configuration "sdp-dmd" {
+ name "dmd"
+ targetType "executable"
+ platforms "posix"
+ #compiler "dmd"
+ targetName "sdp-dmd"
+ buildOptions "releaseMode" "optimize" "inline"
+ postGenerateCommands "/usr/bin/notify-send -t 0 'D dmd compiled test release executable ready' 'sdp-dmd'"
+}
+#+END_SRC
+
+***** sdp-debug-dmd :debug:
+#+BEGIN_SRC sh :tangle dub.sdl
+configuration "sdp-debug-dmd" {
+ name "debuging"
+ targetType "executable"
+ platforms "posix"
+ targetName "sdp-debug-dmd"
+ debugVersions "checkdoc"
+ debugVersions "summary"
+ debugVersions "dumpdoc"
+ buildOptions "debugMode" "debugInfo" "optimize"
+ postGenerateCommands "/usr/bin/notify-send -t 0 'D (debug) executable ready' 'sdp-debug-dmd'"
+}
+#+END_SRC
+
+**** configuration ldc :ldc:
+***** sdp-ldc
+#+BEGIN_SRC sh :tangle dub.sdl
+configuration "sdp-ldc" {
+ name "ldc"
+ targetType "executable"
+ platforms "posix"
+ #compiler "ldc2"
+ targetName "sdp-ldc"
+ buildOptions "releaseMode" "optimize" "inline"
+ postGenerateCommands "/usr/bin/notify-send -t 0 'D ldc2 compiled test release executable ready' 'sdp-ldc'"
+}
+#+END_SRC
+
+***** sdp-debug-ldc :debug:
+#+BEGIN_SRC sh :tangle dub.sdl
+configuration "sdp-debug-ldc" {
+ name "debuging"
+ targetType "executable"
+ platforms "posix"
+ targetName "sdp-debug-ldc"
+ debugVersions "checkdoc"
+ debugVersions "summary"
+ debugVersions "dumpdoc"
+ buildOptions "debugMode" "debugInfo" "optimize"
+ postGenerateCommands "/usr/bin/notify-send -t 0 'D (debug) executable ready' 'sdp-debug-ldc'"
+}
+#+END_SRC
+
+**** configuration debug list :debug:
+
+#+BEGIN_SRC sh :tangle no
+ debugVersions "biblio"
+ debugVersions "biblio_sorted"
+ debugVersions "bibliosorted"
+ debugVersions "block"
+ debugVersions "bookindex"
+ debugVersions "bookindexmatch"
+ debugVersions "bookindexraw"
+ debugVersions "check"
+ debugVersions "checkdoc"
+ debugVersions "code"
+ debugVersions "comment"
+ debugVersions "dumpdoc"
+ debugVersions "endnotes"
+ debugVersions "endnotes_build"
+ debugVersions "footnotes"
+ debugVersions "footnotesdone"
+ debugVersions "group"
+ debugVersions "header"
+ debugVersions "header_and_content"
+ debugVersions "header1"
+ debugVersions "headerjson"
+ debugVersions "headermakejson"
+ debugVersions "headermetadatajson"
+ debugVersions "heading"
+ debugVersions "headings"
+ debugVersions "headingsfound"
+ debugVersions "insert"
+ debugVersions "munge"
+ debugVersions "node"
+ debugVersions "objectrelated1"
+ debugVersions "objectrelated2"
+ debugVersions "objects"
+ debugVersions "ocnoff"
+ debugVersions "para"
+ debugVersions "parabullet"
+ debugVersions "parabulletindent"
+ debugVersions "paraindent"
+ debugVersions "paraindenthang"
+ debugVersions "parent"
+ debugVersions "poem"
+ debugVersions "quote"
+ debugVersions "raw"
+ debugVersions "sdlang"
+ debugVersions "source"
+ debugVersions "srclines"
+ debugVersions "structattrib"
+ debugVersions "summary"
+ debugVersions "table"
+#+END_SRC
+
dflags platform="dmd" "-v --force -de -w -J./views -I./src/sdp -of./bin/sdp"
dflags platform="dmd" "-O -release"
#buildOptions "-O -release"