meson: update generating lists
- config.h is not necessary when generating lists, hence drop it. - linux/audit.h and libaudit.h are included by missing_audit.h, hence not necessary to include them explicitly.
This commit is contained in:
committed by
Luca Boccassi
parent
e16769b8c0
commit
169d270e81
@@ -3,6 +3,6 @@
|
||||
set -eu
|
||||
set -o pipefail
|
||||
|
||||
${1:?} -E -dM -include sys/socket.h -include "${2:?}" -include "${3:?}" - </dev/null | \
|
||||
${1:?} -E -dM -include sys/socket.h -include "${2:?}" - </dev/null | \
|
||||
grep -Ev 'AF_UNSPEC|AF_MAX' | \
|
||||
awk '/^#define[ \t]+AF_[^ \t]+[ \t]+[AP]F_[^ \t]/ { print $2; }'
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
set -eu
|
||||
set -o pipefail
|
||||
|
||||
${1:?} -dM -include "${2:?}" -include "${3:?}" - </dev/null | \
|
||||
${1:?} -dM -include "${2:?}" - </dev/null | \
|
||||
awk '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $2; }' | \
|
||||
sed -e 's/ARPHRD_//'
|
||||
|
||||
@@ -121,7 +121,6 @@ basic_sources = files(
|
||||
sources += basic_sources
|
||||
|
||||
missing_audit_h = files('missing_audit.h')
|
||||
missing_socket_h = files('missing_socket.h')
|
||||
|
||||
missing_syscall_def_h = files('missing_syscall_def.h')
|
||||
basic_sources += missing_syscall_def_h
|
||||
@@ -130,14 +129,14 @@ generate_af_list = find_program('generate-af-list.sh')
|
||||
af_list_txt = custom_target(
|
||||
'af-list.txt',
|
||||
output : 'af-list.txt',
|
||||
command : [generate_af_list, cpp, config_h, missing_socket_h],
|
||||
command : [generate_af_list, cpp, files('missing_socket.h')],
|
||||
capture : true)
|
||||
|
||||
generate_arphrd_list = find_program('generate-arphrd-list.sh')
|
||||
arphrd_list_txt = custom_target(
|
||||
'arphrd-list.txt',
|
||||
output : 'arphrd-list.txt',
|
||||
command : [generate_arphrd_list, cpp, files('include/linux/if_arp.h'), config_h],
|
||||
command : [generate_arphrd_list, cpp, files('include/linux/if_arp.h')],
|
||||
capture : true)
|
||||
|
||||
generate_cap_list = find_program('generate-cap-list.sh')
|
||||
|
||||
Reference in New Issue
Block a user