extensions-app: Include a non-fake Config

We currently include a fake config.js file to satisfy the indirect
import from ExtensionUtils. However we're about to need to pass
build-time information into the program ourselves, so generate
a proper file.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2841>
This commit is contained in:
Florian Müllner 2023-07-12 16:46:29 +02:00 committed by Marge Bot
parent 3028d478b8
commit c67614b522
4 changed files with 11 additions and 2 deletions

View File

@ -26,6 +26,8 @@ configure_file(
install_dir: pkgdatadir,
)
subdir('misc')
gnome.compile_resources(
app_id + '.src',
configure_file(
@ -33,7 +35,7 @@ gnome.compile_resources(
output: app_id + '.src.gresource.xml',
configuration: {'profile': '/'.join(profile.split('.')) },
),
source_dir: ['.', '../../../js'],
source_dir: ['.', meson.current_build_dir(), '../../../js'],
gresource_bundle: true,
install: true,
install_dir: pkgdatadir

View File

@ -1 +0,0 @@
/* Fake module to satify import in ExtensionUtils */

View File

@ -0,0 +1 @@
var PACKAGE_VERSION = '@PACKAGE_VERSION@';

View File

@ -0,0 +1,7 @@
config_js = configure_file(
input: 'config.js.in',
output: '@BASENAME@',
configuration: {
'GETTEXT_VERSION': meson.project_version(),
}
)