xref: /aosp_15_r20/external/libxml2/include/libxml/meson.build (revision 7c5688314b92172186c154356a6374bf7684c3ca)
1
2## xmlversion.h
3xmlversion_h = configuration_data()
4xmlversion_h.set('VERSION', meson.project_version())
5xmlversion_h.set('LIBXML_VERSION_NUMBER', v_nbr.to_string())
6xmlversion_h.set('LIBXML_VERSION_EXTRA', v_extra)
7xmlversion_h.set10('WITH_C14N', want_c14n)
8xmlversion_h.set10('WITH_CATALOG', want_catalog)
9xmlversion_h.set10('WITH_DEBUG', want_debug)
10xmlversion_h.set10('WITH_HTML', want_html)
11xmlversion_h.set10('WITH_HTTP', want_http)
12xmlversion_h.set10('WITH_ICONV', want_iconv)
13xmlversion_h.set10('WITH_ICU', want_icu)
14xmlversion_h.set10('WITH_ISO8859X', want_iso8859x)
15xmlversion_h.set10('WITH_LEGACY', want_legacy)
16xmlversion_h.set10('WITH_LZMA', want_lzma)
17xmlversion_h.set10('WITH_MODULES', want_modules)
18xmlversion_h.set('MODULE_EXTENSION', module_extension)
19xmlversion_h.set10('WITH_OUTPUT', want_output)
20xmlversion_h.set10('WITH_PATTERN', want_pattern)
21xmlversion_h.set10('WITH_PUSH', want_push)
22xmlversion_h.set10('WITH_READER', want_reader)
23xmlversion_h.set10('WITH_REGEXPS', want_regexps)
24xmlversion_h.set10('WITH_SAX1', want_sax1)
25xmlversion_h.set10('WITH_SCHEMAS', want_schemas)
26xmlversion_h.set10('WITH_SCHEMATRON', want_schematron)
27xmlversion_h.set10('WITH_THREADS', want_threads)
28xmlversion_h.set10('WITH_THREAD_ALLOC', want_thread_alloc)
29xmlversion_h.set10('WITH_VALID', want_valid)
30xmlversion_h.set10('WITH_WRITER', want_writer)
31xmlversion_h.set10('WITH_XINCLUDE', want_xinclude)
32xmlversion_h.set10('WITH_XPATH', want_xpath)
33xmlversion_h.set10('WITH_XPTR', want_xptr)
34xmlversion_h.set10('WITH_ZLIB', want_zlib)
35
36configure_file(
37    input: 'xmlversion.h.in',
38    output: 'xmlversion.h',
39    configuration: xmlversion_h,
40    install_dir: dir_pkginclude + '/libxml',
41)
42
43#vcs_tag(
44#  command : [ 'git', 'describe', '2>/dev/null' ],
45#  input : 'xmlversion.h.in',
46#  output : 'xmlversion.h',
47#  replace_string : 'LIBXML_VERSION_EXTRA'
48#)
49
50libxml_headers = files(
51    'HTMLparser.h',
52    'HTMLtree.h',
53    'SAX.h',
54    'SAX2.h',
55    'c14n.h',
56    'catalog.h',
57    'chvalid.h',
58    'debugXML.h',
59    'dict.h',
60    'encoding.h',
61    'entities.h',
62    'globals.h',
63    'hash.h',
64    'list.h',
65    'nanoftp.h',
66    'nanohttp.h',
67    'parser.h',
68    'parserInternals.h',
69    'pattern.h',
70    'relaxng.h',
71    'schemasInternals.h',
72    'schematron.h',
73    'threads.h',
74    'tree.h',
75    'uri.h',
76    'valid.h',
77    'xinclude.h',
78    'xlink.h',
79    'xmlIO.h',
80    'xmlautomata.h',
81    'xmlerror.h',
82    'xmlexports.h',
83    'xmlmemory.h',
84    'xmlmodule.h',
85    'xmlreader.h',
86    'xmlregexp.h',
87    'xmlsave.h',
88    'xmlschemas.h',
89    'xmlschemastypes.h',
90    'xmlstring.h',
91    'xmlunicode.h',
92    'xmlwriter.h',
93    'xpath.h',
94    'xpathInternals.h',
95    'xpointer.h',
96)
97
98install_headers(libxml_headers, install_dir: dir_pkginclude / 'libxml')
99