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 command : [generate_cap_list, cpp, config_h, missing_h],
370 generate_errno_list = find_program('generate-errno-list.sh')
371 errno_list_txt = custom_target(
373 output : 'errno-list.txt',
374 command : [generate_errno_list, cpp],
377 generated_gperf_headers = []
378 #if 0 /// elogind has only the cap and errno list.
379 # foreach item : [['af', af_list_txt, 'af', ''],
380 # ['arphrd', arphrd_list_txt, 'arphrd', 'ARPHRD_'],
381 # ['cap', cap_list_txt, 'capability', ''],
382 # ['errno', errno_list_txt, 'errno', '']]
384 foreach item : [['cap', cap_list_txt, 'capability', ''],
385 ['errno', errno_list_txt, 'errno', '']]
388 fname = '@0@-from-name.gperf'.format(item[0])
389 gperf_file = custom_target(
393 command : [generate_gperfs, item[2], item[3], '@INPUT@'],
396 fname = '@0@-from-name.h'.format(item[0])
397 target1 = custom_target(
402 '-L', 'ANSI-C', '-t', '--ignore-case',
403 '-N', 'lookup_@0@'.format(item[2]),
404 '-H', 'hash_@0@_name'.format(item[2]),
409 fname = '@0@-to-name.h'.format(item[0])
410 awkscript = '@0@-to-name.awk'.format(item[0])
411 target2 = custom_target(
413 input : [awkscript, item[1]],
415 command : [awk, '-f', '@INPUT0@', '@INPUT1@'],
418 generated_gperf_headers += [target1, target2]
421 basic_sources = basic_sources_plain + [missing_h] + generated_gperf_headers
423 libbasic = static_library(
426 include_directories : includes,
427 dependencies : [threads,
429 #if 0 /// no blkid in elogind