1 #if 0 /// elogind has a shorter list
2 # basic_sources_plain = files('''
202 basic_sources_plain = files('''
274 parse-printf-format.c
275 parse-printf-format.h
337 missing_h = files('missing.h')
339 generate_gperfs = find_program('generate-gperfs.py')
341 #if 0 /// elogind has only the errno list.
342 # generate_af_list = find_program('generate-af-list.sh')
343 # af_list_txt = custom_target(
345 # output : 'af-list.txt',
346 # command : [generate_af_list, cpp],
349 # generate_arphrd_list = find_program('generate-arphrd-list.sh')
350 # arphrd_list_txt = custom_target(
352 # output : 'arphrd-list.txt',
353 # command : [generate_arphrd_list, cpp],
356 # generate_cap_list = find_program('generate-cap-list.sh')
357 # cap_list_txt = custom_target(
359 # output : 'cap-list.txt',
360 # command : [generate_cap_list, cpp, config_h, missing_h],
364 generate_errno_list = find_program('generate-errno-list.sh')
365 errno_list_txt = custom_target(
367 output : 'errno-list.txt',
368 command : [generate_errno_list, cpp],
371 generated_gperf_headers = []
372 #if 0 /// elogind has only the errno list.
373 # foreach item : [['af', af_list_txt, 'af', ''],
374 # ['arphrd', arphrd_list_txt, 'arphrd', 'ARPHRD_'],
375 # ['cap', cap_list_txt, 'capability', ''],
376 # ['errno', errno_list_txt, 'errno', '']]
378 foreach item : [['errno', errno_list_txt, 'errno', '']]
381 fname = '@0@-from-name.gperf'.format(item[0])
382 gperf_file = custom_target(
386 command : [generate_gperfs, item[2], item[3], '@INPUT@'],
389 fname = '@0@-from-name.h'.format(item[0])
390 target1 = custom_target(
395 '-L', 'ANSI-C', '-t', '--ignore-case',
396 '-N', 'lookup_@0@'.format(item[2]),
397 '-H', 'hash_@0@_name'.format(item[2]),
402 fname = '@0@-to-name.h'.format(item[0])
403 awkscript = '@0@-to-name.awk'.format(item[0])
404 target2 = custom_target(
406 input : [awkscript, item[1]],
408 command : [awk, '-f', '@INPUT0@', '@INPUT1@'],
411 generated_gperf_headers += [target1, target2]
414 basic_sources = basic_sources_plain + [missing_h] + generated_gperf_headers
416 libbasic = static_library(
419 include_directories : includes,
420 dependencies : [threads,
422 #if 0 /// no blkid in elogind