1ProtocolSpec_xml = custom_target( 2 'ProtocolSpec.xml', 3 command: [ xsltproc, '-o', '@OUTPUT@', files('../protocol-to-docbook.xsl'), '@INPUT@' ], 4 input: wayland_protocol_xml, 5 output: 'ProtocolSpec.xml' 6) 7 8ProtocolInterfaces_xml = custom_target( 9 'ProtocolInterfaces.xml', 10 command: [ xsltproc, '-o', '@OUTPUT@', files('../protocol-interfaces-to-docbook.xsl'), '@INPUT@' ], 11 input: wayland_protocol_xml, 12 output: 'ProtocolInterfaces.xml' 13) 14 15ClientAPI_combined = custom_target( 16 'ClientAPI-combined', 17 command: [ xsltproc, '-o', '@OUTPUT@', '@INPUT@' ], 18 input: [ doxygen_Client_combine_xslt, doxygen_Client_index_xml ], 19 output: 'ClientAPI-combined.xml' 20) 21 22to_publican_xsl = files('../doxygen-to-publican.xsl') 23 24ClientAPI_xml = custom_target( 25 'ClientAPI.xml', 26 command: [ xsltproc, '-o', '@OUTPUT@', '--stringparam', 'which', 'Client', to_publican_xsl, '@INPUT@' ], 27 input: ClientAPI_combined, 28 output: 'ClientAPI.xml' 29) 30 31ServerAPI_combined = custom_target( 32 'ServerAPI-combined', 33 command: [ xsltproc, '-o', '@OUTPUT@', '@INPUT@' ], 34 input: [ doxygen_Server_combine_xslt, doxygen_Server_index_xml ], 35 output: 'ServerAPI-combined.xml' 36) 37 38ServerAPI_xml = custom_target( 39 'ServerAPI.xml', 40 command: [ xsltproc, '-o', '@OUTPUT@', '--stringparam', 'which', 'Server', to_publican_xsl, '@INPUT@' ], 41 input: ServerAPI_combined, 42 output: 'ServerAPI.xml' 43) 44 45 46publican_sources = [ 47 'Wayland.ent', 48 # 'Wayland.xml', # handled specially 49 'Book_Info.xml', 50 'Author_Group.xml', 51 'Foreword.xml', 52 'Preface.xml', 53 'Revision_History.xml', 54 'Protocol.xml', 55 'Xwayland.xml', 56 'Compositors.xml', 57 'Client.xml', 58 'Server.xml' 59] 60 61publican_processed_main = configure_file( 62 input: 'Wayland.xml', 63 output: 'Wayland.xml', 64 copy: true 65) 66 67publican_copied_sources = [] 68foreach src: publican_sources 69 publican_copied_sources += configure_file( 70 input: src, 71 output: src, 72 copy: true 73 ) 74endforeach 75 76publican_processed_sources = [ 77 'Architecture.xml', 78 'Introduction.xml' 79] 80 81publican_processed_targets = [] 82foreach src: publican_processed_sources 83 publican_processed_targets += custom_target( 84 src, 85 command: [ xsltproc, '-o', '@OUTPUT@', '--stringparam', 'basedir', '.', merge_mapcoords_xsl, '@INPUT@' ], 86 input: src, 87 output: src 88 ) 89endforeach 90 91publican_css_sources = files([ 92 'css/brand.css', 93 'css/common.css', 94 'css/default.css', 95 'css/epub.css', 96 'css/print.css' 97]) 98 99install_data( 100 publican_css_sources, 101 install_dir: join_paths(publican_install_prefix, publican_html_dir, 'css') 102) 103 104publican_img_sources = files([ 105 'images/icon.svg', 106 'images/wayland.png', 107 'images/xwayland-architecture.png' 108]) 109 110install_data( 111 publican_img_sources, 112 install_dir: join_paths(publican_install_prefix, publican_html_dir, 'images') 113) 114