]> git.proxmox.com Git - ceph.git/blob - ceph/src/arrow/c_glib/doc/plasma-glib/meson.build
import quincy 17.2.0
[ceph.git] / ceph / src / arrow / c_glib / doc / plasma-glib / meson.build
1 # -*- indent-tabs-mode: nil -*-
2 #
3 # Licensed to the Apache Software Foundation (ASF) under one
4 # or more contributor license agreements. See the NOTICE file
5 # distributed with this work for additional information
6 # regarding copyright ownership. The ASF licenses this file
7 # to you under the Apache License, Version 2.0 (the
8 # "License"); you may not use this file except in compliance
9 # with the License. You may obtain a copy of the License at
10 #
11 # http://www.apache.org/licenses/LICENSE-2.0
12 #
13 # Unless required by applicable law or agreed to in writing,
14 # software distributed under the License is distributed on an
15 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 # KIND, either express or implied. See the License for the
17 # specific language governing permissions and limitations
18 # under the License.
19
20 package_id = 'plasma-glib'
21 package_name = 'Plasma GLib'
22 entities_conf = configuration_data()
23 entities_conf.set('PACKAGE', package_id)
24 entities_conf.set('PACKAGE_BUGREPORT',
25 'https://issues.apache.org/jira/browse/ARROW')
26 entities_conf.set('PACKAGE_NAME', package_name)
27 entities_conf.set('PACKAGE_STRING',
28 ' '.join([package_name, version]))
29 entities_conf.set('PACKAGE_URL', 'https://arrow.apache.org/')
30 entities_conf.set('PACKAGE_VERSION', version)
31 configure_file(input: 'entities.xml.in',
32 output: 'entities.xml',
33 configuration: entities_conf)
34
35 private_headers = [
36 ]
37
38 content_files = [
39 ]
40
41 html_images = [
42 ]
43
44 glib_prefix = dependency('glib-2.0').get_pkgconfig_variable('prefix')
45 glib_doc_path = join_paths(glib_prefix, 'share', 'gtk-doc', 'html')
46 arrow_glib_doc_path = join_paths(data_dir,
47 'gtk-doc',
48 'html',
49 'arrow-glib')
50 doc_path = join_paths(data_dir, 'gtk-doc', 'html', package_id)
51
52 source_directories = [
53 join_paths(meson.source_root(), package_id),
54 join_paths(meson.build_root(), package_id),
55 ]
56 dependencies = [
57 plasma_glib,
58 arrow_glib,
59 ]
60 if arrow_cuda.found()
61 dependencies += [arrow_cuda_glib]
62 endif
63 ignore_headers = []
64 gnome.gtkdoc(package_id,
65 main_xml: package_id + '-docs.xml',
66 src_dir: source_directories,
67 dependencies: dependencies,
68 ignore_headers: ignore_headers,
69 gobject_typesfile: package_id + '.types',
70 scan_args: [
71 '--rebuild-types',
72 '--deprecated-guards=GPLASMA_DISABLE_DEPRECATED',
73 ],
74 mkdb_args: [
75 '--output-format=xml',
76 '--name-space=gplasma',
77 '--source-suffixes=c,cpp,h',
78 ],
79 fixxref_args: [
80 '--html-dir=' + doc_path,
81 '--extra-dir=' + join_paths(glib_doc_path, 'glib'),
82 '--extra-dir=' + join_paths(glib_doc_path, 'gobject'),
83 '--extra-dir=' + arrow_glib_doc_path,
84 ],
85 html_assets: html_images,
86 install: true)