meson.build 580 B

1234567891011121314
  1. project('extract all', 'c')
  2. a = static_library('a', 'one.c', 'two.c')
  3. b = static_library('b', 'three.c', 'four.c')
  4. c = static_library('c', objects : [a.extract_all_objects(), b.extract_all_objects()])
  5. d = static_library('d', objects : [a.extract_all_objects(), b.extract_all_objects(), c.extract_all_objects()])
  6. d_recursive = static_library('d_recursive', objects : [c.extract_all_objects(recursive : true)])
  7. e = executable('proggie', 'prog.c', link_with : d)
  8. test('extall', e)
  9. e = executable('proggie_recursive', 'prog.c', link_with : d_recursive)
  10. test('extall_recursive', e)