1 #if 0 /// elogind has a shorter list
2 # basic_sources_plain = files('''
200 basic_sources_plain = files('''
272 parse-printf-format.c
273 parse-printf-format.h
335 missing_h = files('missing.h')
337 generate_gperfs = find_program('generate-gperfs.py')
339 #if 0 /// elogind has only the errno list.
340 # generate_af_list = find_program('generate-af-list.sh')
341 # af_list_txt = custom_target(
343 # output : 'af-list.txt',
344 # command : [generate_af_list, cpp],
347 # generate_arphrd_list = find_program('generate-arphrd-list.sh')
348 # arphrd_list_txt = custom_target(
350 # output : 'arphrd-list.txt',
351 # command : [generate_arphrd_list, cpp],
354 # generate_cap_list = find_program('generate-cap-list.sh')
355 # cap_list_txt = custom_target(
357 # output : 'cap-list.txt',
358 # command : [generate_cap_list, cpp, config_h, missing_h],
361 generate_errno_list = find_program('generate-errno-list.sh')
362 errno_list_txt = custom_target(
364 output : 'errno-list.txt',
365 command : [generate_errno_list, cpp],
368 generated_gperf_headers = []
369 #if 0 /// elogind has only the errno list.
370 # foreach item : [['af', af_list_txt, 'af', ''],
371 # ['arphrd', arphrd_list_txt, 'arphrd', 'ARPHRD_'],
372 # ['cap', cap_list_txt, 'capability', ''],
373 # ['errno', errno_list_txt, 'errno', '']]
375 foreach item : [['errno', errno_list_txt, 'errno', '']]
378 fname = '@0@-from-name.gperf'.format(item[0])
379 gperf_file = custom_target(
383 command : [generate_gperfs, item[2], item[3], '@INPUT@'],
386 fname = '@0@-from-name.h'.format(item[0])
387 target1 = custom_target(
392 '-L', 'ANSI-C', '-t', '--ignore-case',
393 '-N', 'lookup_@0@'.format(item[2]),
394 '-H', 'hash_@0@_name'.format(item[2]),
399 fname = '@0@-to-name.h'.format(item[0])
400 awkscript = '@0@-to-name.awk'.format(item[0])
401 target2 = custom_target(
403 input : [awkscript, item[1]],
405 command : [awk, '-f', '@INPUT0@', '@INPUT1@'],
408 generated_gperf_headers += [target1, target2]
411 basic_sources = basic_sources_plain + [missing_h] + generated_gperf_headers
413 libbasic = static_library(
416 include_directories : includes,
417 dependencies : [threads,
419 #if 0 /// no blkid in elogind