aboutsummaryrefslogtreecommitdiffhomepage
path: root/maker.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2016-04-26 21:11:38 -0400
committerRalph Amissah <ralph@amissah.com>2019-04-04 14:44:02 -0400
commitb1ad3c039588b6953dc8891d38418b3a214caaa9 (patch)
treeb00ce546198dd138ab42303d9dd5ebe22057dcaa /maker.org
parentdo not track (diff)
config rearranged, more put in maker.orgdoc-reform_v0.0.3
Diffstat (limited to 'maker.org')
-rw-r--r--maker.org79
1 files changed, 62 insertions, 17 deletions
diff --git a/maker.org b/maker.org
index 651473f..0bb9519 100644
--- a/maker.org
+++ b/maker.org
@@ -59,34 +59,26 @@ DUB=dub
DUB_FLAGS=-v --force --compiler=
#+END_SRC
-*** TODO set/select: ~D compiler~ & ~debug flags~ [+1] [2/2] :select:
+*** TODO set/select: ~D compiler~ & ~debug flags~ [+1] [2/2] :select:
- [X] Set D_COMPILER (one of DMD LDC or GDC)
- [X] Set debug flags (using DMD standard flag -debug=)
-**** SET compiler: "SET_D_COMPILER=": :compiler:select:
+**** TODO [#A] SET compiler: "SET_D_COMPILER=": :compiler:select:
[[http://wiki.dlang.org/Compilers][D Compilers wiki]]
[[http://dlang.org/download.html][D Compilers download]]
Set D_COMPILER one of DMD, LDC or GDC e.g.: SET_D_COMPILER=DMD
-***** TODO [#A] set compiler
#+BEGIN_SRC makefile :tangle makefile
# SET_D_COMPILER=(one of: DMD LDC or GDC):
SET_D_COMPILER=DMD
#+END_SRC
-***** +note+
-
-"nice how you can get 2x speedup without a single line of asm just by using ldc", p0nce
-"gdc might be worth a shot if your code is compatible", profan
-re: dmd "one can easily get 2x (and even more) speedup by simply switching to gdc -O2", ketmar
-
-**** SET debug flags: "SET_DC_FLAGS_DEBUG_EXTRA=-debug=": :compiler:flags:debug:
+**** TODO [#A] 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
SET_DC_FLAGS_DEBUG_EXTRA=-debug=headings -debug=biblio
-***** TODO [#A] set debug flags
#+BEGIN_SRC makefile :tangle makefile
SET_DC_FLAGS_DEBUG_EXTRA=-debug=dumpdoc
#+END_SRC
@@ -394,7 +386,54 @@ gitsnapshot: distclean tangle
tangle gitsnapshot
#+END_SRC
-* sh script to batch process emacs org babel tangle :shell_script:tangle:
+* conf misc
+** dub.json :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]])
+
+#+BEGIN_SRC json :tangle dub.json
+{
+ "name" : "sdp",
+ "targetType" : "executable",
+ "targetName" : "sdp",
+ "targetPath" : "bin",
+ "description" : "sisu document parser.",
+ "authors" : ["Ralph Amissah"],
+ "homepage" : "http://sisudoc.org",
+ "license" : "AGPL-3+",
+ "add-path" : "./src/sdp",
+ "dependencies": {
+ }
+}
+#+END_SRC
+
+** .gitignore :gitignore:
+
+#+BEGIN_SRC sh :tangle .gitignore
+# git ls-files --others --exclude-from=.git/info/exclude
+#./.dub/**
+.dub/**
+*
+!.gitignore
+!makefile
+!version.txt
+!./dub.json
+!tangle
+!*.org
+!*.d
+!*.txt
+!org
+!src
+!views
+!**/
+**/.#*
+#!*/
+#*~
+#\#*
+#*.\#*
+#+END_SRC
+
+** sh script to batch process emacs org babel tangle :shell_script:tangle:
[http://orgmode.org/manual/Batch-execution.html]
creates a shell batch script called "tangle", that will tangle (emacs org
babel tangle) org files in ./org/ to create .d source files in ./src/sdp/
@@ -429,7 +468,7 @@ emacs --batch -Q -q \
* D build notes :notes:
** compilers :compiler:
-*** [#A] dmd
+*** [#A] dmd :dmd:
#+BEGIN_SRC sh
dmd -de -w -J./views -I./src/sdp -unittest -debug=checkdoc -debug=summary -debug=dumpdoc -of./bin/sdp ./src/sdp.d
@@ -437,7 +476,7 @@ dmd -de -w -J./views -I./src/sdp -of./bin/sdp ./src/sdp.d
dmd -de -w -J./views -I./src/sdp -O -release -of./bin/sdp ./src/sdp.d
#+END_SRC
-*** [#A] ldc2
+*** [#A] ldc2 :ldc2:
#+BEGIN_SRC sh
ldc2 -de -w -J./views -I./src/sdp -unittest -d-debug=checkdoc -d-debug=summary -d-debug=dumpdoc -of=./bin/sdp ./src/sdp.d
@@ -445,15 +484,21 @@ ldc2 -de -w -J./views -I./src/sdp -of=./bin/sdp ./src/sdp.d
ldc2 -de -w -J./views -I./src/sdp -O4 -release -of=./bin/sdp ./src/sdp.d
#+END_SRC
-*** TODO gdc
+*** TODO gdc :gdc:
not done
#+BEGIN_SRC sh
#+END_SRC
+**** +note+
+
+"nice how you can get 2x speedup without a single line of asm just by using ldc", p0nce
+"gdc might be worth a shot if your code is compatible", profan
+re: dmd "one can easily get 2x (and even more) speedup by simply switching to gdc -O2", ketmar
+
** build tools :build:tool:
-*** [#B] rdmd
+*** [#B] rdmd :rdmd:
flags similar to dmd
@@ -469,7 +514,7 @@ rdmd -de -w -J./views -I./src/sdp -unittest -debug=checkdoc -debug=summary -debu
rdmd -de -w -J./views -I./src/sdp -unittest -d-debug=checkdoc -d-debug=summary -d-debug=dumpdoc --compiler=ldc2 -of./bin/sdp ./src/sdp.d
#+END_SRC
-*** [#A] dub
+*** [#A] dub :dub:
https://github.com/dlang/dub/
http://code.dlang.org/getting_started
http://code.dlang.org/docs/commandline