File: meson.build

package info (click to toggle)
gtksourceview4 4.8.4-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,380 kB
  • sloc: ansic: 50,318; xml: 1,432; javascript: 856; perl: 212; sh: 150; php: 48; yacc: 45; ruby: 38; sql: 30; cobol: 20; objc: 19; lisp: 19; fortran: 14; python: 13; makefile: 12; cpp: 8; ml: 3
file content (103 lines) | stat: -rw-r--r-- 3,053 bytes parent folder | download | duplicates (4)
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
glib_prefix = glib_dep.get_pkgconfig_variable('prefix')
glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html')

gtk_prefix = gtk_dep.get_pkgconfig_variable('prefix')
gtk_docpath = join_paths(gtk_prefix, 'share', 'gtk-doc', 'html')

reference_private_h = [
  'config.h',
  'gtksource.h',
  'gtksourcebuffer-private.h',
  'gtksourcebufferinputstream.h',
  'gtksourcebufferinternal.h',
  'gtksourcebufferoutputstream.h',
  'gtksourcecompletioncontainer.h',
  'gtksourcecompletionmodel.h',
  'gtksourcecompletion-private.h',
  'gtksourcecompletionwordsbuffer.h',
  'gtksourcecompletionwordslibrary.h',
  'gtksourcecompletionwordsproposal.h',
  'gtksourcecompletionwordsutils.h',
  'gtksourcecontextengine.h',
  'gtksourceencoding-private.h',
  'gtksourceengine.h',
  'gtksourcegutter-private.h',
  'gtksourcegutterrendererlines.h',
  'gtksourcegutterrenderermarks.h',
  'gtksourcegutterrenderer-private.h',
  'gtksourceiter.h',
  'gtksourcelanguage-private.h',
  'gtksourcemarkssequence.h',
  'gtksourcepixbufhelper.h',
  'gtksourceregex.h',
  'gtksourcestyle-private.h',
  'gtksourcetypes-private.h',
  'gtksourceundomanagerdefault.h',
  'gtksourceutils-private.h',
]

reference_content_files = files([
  'lang-tutorial.xml',
  'porting-guide-3-to-4.xml',
])

reference_sources = [
  join_paths(srcdir, 'gtksourceview'),
  join_paths(builddir, 'gtksourceview'),
]

into_xml = configure_file(
         input: 'intro.xml.in',
         output: 'intro.xml',
  configuration: config_h
)

lang_reference_xml = configure_file(
          input: 'lang-reference.xml.in',
         output: 'lang-reference.xml',
  configuration: config_h
)

style_reference_xml = configure_file(
          input: 'style-reference.xml.in',
         output: 'style-reference.xml',
  configuration: config_h
)

reference_content_files += [
  into_xml,
  lang_reference_xml,
  style_reference_xml,
]

gtksourceview_docs_xml = configure_file(
          input: 'gtksourceview-docs.xml.in',
         output: 'gtksourceview-docs.xml',
  configuration: config_h
)

reference_scan_args = [
  '--rebuild-types',
  '--ignore-decorators=GTK_SOURCE_DEPRECATED\w*\s*\([^)]*\)|GTK_SOURCE_DEPRECATED\w*|GTK_SOURCE_AVAILABLE\w*|_GTK_SOURCE_EXTERN',
  '--deprecated-guards=GTKSOURCEVIEW_DISABLE_DEPRECATED',
  '--ignore-headers=' + ' '.join(reference_private_h),
]

reference_fixxref_args = [
  '--html-dir=@0@'.format(docpath),
  '--extra-dir=@0@'.format(join_paths(glib_docpath, 'glib')),
  '--extra-dir=@0@'.format(join_paths(glib_docpath, 'gobject')),
  '--extra-dir=@0@'.format(join_paths(glib_docpath, 'gio')),
  '--extra-dir=@0@'.format(join_paths(gtk_docpath, 'gtk')),
]

gnome.gtkdoc('@0@.0'.format(package_string),
           main_xml: join_paths(builddir, '@0@'.format(gtksourceview_docs_xml)),
  gobject_typesfile: 'gtksourceview-4.0.types',
            src_dir: reference_sources,
       dependencies: gtksource_dep,
      content_files: reference_content_files,
          scan_args: reference_scan_args,
       fixxref_args: reference_fixxref_args,
            install: true
)