2025-12-03 10:46:29 -05:00
|
|
|
cmake = import('cmake')
|
|
|
|
|
|
2025-04-30 11:41:10 -04:00
|
|
|
quill_cmake_options = cmake.subproject_options()
|
|
|
|
|
quill_cmake_options.add_cmake_defines({
|
2025-12-03 10:46:29 -05:00
|
|
|
'BUILD_STATIC_LIBS': 'ON',
|
|
|
|
|
'BUILD_SHARED_LIBS': 'OFF',
|
|
|
|
|
'CMAKE_SKIP_INSTALL_RULES': 'ON',
|
|
|
|
|
'CMAKE_POSITION_INDEPENDENT_CODE': 'ON'
|
2025-04-30 11:41:10 -04:00
|
|
|
})
|
2025-12-03 10:46:29 -05:00
|
|
|
|
2025-02-23 11:25:11 -05:00
|
|
|
quill_sp = cmake.subproject(
|
2025-04-30 11:41:10 -04:00
|
|
|
'quill',
|
|
|
|
|
options: quill_cmake_options,
|
2025-02-23 11:25:11 -05:00
|
|
|
)
|
2025-12-03 10:46:29 -05:00
|
|
|
|
2025-06-21 07:01:34 -04:00
|
|
|
quill_dep = quill_sp.dependency('quill')
|
2025-06-22 05:34:55 -04:00
|
|
|
|
2025-12-03 10:46:29 -05:00
|
|
|
if get_option('default_library') != 'static'
|
|
|
|
|
message('Registering quill headers for installation...')
|
|
|
|
|
quill_headers = meson.global_source_root() + '/subprojects/quill/include/quill'
|
|
|
|
|
install_subdir(quill_headers, install_dir: get_option('includedir'))
|
|
|
|
|
endif
|