gnome-shell/subprojects/extensions-app/meson.build
Florian Müllner 39e6375aff extensions-app: Move Extensions app to new subproject
The Extensions app code is now independent enough from the rest of the code
base to move it to its own subprojects, like we did for the extensions-tool.

This allows for stand-alone builds of the app, which we are about to use
for distributing it as flatpak.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1133
2020-03-27 23:33:30 +00:00

72 lines
1.8 KiB
Meson

project('gnome-extensions-app',
version: '3.36.0',
meson_version: '>= 0.47.0',
license: 'GPLv2+'
)
app_id = 'org.gnome.Extensions'
prgname = 'gnome-shell-extension-prefs'
gnome = import('gnome')
i18n = import('i18n')
if meson.is_subproject()
package_name = get_option('package_name')
assert(package_name != '',
'package_name must be specified for subproject builds')
po_dir = join_paths(meson.current_source_dir(), '../../po')
else
package_name = meson.project_name()
po_dir = join_paths(meson.current_source_dir(), 'po')
endif
package_version = meson.project_version()
prefix = get_option('prefix')
bindir = join_paths(prefix, get_option('bindir'))
libdir = join_paths(prefix, get_option('libdir'))
datadir = join_paths(prefix, get_option('datadir'))
pkgdatadir = join_paths(datadir, package_name)
desktopdir = join_paths(datadir, 'applications')
icondir = join_paths(datadir, 'icons')
localedir = join_paths(datadir, 'locale')
metainfodir = join_paths(datadir, 'metainfo')
servicedir = join_paths(datadir, 'dbus-1', 'services')
gjs = find_program('gjs')
appstream_util = find_program('appstream-util', required: false)
subdir('data')
subdir('js')
if not meson.is_subproject()
subproject('shew',
default_options: [
'package_name=@0@'.format(meson.project_name()),
]
)
subdir('po')
meson.add_install_script('build-aux/meson/postinstall.py')
summary_dirs = {
'prefix': get_option('prefix'),
'bindir': get_option('bindir'),
'libdir': get_option('bindir'),
'datadir': get_option('datadir'),
}
summary_build = {
'buildtype': get_option('buildtype'),
'debug': get_option('debug'),
}
if meson.version().version_compare('>= 0.53.0')
summary(summary_dirs, section: 'Directories')
summary(summary_build, section: 'Build Configuration')
endif
endif