Commit e0845da5 authored by Guido Günther's avatar Guido Günther

meson: drop enable_ and with_ prefixes

Following https://wiki.gnome.org/Initiatives/GnomeGoals/MesonPorting
parent a3bda8e0
......@@ -18,7 +18,7 @@ way to get going is to do the following:
For build options see [meson_options.txt](./meson_otions.txt). E.g. to enable documentation:
meson . _build -Denable_gtk_doc=true
meson . _build -Dgtk_doc=true
ninja -C _build/ libhandy-doc
## Usage
......
if get_option('enable_gtk_doc')
if get_option('gtk_doc')
subdir('xml')
......
if get_option('enable_examples')
if get_option('examples')
example_sources = [
'example.c',
......
......@@ -70,7 +70,7 @@ test_c_args = [
if get_option('buildtype') != 'plain'
test_c_args += '-fstack-protector-strong'
endif
if get_option('enable_profiling')
if get_option('profiling')
test_c_args += '-pg'
endif
......@@ -114,9 +114,11 @@ summary = [
'------',
'Handy @0@ (@1@)'.format(current, apiversion),
'',
' Tests: @0@'.format(get_option('enable_tests')),
' Examples: @0@'.format(get_option('enable_examples')),
' Documentation: @0@'.format(get_option('enable_gtk_doc')),
' Tests: @0@'.format(get_option('tests')),
' Examples: @0@'.format(get_option('examples')),
' Documentation: @0@'.format(get_option('gtk_doc')),
' Introspection: @0@'.format(get_option('introspection')),
' Vapi: @0@'.format(get_option('vapi')),
'------',
''
]
......
# Performance and debugging related options
option('enable_profiling', type: 'boolean', value: false)
option('profiling', type: 'boolean', value: false)
option('with_introspection', type: 'boolean', value: true)
option('with_vapi', type: 'boolean', value: true)
option('introspection', type: 'boolean', value: true)
option('vapi', type: 'boolean', value: true)
# Subproject
option('package_subdir', type: 'string',
description: 'Subdirectory to append to all installed files, for use as subproject'
)
option('enable_gtk_doc',
option('gtk_doc',
type: 'boolean', value: false,
description: 'Whether to generate the API reference for Handy')
option('enable_tests',
option('tests',
type: 'boolean', value: true,
description: 'Whether to compile unit tests')
option('enable_examples',
option('examples',
type: 'boolean', value: true,
description: 'Whether to compile unit tests')
......@@ -87,7 +87,7 @@ libhandy_dep = declare_dependency(
include_directories: include_directories('.'),
)
if get_option('with_introspection')
if get_option('introspection')
libhandy_gir = gnome.generate_gir(libhandy,
sources: libhandy_generated_headers + libhandy_public_headers + libhandy_public_sources,
......@@ -103,7 +103,7 @@ if get_option('with_introspection')
extra_args: [ '--c-include=handy.h', '--quiet' ],
)
if get_option('with_vapi')
if get_option('vapi')
libhandy_vapi = gnome.generate_vapi('libhandy-' + apiversion,
sources: libhandy_gir[0],
......
if get_option('enable_tests')
if get_option('tests')
test_env = [
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment