0
0
mirror of https://github.com/rkd77/elinks.git synced 2025-06-30 22:19:29 -04:00

[meson] elinks_wrapper in doc build process

This commit is contained in:
Witold Filipczyk 2023-07-08 18:24:25 +02:00
parent 7b2932354e
commit ae8f6abbe2
2 changed files with 23 additions and 18 deletions

View File

@ -15,6 +15,8 @@ cmake = '/usr/bin/cmake'
root = '/usr/i586-pc-msdosdjgpp' root = '/usr/i586-pc-msdosdjgpp'
# Directory that contains 'bin', 'lib', etc for the toolchain and system libraries # Directory that contains 'bin', 'lib', etc for the toolchain and system libraries
sys_root = '/usr/i586-pc-msdosdjgpp/sys-include/' sys_root = '/usr/i586-pc-msdosdjgpp/sys-include/'
need_exe_wrapper = true
elinks_wrapper = 'elinks_dos.py'
[host_machine] [host_machine]
system = 'dos' system = 'dos'

View File

@ -60,38 +60,41 @@ keymap_defaults_txt = custom_target('keymap-defaults.txt',
install_dir: doc_dir, install_dir: doc_dir,
command: [meson.current_source_dir() + '/tools/keys2doc', '@INPUT@', 'keymap-defaults.txt']) command: [meson.current_source_dir() + '/tools/keys2doc', '@INPUT@', 'keymap-defaults.txt'])
option_command_frag_xml = []
option_config_frag_xml = []
option_command_frag_xhtml = []
option_config_frag_xhtml = []
if not meson.is_cross_build() if not meson.is_cross_build()
option_command_frag_xml = custom_target('option-command.frag.xml', ELINKS = elinks
else
ELINKS = meson.current_source_dir() + '/tools/' + meson.get_external_property('elinks_wrapper')
endif
option_command_frag_xml = custom_target('option-command.frag.xml',
input: [], input: [],
output: 'option-command.frag.xml', output: 'option-command.frag.xml',
env: ['LC_ALL=C', 'LANGUAGE=en'], env: ['LC_ALL=C', 'LANGUAGE=en', 'ELINKS_BINARY='+elinks.full_path()],
command: [meson.current_source_dir() + '/tools/help2xml', elinks, '@OUTPUT@']) depends: elinks,
command: [meson.current_source_dir() + '/tools/help2xml', ELINKS, '@OUTPUT@'])
option_config_frag_xml = custom_target('option-config.frag.xml', option_config_frag_xml = custom_target('option-config.frag.xml',
input: [], input: [],
output: 'option-config.frag.xml', output: 'option-config.frag.xml',
env: ['LC_ALL=C', 'LANGUAGE=en'], env: ['LC_ALL=C', 'LANGUAGE=en', 'ELINKS_BINARY='+elinks.full_path()],
command: [meson.current_source_dir() + '/tools/help2xml', elinks, '@OUTPUT@']) depends: elinks,
command: [meson.current_source_dir() + '/tools/help2xml', ELINKS, '@OUTPUT@'])
option_command_frag_xhtml = custom_target('option-command.frag.xhtml', option_command_frag_xhtml = custom_target('option-command.frag.xhtml',
input: [], input: [],
output: 'option-command.frag.xhtml', output: 'option-command.frag.xhtml',
env: ['LC_ALL=C', 'LANGUAGE=en'], env: ['LC_ALL=C', 'LANGUAGE=en', 'ELINKS_BINARY='+elinks.full_path()],
depends: elinks,
install: true, install: true,
install_dir: doc_dir, install_dir: doc_dir,
command: [meson.current_source_dir() + '/tools/help2xml', elinks, '@OUTPUT@']) command: [meson.current_source_dir() + '/tools/help2xml', ELINKS, '@OUTPUT@'])
option_config_frag_xhtml = custom_target('option-config.frag.xhtml', option_config_frag_xhtml = custom_target('option-config.frag.xhtml',
input: [], input: [],
output: 'option-config.frag.xhtml', output: 'option-config.frag.xhtml',
env: ['LC_ALL=C', 'LANGUAGE=en'], env: ['LC_ALL=C', 'LANGUAGE=en', 'ELINKS_BINARY='+elinks.full_path()],
command: [meson.current_source_dir() + '/tools/help2xml', elinks, '@OUTPUT@']) depends: elinks,
endif command: [meson.current_source_dir() + '/tools/help2xml', ELINKS, '@OUTPUT@'])
elinks_1_html = custom_target('elinks.1.html', elinks_1_html = custom_target('elinks.1.html',
input: 'elinks.1.txt', input: 'elinks.1.txt',