add_project_arguments('-include', 'config.h', language : 'c')
generate_gperfs = find_program('tools/generate-gperfs.py')
+autosuspend_update_sh = find_program('tools/autosuspend-update.sh')
+hwdb_update_sh = find_program('tools/hwdb-update.sh')
+make_autosuspend_rules_py = find_program('tools/make-autosuspend-rules.py')
+make_directive_index_py = find_program('tools/make-directive-index.py')
+make_man_index_py = find_program('tools/make-man-index.py')
+syscall_table_update_sh = find_program('tools/syscall-table-update.sh')
+xml_helper_py = find_program('tools/xml_helper.py')
+update_dbus_docs_py = find_program('tools/update-dbus-docs.py')
+
+############################################################
subdir('po')
subdir('catalog')
############################################################
-autosuspend_update_sh = find_program('tools/autosuspend-update.sh')
-hwdb_update_sh = find_program('tools/hwdb-update.sh')
-make_autosuspend_rules_py = find_program('tools/make-autosuspend-rules.py')
-make_directive_index_py = find_program('tools/make-directive-index.py')
-make_man_index_py = find_program('tools/make-man-index.py')
-syscall_names_update_sh = find_program('tools/syscall-names-update.sh')
-xml_helper_py = find_program('tools/xml_helper.py')
-update_dbus_docs_py = find_program('tools/update-dbus-docs.py')
-
-############################################################
-
# binaries that have --help and are intended for use by humans,
# usually, but not always, installed in /bin.
public_programs = []
include_directories : includes,
dependencies : [libgcrypt],
c_args : ['-fvisibility=default'])
+
+############################################################
+
+arch_list = [
+ 'alpha',
+ 'arc',
+ 'arm',
+ 'arm64',
+ 'i386',
+ 'ia64',
+ 'm68k',
+ 'mips64',
+ 'mips64n32',
+ 'mipso32',
+ 'powerpc',
+ 'powerpc64',
+ 's390',
+ 's390x',
+ 'sparc',
+ 'x86_64']
+
+run_target(
+ 'update-syscall-tables',
+ command : [syscall_table_update_sh, meson.current_source_dir()] + arch_list)
+
+syscall_names_text = files('syscall-names.text')
fname = 'syscall-list.h'
syscall_list_h = custom_target(
fname,
- input : 'syscall-names.text',
+ input : syscall_names_text,
output : fname,
command : [generate_syscall_list,
'@INPUT@'],
dependencies : libshared_deps,
install : true,
install_dir : rootlibexecdir)
-
-############################################################
-
-run_target(
- 'syscall-names-update',
- command : [syscall_names_update_sh, meson.current_source_dir()])