xserver

xserver with xephyr scale patch
git clone https://git.neptards.moe/u3shit/xserver.git
Log | Files | Refs | README | LICENSE

meson.build (2627B)


      1 
      2 if build_docs
      3     basename = 'Xserver-DTrace'
      4 
      5     input_xml = basename + '.xml'
      6 
      7     custom_target(
      8         basename + '.html',
      9         output: basename + '.html',
     10         input: [input_xml],
     11         command: [xmlto] + docs_xmlto_search_flags + [
     12             '-x',  join_paths(doc_stylesheet_srcdir, 'xorg-xhtml.xsl'),
     13             '--stringparam', 'target.database.document=' + join_paths(doc_sgml_path, 'X11/dbs/masterdb.html.xml'),
     14             '--stringparam', 'current.docid=' + basename,
     15             '-o', meson.current_build_dir(),
     16             'xhtml-nochunks', '@INPUT0@'],
     17         build_by_default: true,
     18         install: true,
     19         install_dir: join_paths(get_option('datadir'), 'doc/xorg-server'),
     20     )
     21 
     22     if build_docs_pdf
     23         foreach format : ['ps', 'pdf']
     24             output_fn = basename + '.' + format
     25             custom_target(
     26                 output_fn,
     27                 output: output_fn,
     28                 input: [input_xml],
     29                 command: [xmlto] + docs_xmlto_search_flags + [
     30                     '-x',  join_paths(doc_stylesheet_srcdir, 'xorg-fo.xsl'),
     31                     '--stringparam', 'img.src.path=' + meson.current_build_dir(),
     32                     '--stringparam', 'target.database.document=' + join_paths(doc_sgml_path, 'X11/dbs/masterdb.pdf.xml'),
     33                     '--stringparam', 'current.docid=' + basename,
     34                     '-o', meson.current_build_dir(),
     35                     '--with-fop', format, '@INPUT0@'],
     36                 build_by_default: true,
     37                 install: true,
     38                 install_dir: join_paths(get_option('datadir'), 'doc/xorg-server'),
     39             )
     40         endforeach
     41     endif
     42 
     43     foreach format_data : [['html', 'xorg-xhtml.xsl'], ['pdf', 'xorg-fo.xsl']]
     44         format = format_data[0]
     45         stylesheet = format_data[1]
     46         output_fn = basename + '.' + format + '.db'
     47         custom_target(
     48             output_fn,
     49             output: output_fn,
     50             input: [input_xml],
     51             command: [xsltproc] + docs_xslt_search_flags + [
     52                 '--stringparam', 'targets.filename', output_fn,
     53                 '--stringparam', 'collect.xref.targets', 'only',
     54                 '--stringparam', 'olink.base.uri', basename + '.' + format,
     55                 '--nonet',
     56                 '--output', join_paths(meson.current_build_dir(), output_fn),
     57                 '--xinclude', join_paths(doc_stylesheet_srcdir, stylesheet),
     58                 '@INPUT0@'],
     59             build_by_default: true,
     60             install: true,
     61             install_dir: join_paths(get_option('datadir'), 'doc/xorg-server'),
     62         )
     63     endforeach
     64 endif