Willy Tu | bcae900 | 2021-09-12 13:58:04 -0700 | [diff] [blame] | 1 | bmc_inc = include_directories('.') |
| 2 | |
| 3 | common_pre = declare_dependency( |
Patrick Williams | deb85ce | 2023-12-07 14:27:45 -0600 | [diff] [blame] | 4 | dependencies: [nlohmann_json_dep], |
Willy Tu | bcae900 | 2021-09-12 13:58:04 -0700 | [diff] [blame] | 5 | include_directories: [root_inc, bmc_inc]) |
| 6 | |
| 7 | common_lib = static_library( |
| 8 | 'common', |
| 9 | 'buildjson.cpp', |
| 10 | 'file_handler.cpp', |
| 11 | 'fs.cpp', |
| 12 | 'general_systemd.cpp', |
| 13 | 'skip_action.cpp', |
| 14 | implicit_include_directories: false, |
| 15 | dependencies: common_pre) |
| 16 | |
| 17 | common_dep = declare_dependency( |
| 18 | link_with: common_lib, |
| 19 | dependencies: common_pre) |
| 20 | |
| 21 | if not get_option('tests').disabled() |
| 22 | subdir('test') |
| 23 | endif |
| 24 | |
| 25 | subdir('firmware-handler') |
Gaurav Gandhi | a49a3f7 | 2021-10-26 20:43:25 +0000 | [diff] [blame] | 26 | subdir('version-handler') |
Brandon Kim | ea65e68 | 2022-07-13 23:21:33 +0000 | [diff] [blame] | 27 | subdir('log-handler') |