1 #if 0 /// elogind has a shorter list
2 # basic_sources_plain = files('''
202 basic_sources_plain = files('''
276 parse-printf-format.c
277 parse-printf-format.h
339 missing_h = files('missing.h')
341 generate_gperfs = find_program('generate-gperfs.py')
343 #if 0 /// elogind has only the cap and errno list.
344 # generate_af_list = find_program('generate-af-list.sh')
345 # af_list_txt = custom_target(
347 # output : 'af-list.txt',
348 # command : [generate_af_list, cpp],
351 # generate_arphrd_list = find_program('generate-arphrd-list.sh')
352 # arphrd_list_txt = custom_target(
354 # output : 'arphrd-list.txt',
355 # command : [generate_arphrd_list, cpp],
359 generate_cap_list = find_program('generate-cap-list.sh')
360 cap_list_txt = custom_target(
362 output : 'cap-list.txt',
363 command : [generate_cap_list, cpp, config_h, missing_h],
366 generate_errno_list = find_program('generate-errno-list.sh')
367 errno_list_txt = custom_target(
369 output : 'errno-list.txt',
370 command : [generate_errno_list, cpp],
373 generated_gperf_headers = []
374 #if 0 /// elogind has only the cap and errno list.
375 # foreach item : [['af', af_list_txt, 'af', ''],
376 # ['arphrd', arphrd_list_txt, 'arphrd', 'ARPHRD_'],
377 # ['cap', cap_list_txt, 'capability', ''],
378 # ['errno', errno_list_txt, 'errno', '']]
380 foreach item : [['cap', cap_list_txt, 'capability', ''],
381 ['errno', errno_list_txt, 'errno', '']]
384 fname = '@0@-from-name.gperf'.format(item[0])
385 gperf_file = custom_target(
389 command : [generate_gperfs, item[2], item[3], '@INPUT@'],
392 fname = '@0@-from-name.h'.format(item[0])
393 target1 = custom_target(
398 '-L', 'ANSI-C', '-t', '--ignore-case',
399 '-N', 'lookup_@0@'.format(item[2]),
400 '-H', 'hash_@0@_name'.format(item[2]),
405 fname = '@0@-to-name.h'.format(item[0])
406 awkscript = '@0@-to-name.awk'.format(item[0])
407 target2 = custom_target(
409 input : [awkscript, item[1]],
411 command : [awk, '-f', '@INPUT0@', '@INPUT1@'],
414 generated_gperf_headers += [target1, target2]
417 basic_sources = basic_sources_plain + [missing_h] + generated_gperf_headers
419 libbasic = static_library(
422 include_directories : includes,
423 dependencies : [threads,
425 #if 0 /// no blkid in elogind