diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2021-08-11 06:09:23 -0400 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2021-08-12 01:49:33 -0400 |
commit | f459b2f57b111d2a7d6a50ba04bf680310d7c4d9 (patch) | |
tree | d71560ff280d244c1a0cd65c651fc85e68ffca8a /org/config_d_cfte.org | |
parent | spine search and configuration related (diff) |
configuration reorganized into config files
- spine_build_scaffold broken up into many files
Diffstat (limited to 'org/config_d_cfte.org')
-rw-r--r-- | org/config_d_cfte.org | 56 |
1 files changed, 53 insertions, 3 deletions
diff --git a/org/config_d_cfte.org b/org/config_d_cfte.org index 5755b02..35f458e 100644 --- a/org/config_d_cfte.org +++ b/org/config_d_cfte.org @@ -16,8 +16,58 @@ #+PROPERTY: header-args+ :padline no #+PROPERTY: header-args+ :mkdirp yes -* cfte views SET -** spine configuration.txt +* cfte views version.txt configuration.txt (set version & configuration) SET + +** program version +*** set program version tangle SET :version: + +#+HEADER: :tangle "../views/version.txt" +#+BEGIN_SRC txt +<<spine_version_struct>> +<<spine_version_current_set>> +<<spine_compiler_restrictions>> +#+END_SRC + +*** program version struct + +#+NAME: spine_version_struct +#+BEGIN_SRC d +/+ obt - org-mode generated file +/ +struct Version { + int major; + int minor; + int patch; +} +#+END_SRC + +*** set program version VERSION :version:set:project: + +#+NAME: spine_version_current_set +#+BEGIN_SRC d +enum _ver = Version(0, 11, 3); +#+END_SRC + +** compilation restrictions (supported compilers) +- set compilation restrictions + +https://dlang.org/spec/version.html#predefined-versions + +#+NAME: spine_compiler_restrictions +#+BEGIN_SRC d +version (Posix) { + version (DigitalMars) { + } else version (LDC) { + } else version (GNU) { + } else { + static assert (0, "Unsupported D compiler"); + } +} else { + static assert (0, "Unsupported D compiler"); +} +#+END_SRC + +** set configuration :configuration: +*** spine configuration.txt SET #+HEADER: :tangle "../views/configuration_suggested.txt" #+BEGIN_SRC d @@ -46,7 +96,7 @@ struct Cfg { enum _cfg = Cfg(); #+END_SRC -** spine_search configuration.txt +*** spine_search configuration.txt SET #+HEADER: :tangle "../sundry/spine_search_cgi/views/configuration_suggested.txt" #+BEGIN_SRC d |