aboutsummaryrefslogtreecommitdiffhomepage
path: root/meson.build
blob: b483de46c20d3770802f40ca1674bdb029adc2a6 (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
55
56
57
58
59
60
61
62
63
64
65
66
project('spine', 'd',
  license: 'AGPL3',
  version: '0.9.2',
  meson_version: '>=0.46'
)
#if meson.get_compiler('d').get_id() == 'gcc'
#    error('spine cannot be compiled with GDC at time. Sorry.')
#endif
spine_sources = [
  'src/doc_reform/spine.d',
  'src/doc_reform/conf/compile_time_info.d',
  'src/doc_reform/io_in/paths_source.d',
  'src/doc_reform/io_in/read_config_files.d',
  'src/doc_reform/io_in/read_source_files.d',
  'src/doc_reform/io_out/create_zip_file.d',
  'src/doc_reform/io_out/defaults.d',
  'src/doc_reform/io_out/epub3.d',
  'src/doc_reform/io_out/html.d',
  'src/doc_reform/io_out/hub.d',
  'src/doc_reform/io_out/latex.d',
  'src/doc_reform/io_out/metadata.d',
  'src/doc_reform/io_out/odt.d',
  'src/doc_reform/io_out/package.d',
  'src/doc_reform/io_out/paths_output.d',
  'src/doc_reform/io_out/rgx.d',
  'src/doc_reform/io_out/source_pod.d',
  'src/doc_reform/io_out/sqlite.d',
  'src/doc_reform/io_out/xmls_css.d',
  'src/doc_reform/io_out/xmls.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_yaml.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_harvest.d',
  'src/doc_reform/meta/metadoc_harvests_authors.d',
  'src/doc_reform/meta/metadoc_harvests_topics.d',
  'src/doc_reform/meta/metadoc_object_setter.d',
  'src/doc_reform/meta/metadoc_show_config.d',
  'src/doc_reform/meta/metadoc_show_make.d',
  'src/doc_reform/meta/metadoc_show_metadata.d',
  'src/doc_reform/meta/metadoc_show_summary.d',
  'src/doc_reform/meta/package.d',
  'src/doc_reform/meta/rgx.d',
  'src/doc_reform/share/defaults.d',
]
source_root = meson.source_root()
sources_dir = include_directories('src/')
# Dependencies
dep_dyaml        = dependency('dyaml',          version: '>= 0.8.0',  fallback: ['dyaml',          'dyaml_dep'])
dep_d2sqlite3    = dependency('d2sqlite3',      version: '>= 0.18.3', fallback: ['d2sqlite3',      'd2sqlite3_dep'])
dep_imageformats = dependency('imageformats',   version: '>= 7.0.2',  fallback: ['imageformats',   'imageformats_dep'])
# Executable
spine_exe = executable('spine',
  [spine_sources],
  include_directories : [sources_dir],
  d_import_dirs: [include_directories('views')],
  dependencies : [
    dep_dyaml,
    dep_d2sqlite3,
    dep_imageformats,
  ],
  install : true
)