build(header_install_dir): added header_install_dir option

this is useful for wheel builds
This commit is contained in:
2026-06-11 09:36:34 -04:00
parent 898c5285da
commit 92795f8f5a
7 changed files with 17 additions and 13 deletions

View File

@@ -18,11 +18,15 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# *********************************************************************** #
project('libconfig', ['cpp', 'c'], version: 'v2.2.7', default_options: ['cpp_std=c++23'], meson_version: '>=1.5.0')
project('libconfig', ['cpp', 'c'], version: 'v2.2.8', 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')
config_header_root = get_option('header_install_dir') != '' \
? get_option('header_install_dir') \
: get_option('includedir')
cpp = meson.get_compiler('cpp')
subdir('build-config')
subdir('src')