aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2018-09-10 17:25:32 -0400
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:15 -0400
commit42f466d03f1304294a559568dcb6332784a14886 (patch)
tree37f7d17051cd195e550e53890000b11b96ba432e
parenttrack (diff)
maker, subprojects arrange, minordoc-reform_v0.0.27
-rw-r--r--dub.sdl6
-rw-r--r--makefile11
-rw-r--r--maker.org32
-rw-r--r--meson.build10
4 files changed, 43 insertions, 16 deletions
diff --git a/dub.sdl b/dub.sdl
index 63d2441..b891427 100644
--- a/dub.sdl
+++ b/dub.sdl
@@ -8,12 +8,12 @@ targetPath "./bin"
#sourcePath "./src/sdp"
stringImportPaths "./views"
buildRequirements "allowWarnings"
-dependency "toml" version="~>1.0.0-rc.3" # https://code.dlang.org/packages/toml https://github.com/toml-lang/toml/wiki
-dependency "toml:json" version="~>1.0.0-rc.3"
+dependency "archive" version="~>0.6.0" # http://code.dlang.org/packages/archive https://github.com/rcythr/archive
dependency "d2sqlite3" version="~>0.16.2" # https://code.dlang.org/packages/d2sqlite3 http://biozic.github.io/d2sqlite3/d2sqlite3.html
subconfiguration "d2sqlite3" "all-included"
-dependency "archive" version="~>0.6.0" # http://code.dlang.org/packages/archive https://github.com/rcythr/archive
dependency "imageformats" version="~>7.0.0" # https://code.dlang.org/packages/imageformats https://github.com/lgvz/imageformats
+dependency "toml" version="~>1.0.0-rc.3" # https://code.dlang.org/packages/toml https://github.com/toml-lang/toml/wiki
+dependency "toml:json" version="~>1.0.0-rc.3"
configuration "sdp-release" {
name "release"
targetType "executable"
diff --git a/makefile b/makefile
index 0c60492..9443912 100644
--- a/makefile
+++ b/makefile
@@ -86,6 +86,17 @@ markup_dir_samples:
all: dmd ldc gdc
all_ver: dmd_ver ldc_ver gdc_ver
all_debug: dmd_debug gdc_debug ldc_debug
+meson:
+ rm -r build && mkdir build
+ meson --buildtype=debugoptimized build
+ ninja -C build
+mesonredo:
+ rm -r build && mkdir build
+ meson --buildtype=debugoptimized build
+ ninja -C build
+mesonclean: clean skel tangle
+ meson --buildtype=debugoptimized build
+ ninja -C build
all_clean: clean tangle dmd ldc gdc
all_ver_clean: clean tangle dmd_ver ldc_ver gdc_ver
all_debug_ver: dmd_debug_ver gdc_debug_ver ldc_debug_ver
diff --git a/maker.org b/maker.org
index b2cc94f..7dd9906 100644
--- a/maker.org
+++ b/maker.org
@@ -187,6 +187,22 @@ all_ver: dmd_ver ldc_ver gdc_ver
all_debug: dmd_debug gdc_debug ldc_debug
#+END_SRC
+******** _meson_ build :meson:
+
+#+BEGIN_SRC makefile :tangle makefile
+meson:
+ rm -r build && mkdir build
+ meson --buildtype=debugoptimized build
+ ninja -C build
+mesonredo:
+ rm -r build && mkdir build
+ meson --buildtype=debugoptimized build
+ ninja -C build
+mesonclean: clean skel tangle
+ meson --buildtype=debugoptimized build
+ ninja -C build
+#+END_SRC
+
******* clean & tangle :clean:tangle:
******** default :default:
@@ -818,12 +834,12 @@ targetPath "./bin"
#sourcePath "./src/sdp"
stringImportPaths "./views"
buildRequirements "allowWarnings"
-dependency "toml" version="~>1.0.0-rc.3" # https://code.dlang.org/packages/toml https://github.com/toml-lang/toml/wiki
-dependency "toml:json" version="~>1.0.0-rc.3"
+dependency "archive" version="~>0.6.0" # http://code.dlang.org/packages/archive https://github.com/rcythr/archive
dependency "d2sqlite3" version="~>0.16.2" # https://code.dlang.org/packages/d2sqlite3 http://biozic.github.io/d2sqlite3/d2sqlite3.html
subconfiguration "d2sqlite3" "all-included"
-dependency "archive" version="~>0.6.0" # http://code.dlang.org/packages/archive https://github.com/rcythr/archive
dependency "imageformats" version="~>7.0.0" # https://code.dlang.org/packages/imageformats https://github.com/lgvz/imageformats
+dependency "toml" version="~>1.0.0-rc.3" # https://code.dlang.org/packages/toml https://github.com/toml-lang/toml/wiki
+dependency "toml:json" version="~>1.0.0-rc.3"
#+END_SRC
** generic :generic:
@@ -1108,20 +1124,20 @@ sdp_sources = [ 'src/sdp/sdp.d',
source_root = meson.source_root()
sources_dir = include_directories('src/')
# Dependencies
-dep_toml = dependency('toml-d', version: '>= 1.0.0', fallback: ['toml-d', 'toml_dep'])
-dep_d2sqlite3 = dependency('d2sqlite3', version: '>= 0.16.2', fallback: ['d2sqlite3', 'd2sqlite3_dep'])
dep_archive = dependency('archive', version: '>= 0.6.0', fallback: ['archived', 'archive_dep'])
+dep_d2sqlite3 = dependency('d2sqlite3', version: '>= 0.16.2', fallback: ['d2sqlite3', 'd2sqlite3_dep'])
dep_imageformats = dependency('imageformats-d', version: '>= 7.0.0', fallback: ['imageformats-d', 'imageformats_dep'])
+dep_toml = dependency('toml-d', version: '>= 1.0.0', fallback: ['toml-d', 'toml_dep'])
# executable
sdp_exe = executable('sdp',
[sdp_sources],
include_directories : [sources_dir],
d_import_dirs: [include_directories('views')],
dependencies : [
- dep_toml,
- dep_d2sqlite3,
dep_archive,
- dep_imageformats
+ dep_d2sqlite3,
+ dep_imageformats,
+ dep_toml
],
install : true
)
diff --git a/meson.build b/meson.build
index 7561b55..7588167 100644
--- a/meson.build
+++ b/meson.build
@@ -38,20 +38,20 @@ sdp_sources = [ 'src/sdp/sdp.d',
source_root = meson.source_root()
sources_dir = include_directories('src/')
# Dependencies
-dep_toml = dependency('toml-d', version: '>= 1.0.0', fallback: ['toml-d', 'toml_dep'])
-dep_d2sqlite3 = dependency('d2sqlite3', version: '>= 0.16.2', fallback: ['d2sqlite3', 'd2sqlite3_dep'])
dep_archive = dependency('archive', version: '>= 0.6.0', fallback: ['archived', 'archive_dep'])
+dep_d2sqlite3 = dependency('d2sqlite3', version: '>= 0.16.2', fallback: ['d2sqlite3', 'd2sqlite3_dep'])
dep_imageformats = dependency('imageformats-d', version: '>= 7.0.0', fallback: ['imageformats-d', 'imageformats_dep'])
+dep_toml = dependency('toml-d', version: '>= 1.0.0', fallback: ['toml-d', 'toml_dep'])
# executable
sdp_exe = executable('sdp',
[sdp_sources],
include_directories : [sources_dir],
d_import_dirs: [include_directories('views')],
dependencies : [
- dep_toml,
- dep_d2sqlite3,
dep_archive,
- dep_imageformats
+ dep_d2sqlite3,
+ dep_imageformats,
+ dep_toml
],
install : true
)