[meson] Normalize options names

As https://github.com/harfbuzz/harfbuzz/pull/2412#discussion_r426275027
This commit is contained in:
Ebrahim Byagowi 2020-05-21 19:33:18 +04:30 committed by GitHub
parent a9e8328ae2
commit cc53fd158c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 13 deletions

View File

@ -41,7 +41,7 @@ jobs:
- run: export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig" && ./autogen.sh --with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-coretext --with-graphite2 - run: export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig" && ./autogen.sh --with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-coretext --with-graphite2
- run: make -j4 - run: make -j4
- run: make check || .ci/fail.sh - run: make check || .ci/fail.sh
- run: make clean && meson build -Damalgam=true && ninja -Cbuild test - run: make clean && meson build -Dcoretext=enabled -Damalgam=true && ninja -Cbuild test
distcheck: distcheck:
docker: docker:
@ -235,7 +235,7 @@ jobs:
# test meson's own unity feature also # test meson's own unity feature also
- run: meson build --unity on && ninja -Cbuild && rm -rf build - run: meson build --unity on && ninja -Cbuild && rm -rf build
# test experimental APIs # test experimental APIs
- run: meson build -Dexperimental-api=true && ninja -Cbuild test && rm -rf build - run: meson build -Dexperimental_api=true && ninja -Cbuild test && rm -rf build
crosscompile-notest-djgpp: crosscompile-notest-djgpp:
docker: docker:

View File

@ -189,11 +189,11 @@ if icu_dep.found()
conf.set('HAVE_ICU', 1) conf.set('HAVE_ICU', 1)
endif endif
if get_option('icu-builtin') if get_option('icu_builtin')
conf.set('HAVE_ICU_BUILTIN', 1) conf.set('HAVE_ICU_BUILTIN', 1)
endif endif
if get_option('experimental-api') if get_option('experimental_api')
conf.set('HB_EXPERIMENTAL_API', 1) conf.set('HB_EXPERIMENTAL_API', 1)
endif endif

View File

@ -28,11 +28,11 @@ option('introspection', type : 'feature', value : 'disabled', yield : true,
option('gtk_doc', type : 'feature', value : 'auto', yield : true, option('gtk_doc', type : 'feature', value : 'auto', yield : true,
description : 'Generate documentation with gtk-doc') description : 'Generate documentation with gtk-doc')
option('icu-builtin', type: 'boolean', value: false, option('icu_builtin', type: 'boolean', value: false,
description: 'Don\'t separate ICU support as harfbuzz-icu module') description: 'Don\'t separate ICU support as harfbuzz-icu module')
option('with-libstdcxx', type: 'boolean', value: false, option('with_libstdcxx', type: 'boolean', value: false,
description: 'Allow linking with libstdc++ (ignored and always enabled in Windows)') description: 'Allow linking with libstdc++ (always enabled in Windows)')
option('experimental-api', type: 'boolean', value: false, option('experimental_api', type: 'boolean', value: false,
description: 'Enable experimental APIs') description: 'Enable experimental APIs')
option('amalgam', type : 'boolean', value : false, option('amalgam', type: 'boolean', value: false,
description : 'Enable amalgam builds') description : 'Enable amalgam builds')

View File

@ -364,7 +364,7 @@ if have_icu and have_icu_builtin
deps += [icu_dep] deps += [icu_dep]
endif endif
if host_machine.system() == 'windows' or get_option('with-libstdcxx') if host_machine.system() == 'windows' or get_option('with_libstdcxx')
chosen_linker = 'cpp' chosen_linker = 'cpp'
else else
# our autotools port was limiting this to HAVE_GCC as https://github.com/harfbuzz/harfbuzz/commit/e784632 # our autotools port was limiting this to HAVE_GCC as https://github.com/harfbuzz/harfbuzz/commit/e784632
@ -378,7 +378,7 @@ endif
gen_def = find_program('gen-def.py') gen_def = find_program('gen-def.py')
harfbuzz_def_command_args = [gen_def, '@OUTPUT@', '@INPUT@'] harfbuzz_def_command_args = [gen_def, '@OUTPUT@', '@INPUT@']
if get_option('experimental-api') if get_option('experimental_api')
harfbuzz_def_command_args += '--experimental-api' harfbuzz_def_command_args += '--experimental-api'
endif endif
@ -512,7 +512,7 @@ if get_option('tests').enabled()
if not get_option('amalgam') if not get_option('amalgam')
dist_check_script += 'check-includes.sh' dist_check_script += 'check-includes.sh'
endif endif
if false and not get_option('with-libstdcxx') if false and not get_option('with_libstdcxx')
# enable this once https://github.com/mesonbuild/meson/pull/6838 hits a release # enable this once https://github.com/mesonbuild/meson/pull/6838 hits a release
# and make that version (i.e. 0.55) our minimum build requirement # and make that version (i.e. 0.55) our minimum build requirement
dist_check_script += 'check-libstdc++.sh' # See https://github.com/harfbuzz/harfbuzz/issues/2276 dist_check_script += 'check-libstdc++.sh' # See https://github.com/harfbuzz/harfbuzz/issues/2276

View File

@ -26,7 +26,7 @@ foreach t : tests
fname = '@0@.tests'.format(t) fname = '@0@.tests'.format(t)
# layout test are enabled only under experimental API flag for now # layout test are enabled only under experimental API flag for now
if t.contains('layout') and not get_option('experimental-api') if t.contains('layout') and not get_option('experimental_api')
continue continue
endif endif