|  | 
|  | 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 | +project_name = 'plasma-glib' | 
|  | 21 | +entities_conf = configuration_data() | 
|  | 22 | +entities_conf.set('PACKAGE', project_name) | 
|  | 23 | +entities_conf.set('PACKAGE_BUGREPORT', | 
|  | 24 | +                  'https://issues.apache.org/jira/browse/ARROW') | 
|  | 25 | +entities_conf.set('PACKAGE_NAME', project_name) | 
|  | 26 | +entities_conf.set('PACKAGE_STRING', | 
|  | 27 | +                  ' '.join([project_name, version])) | 
|  | 28 | +entities_conf.set('PACKAGE_URL', 'https://arrow.apache.org/') | 
|  | 29 | +entities_conf.set('PACKAGE_VERSION', version) | 
|  | 30 | +configure_file(input: 'entities.xml.in', | 
|  | 31 | +               output: 'entities.xml', | 
|  | 32 | +               configuration: entities_conf) | 
|  | 33 | + | 
|  | 34 | +private_headers = [ | 
|  | 35 | +] | 
|  | 36 | + | 
|  | 37 | +content_files = [ | 
|  | 38 | +] | 
|  | 39 | + | 
|  | 40 | +html_images = [ | 
|  | 41 | +] | 
|  | 42 | + | 
|  | 43 | +glib_prefix = dependency('glib-2.0').get_pkgconfig_variable('prefix') | 
|  | 44 | +glib_doc_path = join_paths(glib_prefix, 'share', 'gtk-doc', 'html') | 
|  | 45 | +arrow_glib_doc_path = join_paths(data_dir, | 
|  | 46 | +                                 'gtk-doc', | 
|  | 47 | +                                 'html', | 
|  | 48 | +                                 meson.project_name()) | 
|  | 49 | +doc_path = join_paths(data_dir, project_name, 'gtk-doc', 'html') | 
|  | 50 | + | 
|  | 51 | +source_directories = [ | 
|  | 52 | +  join_paths(meson.source_root(), 'plasma-glib'), | 
|  | 53 | +  join_paths(meson.build_root(), 'plasma-glib'), | 
|  | 54 | +] | 
|  | 55 | +dependencies = [ | 
|  | 56 | +  arrow_glib, | 
|  | 57 | +  plasma_glib, | 
|  | 58 | +] | 
|  | 59 | +ignore_headers = [] | 
|  | 60 | +gnome.gtkdoc(project_name, | 
|  | 61 | +             main_xml: project_name + '-docs.xml', | 
|  | 62 | +             src_dir: source_directories, | 
|  | 63 | +             dependencies: dependencies, | 
|  | 64 | +             ignore_headers: ignore_headers, | 
|  | 65 | +             gobject_typesfile: project_name + '.types', | 
|  | 66 | +             scan_args: [ | 
|  | 67 | +               '--rebuild-types', | 
|  | 68 | +               '--deprecated-guards=GPLASMA_DISABLE_DEPRECATED', | 
|  | 69 | +             ], | 
|  | 70 | +             mkdb_args: [ | 
|  | 71 | +               '--output-format=xml', | 
|  | 72 | +               '--name-space=gplasma', | 
|  | 73 | +               '--source-suffixes=c,cpp,h', | 
|  | 74 | +             ], | 
|  | 75 | +             fixxref_args: [ | 
|  | 76 | +               '--html-dir=' + doc_path, | 
|  | 77 | +               '--extra-dir=' + join_paths(glib_doc_path, 'glib'), | 
|  | 78 | +               '--extra-dir=' + join_paths(glib_doc_path, 'gobject'), | 
|  | 79 | +               '--extra-dir=' + arrow_glib_doc_path, | 
|  | 80 | +             ], | 
|  | 81 | +             html_assets: html_images, | 
|  | 82 | +             install: true) | 
0 commit comments