meson: drop explicit custom_target names
[1] says: > Since 0.60.0 the name argument is optional and defaults to the basename of > the first output We specify >= 0.62 as the supported version, so drop the duplicate name in all cases where it is the same as outputs[0], i.e. almost all cases. [1] https://mesonbuild.com/Reference-manual_functions.html#custom_target
This commit is contained in:
@@ -126,28 +126,24 @@ basic_sources += missing_syscall_def_h
|
||||
|
||||
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, 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')],
|
||||
capture : true)
|
||||
|
||||
generate_cap_list = find_program('generate-cap-list.sh')
|
||||
cap_list_txt = custom_target(
|
||||
'cap-list.txt',
|
||||
output : 'cap-list.txt',
|
||||
command : [generate_cap_list, cpp, files('include/linux/capability.h')],
|
||||
capture : true)
|
||||
|
||||
generate_errno_list = find_program('generate-errno-list.sh')
|
||||
errno_list_txt = custom_target(
|
||||
'errno-list.txt',
|
||||
output : 'errno-list.txt',
|
||||
command : [generate_errno_list, cpp],
|
||||
capture : true)
|
||||
@@ -160,7 +156,6 @@ foreach item : [['af', af_list_txt, 'af', '', ['<sys/sock
|
||||
|
||||
fname = '@0@-from-name.gperf'.format(item[0])
|
||||
gperf_file = custom_target(
|
||||
fname,
|
||||
input : item[1],
|
||||
output : fname,
|
||||
command : [generate_gperfs, item[2], item[3], '@INPUT@'] + item[4],
|
||||
@@ -168,7 +163,6 @@ foreach item : [['af', af_list_txt, 'af', '', ['<sys/sock
|
||||
|
||||
fname = '@0@-from-name.inc'.format(item[0])
|
||||
target1 = custom_target(
|
||||
fname,
|
||||
input : gperf_file,
|
||||
output : fname,
|
||||
command : [gperf,
|
||||
@@ -182,7 +176,6 @@ foreach item : [['af', af_list_txt, 'af', '', ['<sys/sock
|
||||
fname = '@0@-to-name.inc'.format(item[0])
|
||||
awkscript = '@0@-to-name.awk'.format(item[0])
|
||||
target2 = custom_target(
|
||||
fname,
|
||||
input : [awkscript, item[1]],
|
||||
output : fname,
|
||||
command : [awk, '-f', '@INPUT0@', '@INPUT1@'],
|
||||
@@ -258,7 +251,6 @@ if r.returncode() != 0
|
||||
endif
|
||||
|
||||
filesystems_gperf_h = custom_target(
|
||||
'filesystems-gperf.h',
|
||||
input : 'filesystems-gperf.gperf',
|
||||
output : 'filesystems-gperf.h',
|
||||
command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
|
||||
@@ -266,7 +258,6 @@ filesystems_gperf_h = custom_target(
|
||||
generate_filesystem_list = find_program('generate-filesystem-list.py')
|
||||
fname = 'filesystem-list.inc'
|
||||
filesystem_list_inc = custom_target(
|
||||
fname,
|
||||
input : 'filesystems-gperf.gperf',
|
||||
output : fname,
|
||||
command : [generate_filesystem_list,
|
||||
@@ -276,7 +267,6 @@ filesystem_list_inc = custom_target(
|
||||
generate_filesystem_switch_case_inc = find_program('generate-filesystem-switch-case.py')
|
||||
fname = 'filesystem-switch-case.inc'
|
||||
filesystem_switch_case_inc = custom_target(
|
||||
fname,
|
||||
input : 'filesystems-gperf.gperf',
|
||||
output : fname,
|
||||
command : [generate_filesystem_switch_case_inc,
|
||||
|
||||
Reference in New Issue
Block a user