1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
|
-*- mode: org -*-
#+TITLE: configuration dub
#+DESCRIPTION: documents - structuring, various output representations & search
#+FILETAGS: :spine:hub:
#+AUTHOR: Ralph Amissah
#+EMAIL: [[mailto:ralph.amissah@gmail.com][ralph.amissah@gmail.com]]
#+COPYRIGHT: Copyright (C) 2015 - 2023 Ralph Amissah
#+LANGUAGE: en
#+STARTUP: content hideblocks hidestars noindent entitiespretty
#+PROPERTY: header-args :exports code
#+PROPERTY: header-args+ :noweb yes
#+PROPERTY: header-args+ :results no
#+PROPERTY: header-args+ :cache no
#+PROPERTY: header-args+ :padline no
#+PROPERTY: header-args+ :mkdirp yes
#+OPTIONS: H:3 num:nil toc:t \n:t ::t |:t ^:nil -:t f:t *:t
- [[./doc-reform.org][doc-reform.org]] [[./][org/]]
** spine project VERSION :version:set:project:
#+NAME: spine_version
#+HEADER: :noweb yes
#+BEGIN_SRC emacs-lisp
<<./spine_version_info_and_doc_header_including_copyright_and_license.org:spine_project_version()>>
#+END_SRC
** dub
- https://github.com/dlang/dub/
- https://code.dlang.org/getting_started
- https://code.dlang.org/docs/commandline
*** dub.json :dub:config:json:
**** dub.json
***** file-system download external dependencies
- d2sqlite3
- dyaml
- tinyendian
- imageformats
#+HEADER: :tangle ../dub.json
#+HEADER: :noweb yes
#+BEGIN_SRC json
{
"authors": [
"Ralph Amissah"
],
"copyright": "Copyright © 2015 - 2023 Ralph Amissah",
"name": "spine",
"version": "<<spine_version>>",
"description": "an object-centric sisu-like document parser",
"homepage": "https://sisudoc.org",
"license": "AGPL-3.0+",
"targetPath": "./bin",
"sourcePaths": [ "./src/doc_reform" ],
"stringImportPaths": [ "./views" ],
"buildRequirements": [ "allowWarnings" ],
"targetType": "executable",
"buildTypes": {
"dmd": {
"dflags": [ "-J=views", "-I=src/doc_reform" ],
"buildOptions": [ "inline", "verbose" ],
"buildRequirements": [ "allowWarnings" ]
},
"ldc2": {
"dflags": [ "-O2", "-J=views", "-I=src/doc_reform" ],
"buildOptions": [ "optimize", "inline", "verbose" ],
"buildRequirements": [ "allowWarnings" ]
},
"ldmd2": {
"dflags": [ "-O2", "-boundscheck=on", "-J=views", "-I=src/doc_reform", "-color=on" ],
"buildOptions": [ "optimize", "inline", "verbose" ],
"buildRequirements": [ "allowWarnings" ]
},
"gdc": {
"dflags": [ "-O2", "-J=views", "-I=src/doc_reform" ],
"buildOptions": [ "optimize", "inline" ],
"buildRequirements": [ "allowWarnings" ]
},
"gdmd": {
"dflags": [ "-O2", "-J=views", "-I=src/doc_reform" ],
"buildOptions": [ "optimize", "inline" ],
"buildRequirements": [ "allowWarnings" ]
}
},
"dependencies": {
"spine:d2sqlite3": "*",
"spine:imageformats": "*",
"spine:dyaml": "*"
},
"subPackages": [
{
"name": "d2sqlite3",
"description": "A thin wrapper around SQLite 3",
"homepage": "https://github.com/dlang-community/d2sqlite3",
"authors": [ "Nicolas Sicard", "Other contributors: see Github repo" ],
"copyright": "Copyright 2011-18 Nicolas Sicard",
"license": "BSL-1.0",
"sourcePaths": [ "./src/ext_depends/d2sqlite3/source" ],
"importPaths": [ "./src/ext_depends/d2sqlite3/source" ],
"configurations": [
{
"name": "d2sqlite3",
"targetType": "library",
"systemDependencies": "SQLite version >= 3.8.7",
"libs": [ "sqlite3" ],
"excludedSourceFiles": [ "source/tests.d" ]
}
]
},
{
"name": "imageformats",
"description": "Decoders for PNG, TGA, BMP, JPEG and encoders for PNG, TGA, BMP.",
"authors": [ "Tero Hänninen" ],
"license": "BSL-1.0",
"sourcePaths": [ "./src/ext_depends/imageformats" ],
"importPaths": [ "./src/ext_depends/imageformats" ]
},
{
"name": "dyaml",
"description": "YAML parser and emitter",
"authors": [
"Ferdinand Majerech",
"Cameron \"Herringway\" Ross"
],
"license": "BSL-1.0",
"homepage": "https://github.com/dlang-community/D-YAML",
"copyright": "Copyright © 2011-2018, Ferdinand Majerech",
"sourcePaths": [
"./src/ext_depends/D-YAML/source",
"./src/ext_depends/tinyendian/source"
],
"importPaths": [
"./src/ext_depends/D-YAML/source",
"./src/ext_depends/tinyendian/source"
],
"preGenerateCommands": [
"rm -rf ./src/ext_depends/D-YAML/examples",
"rm -rf ./src/ext_depends/D-YAML/testsuite"
]
}
],
"configurations": [
{
"name": "default",
"targetName": "spine"
},
{
"name": "ldc2",
"targetName": "spine-ldc"
},
{
"name": "ldmd2",
"targetName": "spine-ldc"
},
{
"name": "dmd",
"targetName": "spine-dmd"
},
{
"name": "gdc",
"targetName": "spine-gdc"
},
{
"name": "gdmd",
"targetName": "spine-gdc"
}
]
}
#+END_SRC
*** dub.settings.json :dub:config:json:
#+HEADER: :NO-tangle ../dub.settings.json
#+BEGIN_SRC json
{
"defaultArchitecture": "x86_64",
"defaultCompiler": "ldc"
}
#+END_SRC
|