diff --git a/subprojects/extensions-tool/meson.build b/subprojects/extensions-tool/meson.build index 0cee11234..ffaf49bd3 100644 --- a/subprojects/extensions-tool/meson.build +++ b/subprojects/extensions-tool/meson.build @@ -9,7 +9,14 @@ gio_req = '>= 2.56.0' gnome = import('gnome') i18n = import('i18n') -package_name = get_option('package_name') +if meson.is_subproject() + package_name = get_option('package_name') + assert(package_name != '', + 'package_name must be specified for subproject builds') +else + package_name = meson.project_name() +endif + package_version = meson.project_version() prefix = get_option('prefix') diff --git a/subprojects/extensions-tool/meson_options.txt b/subprojects/extensions-tool/meson_options.txt index d106bf889..9963d8ff7 100644 --- a/subprojects/extensions-tool/meson_options.txt +++ b/subprojects/extensions-tool/meson_options.txt @@ -7,6 +7,5 @@ option('man', option('package_name', type: 'string', - value: 'gnome-extensions-tool', - description: 'The gettext domain name' + description: 'The gettext domain name when used as a subproject' )