summaryrefslogtreecommitdiff
path: root/docs/reference/libtracker-sparql/meson.build
blob: aa6d1d564db82f2647c2b312e2da9fdf621e0a93 (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
version_xml = configure_file(input: 'version.xml.in',
    output: 'version.xml',
    configuration: conf)

generated = custom_target('base-ontology-doc-generated',
    output: 'gen-doc.stamp',
    command: [ttl2sgml,
              '-d', join_paths(source_root, 'src/ontologies/'),
              '-o', join_paths(meson.current_build_dir(), 'xml/')],
    depends: ttl2sgml,
    # FIXME: this shouldn't be necessary, but currently the 'dependencies'
    # parameter to gnome.gtkdoc() doesn't actually trigger building of custom
    # targets.
    build_always: true
)

example_files = [
    'examples/ontologies/defining-cardinality-1.rq', 'examples/ontologies/defining-cardinality-2.txt',
    'examples/ontologies/defining-cardinality-3.rq', 'examples/ontologies/defining-classes-1.txt',
    'examples/ontologies/defining-classes-2.txt', 'examples/ontologies/defining-classes-3.rq',
    'examples/ontologies/defining-fts-indexes-1.txt', 'examples/ontologies/defining-fts-indexes-2.rq',
    'examples/ontologies/defining-indexes-1.txt', 'examples/ontologies/defining-namespaces-1.txt',
    'examples/ontologies/defining-properties-1.txt', 'examples/ontologies/defining-properties-2.txt',
    'examples/ontologies/defining-properties-3.txt', 'examples/ontologies/defining-properties-4.rq',
    'examples/ontologies/defining-uniqueness-1.txt', 'examples/ontologies/defining-uniqueness-2.rq',
    'examples/ontologies/example.description', 'examples/ontologies/predefined-elements-1.txt',
    'examples/ontologies/predefined-elements-2.rq'
]

gnome.gtkdoc('libtracker-sparql',
    src_dir: join_paths(meson.current_source_dir(), '..', '..', '..', 'src', 'libtracker-sparql'),
    main_sgml: 'libtracker-sparql-docs.sgml',
    content_files: ['overview.sgml', 'examples.sgml', 'ontologies.sgml', 'private-store.xml', 'migrating-1to2.xml', example_files],
    dependencies: generated,
    install: true)