Willy Tu | cc4098e | 2022-06-23 11:39:38 -0700 | [diff] [blame] | 1 | libbej_lib = library( |
Patrick Williams | c3ab417 | 2025-02-01 08:38:42 -0500 | [diff] [blame^] | 2 | 'libbej', |
| 3 | 'bej_decoder_core.c', |
| 4 | 'bej_common.c', |
| 5 | 'bej_dictionary.c', |
| 6 | 'bej_tree.c', |
| 7 | 'bej_encoder_core.c', |
| 8 | 'bej_encoder_metadata.c', |
| 9 | 'bej_decoder_json.cpp', |
| 10 | 'bej_encoder_json.cpp', |
| 11 | include_directories: libbej_incs, |
| 12 | implicit_include_directories: false, |
| 13 | version: meson.project_version(), |
| 14 | install: true, |
| 15 | install_dir: get_option('libdir'), |
kasunath | 7ffd30a | 2022-05-10 18:11:34 -0700 | [diff] [blame] | 16 | ) |
| 17 | |
| 18 | libbej = declare_dependency( |
Patrick Williams | c3ab417 | 2025-02-01 08:38:42 -0500 | [diff] [blame^] | 19 | include_directories: libbej_incs, |
| 20 | link_with: libbej_lib, |
kasunath | 7ffd30a | 2022-05-10 18:11:34 -0700 | [diff] [blame] | 21 | ) |
Willy Tu | cc4098e | 2022-06-23 11:39:38 -0700 | [diff] [blame] | 22 | |
| 23 | import('pkgconfig').generate( |
Patrick Williams | c3ab417 | 2025-02-01 08:38:42 -0500 | [diff] [blame^] | 24 | libbej_lib, |
| 25 | name: 'libbej', |
| 26 | version: meson.project_version(), |
| 27 | description: 'libbej', |
| 28 | ) |