File: meson.build

package info (click to toggle)
parlatype 4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,616 kB
  • sloc: ansic: 14,504; xml: 160; python: 134; sh: 37; makefile: 28
file content (57 lines) | stat: -rw-r--r-- 1,679 bytes parent folder | download
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
version_conf = configuration_data()
version_conf.set('PACKAGE_VERSION', meson.project_version())
version_conf.set('API_VERSION', libparlatype_api_version)
version_conf.set('SONAME', libparlatype_version)
configure_file(
  input: 'parlatype-docs.xml.in',
  output: 'parlatype-docs.xml',
  configuration: version_conf,
)
configure_file(
  input: 'introduction.xml.in',
  output: 'introduction.xml',
  configuration: version_conf,
)
configure_file(
  input: 'using_library.xml.in',
  output: 'using_library.xml',
  configuration: version_conf,
)
configure_file(
  input: 'parlatype-example.py.in',
  output: 'parlatype-example.py',
  configuration: version_conf,
)

gnome.gtkdoc(
  'parlatype',
  main_xml: join_paths(meson.current_build_dir(), 'parlatype-docs.xml'),
  src_dir: [
    join_paths(meson.project_source_root(), 'libparlatype', 'src'),
    join_paths(meson.project_build_root(), 'libparlatype', 'src'),
  ],
  gobject_typesfile: join_paths(meson.current_source_dir(), 'libparlatype.types'),
  dependencies: libparlatype_dep,
  scan_args: [
    '--source-dir=' + join_paths(meson.project_source_root(), 'libparlatype', 'src'),
    '--rebuild-types',
    '--deprecated-guards="PT_DISABLE_DEPRECATED"',
  ],
  mkdb_args: [
    '--xml-mode',
    '--output-format=xml',
  ],
  content_files: [
    'gallery.xml',
    join_paths(meson.current_build_dir(), 'introduction.xml'),
    join_paths(meson.current_build_dir(), 'using_library.xml'),
    'python_example.xml',
    join_paths(meson.current_build_dir(), 'parlatype-example.py'),
    'parlatype-example.ui',
  ],
  ignore_headers: private_headers,
  html_assets: [
    'images/pt-waveviewer.png',
  ],
  install: true,
)