1 #if 0 /// elogind has a shorter list
2 # basic_sources_plain = files('''
205 basic_sources_plain = files('''
279 parse-printf-format.c
280 parse-printf-format.h
343 missing_h = files('missing.h')
345 generate_gperfs = find_program('generate-gperfs.py')
347 #if 0 /// elogind has only the cap and errno list.
348 # generate_af_list = find_program('generate-af-list.sh')
349 # af_list_txt = custom_target(
351 # output : 'af-list.txt',
352 # command : [generate_af_list, cpp],
355 # generate_arphrd_list = find_program('generate-arphrd-list.sh')
356 # arphrd_list_txt = custom_target(
358 # output : 'arphrd-list.txt',
359 # command : [generate_arphrd_list, cpp],
363 generate_cap_list = find_program('generate-cap-list.sh')
364 cap_list_txt = custom_target(
366 output : 'cap-list.txt',
367 #if 0 /// elogind needs musl_missing.h, so generate_cap_list must know the source root
368 # command : [generate_cap_list, cpp, config_h, missing_h],
370 command : [generate_cap_list, cpp, meson.source_root(), config_h, missing_h],
374 generate_errno_list = find_program('generate-errno-list.sh')
375 errno_list_txt = custom_target(
377 output : 'errno-list.txt',
378 command : [generate_errno_list, cpp],
381 generated_gperf_headers = []
382 #if 0 /// elogind has only the cap and errno list.
383 # foreach item : [['af', af_list_txt, 'af', ''],
384 # ['arphrd', arphrd_list_txt, 'arphrd', 'ARPHRD_'],
385 # ['cap', cap_list_txt, 'capability', ''],
386 # ['errno', errno_list_txt, 'errno', '']]
388 foreach item : [['cap', cap_list_txt, 'capability', ''],
389 ['errno', errno_list_txt, 'errno', '']]
392 fname = '@0@-from-name.gperf'.format(item[0])
393 gperf_file = custom_target(
397 command : [generate_gperfs, item[2], item[3], '@INPUT@'],
400 fname = '@0@-from-name.h'.format(item[0])
401 target1 = custom_target(
406 '-L', 'ANSI-C', '-t', '--ignore-case',
407 '-N', 'lookup_@0@'.format(item[2]),
408 '-H', 'hash_@0@_name'.format(item[2]),
413 fname = '@0@-to-name.h'.format(item[0])
414 awkscript = '@0@-to-name.awk'.format(item[0])
415 target2 = custom_target(
417 input : [awkscript, item[1]],
419 command : [awk, '-f', '@INPUT0@', '@INPUT1@'],
422 generated_gperf_headers += [target1, target2]
425 basic_sources = basic_sources_plain + [missing_h] + generated_gperf_headers
427 libbasic = static_library(
430 include_directories : includes,
431 dependencies : [threads,
433 #if 0 /// no blkid in elogind