test cases/common/183 partial dependency/external_dependency/meson.build
raw| 1 | # SPDX-License-Identifier: Apache-2.0 |
| 2 | # Copyright © 2024 Intel Corporation |
| 3 | |
| 4 | # TODO: don't use compile whenever we get includes and compile args separated |
| 5 | dep_zlib_sub = dep_zlib.partial_dependency(compile_args : true, includes : true) |
| 6 | |
| 7 | executable( |
| 8 | 'zlib header only test', |
| 9 | 'header_only.c', |
| 10 | dependencies : dep_zlib_sub, |
| 11 | ) |
| 12 | |
| 13 | executable( |
| 14 | 'zlib link test', |
| 15 | 'link.c', |
| 16 | dependencies : [dep_zlib_sub, dep_zlib], |
| 17 | ) |