From 0ad57cc16d644cf614f128caf52273367dced16a Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Fri, 27 Jul 2018 23:44:18 -0400 Subject: meson build related (reggae removed for now) --- meson.build | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 meson.build (limited to 'meson.build') diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..7561b55 --- /dev/null +++ b/meson.build @@ -0,0 +1,57 @@ +project('sdp', 'd', + license: 'GPL3', + version: '0.26.5', + meson_version: '>=0.46' +) +#if meson.get_compiler('d').get_id() == 'gcc' +# error('sdp cannot be compiled with GDC at time. Sorry.') +#endif +sdp_sources = [ 'src/sdp/sdp.d', + 'src/sdp/conf/compile_time_info.d', + 'src/sdp/meta/conf_make_meta_json.d', + 'src/sdp/meta/conf_make_meta_structs.d', + 'src/sdp/meta/conf_make_meta_toml.d', + 'src/sdp/meta/defaults.d', + 'src/sdp/meta/doc_debugs.d', + 'src/sdp/meta/metadoc.d', + 'src/sdp/meta/metadoc_from_src.d', + 'src/sdp/meta/metadoc_summary.d', + 'src/sdp/meta/object_setter.d', + 'src/sdp/meta/package.d', + 'src/sdp/meta/rgx.d', + 'src/sdp/output/create_zip_file.d', + 'src/sdp/output/defaults.d', + 'src/sdp/output/epub3.d', + 'src/sdp/output/html.d', + 'src/sdp/output/hub.d', + 'src/sdp/output/package.d', + 'src/sdp/output/paths_output.d', + 'src/sdp/output/rgx.d', + 'src/sdp/output/source_sisupod.d', + 'src/sdp/output/sqlite.d', + 'src/sdp/output/xmls_css.d', + 'src/sdp/output/xmls.d', + 'src/sdp/source/paths_source.d', + 'src/sdp/source/read_config_files.d', + 'src/sdp/source/read_source_files.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_imageformats = dependency('imageformats-d', version: '>= 7.0.0', fallback: ['imageformats-d', 'imageformats_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 + ], + install : true +) -- cgit v1.2.3