test cases/windows/20 vs install static lib with generated obj deps/meson.build
raw| 1 | project('test', 'c') |
| 2 | |
| 3 | generated_c = custom_target( |
| 4 | 'generated.c', |
| 5 | input : files('generated_source.c', 'copyfile.py'), |
| 6 | output : 'generated.c', |
| 7 | command : ['python', '@INPUT1@', '@INPUT0@', '@OUTPUT@'], |
| 8 | ) |
| 9 | |
| 10 | static_lib = static_library( |
| 11 | 'static_lib', |
| 12 | [files('static_lib_source.c'), generated_c], |
| 13 | ) |
| 14 | |
| 15 | both_lib = both_libraries( |
| 16 | 'both_lib', |
| 17 | [files('both_lib_source.c')], |
| 18 | link_with : [static_lib], |
| 19 | install : true, |
| 20 | ) |