aboutsummaryrefslogtreecommitdiffhomepage
path: root/meson.build
blob: 14e3353f43a75a6d8b07d18fc50f56d328a325f8 (plain)
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
project('doc-reform', 'd',
  license: 'GPL3',
  version: '0.26.5',
  meson_version: '>=0.46'
)
doc_reform_sources = [ 'src/doc_reform/doc_reform.d',
  'src/doc_reform/conf/compile_time_info.d',
  'src/doc_reform/meta/conf_make_meta_json.d',
  'src/doc_reform/meta/conf_make_meta_structs.d',
  'src/doc_reform/meta/conf_make_meta_toml.d',
  'src/doc_reform/meta/defaults.d',
  'src/doc_reform/meta/doc_debugs.d',
  'src/doc_reform/meta/metadoc.d',
  'src/doc_reform/meta/metadoc_from_src.d',
  'src/doc_reform/meta/metadoc_summary.d',
  'src/doc_reform/meta/object_setter.d',
  'src/doc_reform/meta/package.d',
  'src/doc_reform/meta/rgx.d',
  'src/doc_reform/output/create_zip_file.d',
  'src/doc_reform/output/defaults.d',
  'src/doc_reform/output/epub3.d',
  'src/doc_reform/output/html.d',
  'src/doc_reform/output/hub.d',
  'src/doc_reform/output/package.d',
  'src/doc_reform/output/paths_output.d',
  'src/doc_reform/output/rgx.d',
  'src/doc_reform/output/source_sisupod.d',
  'src/doc_reform/output/sqlite.d',
  'src/doc_reform/output/xmls_css.d',
  'src/doc_reform/output/xmls.d',
  'src/doc_reform/source/paths_source.d',
  'src/doc_reform/source/read_config_files.d',
  'src/doc_reform/source/read_source_files.d',
]
source_root = meson.source_root()
sources_dir = include_directories('src/')
# Dependencies
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
doc_reform_exe = executable('rad',
  [doc_reform_sources],
  include_directories : [sources_dir],
  d_import_dirs: [include_directories('views')],
  dependencies : [
    dep_archive,
    dep_d2sqlite3,
    dep_imageformats,
    dep_toml
  ],
  install : true
)