build(wasm): liblogging now builds for wasm
Further, due to limitations of file system access on wasm, liblogging now outputs all logs to the console syncronously
This commit is contained in:
@@ -1,15 +1,23 @@
|
||||
cmake = import('cmake')
|
||||
|
||||
quill_cmake_options = cmake.subproject_options()
|
||||
quill_cmake_options.add_cmake_defines({
|
||||
'BUILD_SHARED_LIBS': 'ON',
|
||||
'CMAKE_SKIP_INSTALL_RULES': 'ON'
|
||||
'BUILD_STATIC_LIBS': 'ON',
|
||||
'BUILD_SHARED_LIBS': 'OFF',
|
||||
'CMAKE_SKIP_INSTALL_RULES': 'ON',
|
||||
'CMAKE_POSITION_INDEPENDENT_CODE': 'ON'
|
||||
})
|
||||
|
||||
quill_sp = cmake.subproject(
|
||||
'quill',
|
||||
options: quill_cmake_options,
|
||||
)
|
||||
|
||||
quill_dep = quill_sp.dependency('quill')
|
||||
|
||||
message('Registering quill headers (' + meson.global_source_root() + '/subprojects/quill/include/quill) for installation...')
|
||||
quill_headers = meson.global_source_root() + '/subprojects/quill/include/quill'
|
||||
install_subdir(quill_headers, install_dir: get_option('includedir'))
|
||||
message('Done registering quill headers for installation!')
|
||||
if get_option('default_library') != 'static'
|
||||
message('Registering quill headers for installation...')
|
||||
# Note: verify this path matches your source structure
|
||||
quill_headers = meson.global_source_root() + '/subprojects/quill/include/quill'
|
||||
install_subdir(quill_headers, install_dir: get_option('includedir'))
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user