build(wasm): libconfig now builds and works in wasm

This commit is contained in:
2025-12-03 08:54:33 -05:00
parent 067a3a0d51
commit 1a7f4837c6
9 changed files with 138 additions and 7 deletions

View File

@@ -18,7 +18,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# *********************************************************************** #
project('libconfig', 'cpp', version: 'v1.1.3', default_options: ['cpp_std=c++23'], meson_version: '>=1.5.0')
project('libconfig', 'cpp', version: 'v1.1.4', default_options: ['cpp_std=c++23'], meson_version: '>=1.5.0')
# Add default visibility for all C++ targets
add_project_arguments('-fvisibility=default', language: 'cpp')
@@ -26,9 +26,16 @@ add_project_arguments('-fvisibility=default', language: 'cpp')
cpp = meson.get_compiler('cpp')
subdir('build-config')
subdir('src')
subdir('tests')
if get_option('pkg-config')
if get_option('build_tests')
subdir('tests')
endif
if get_option('build_examples')
subdir('examples')
endif
if get_option('pkg_config')
message('Generating pkg-config file for libconfig...')
pkg = import('pkgconfig')
pkg.generate(