2019-12-01 02:01:02 +00:00
|
|
|
project('gnome-extensions-app',
|
2021-01-18 16:46:04 +00:00
|
|
|
version: '40.beta',
|
2020-03-05 14:35:48 +00:00
|
|
|
meson_version: '>= 0.53.0',
|
2019-12-01 02:01:02 +00:00
|
|
|
license: 'GPLv2+'
|
|
|
|
)
|
|
|
|
|
2021-01-22 18:29:07 +00:00
|
|
|
if get_option('profile') == 'development'
|
|
|
|
profile = '.Devel'
|
2021-01-22 21:07:42 +00:00
|
|
|
vcs_tag = run_command('git', 'rev-parse', '--short', '@').stdout().strip()
|
2021-01-22 18:29:07 +00:00
|
|
|
else
|
|
|
|
profile = ''
|
2021-01-22 21:07:42 +00:00
|
|
|
vcs_tag = ''
|
2021-01-22 18:29:07 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
base_id = 'org.gnome.Extensions'
|
|
|
|
app_id = base_id + profile
|
2020-04-10 02:27:31 +00:00
|
|
|
prgname = 'gnome-extensions-app'
|
2019-12-01 02:01:02 +00:00
|
|
|
|
|
|
|
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)
|
2020-04-01 04:18:05 +00:00
|
|
|
desktop_file_validate = find_program('desktop-file-validate', required: false)
|
2019-12-01 02:01:02 +00:00
|
|
|
|
|
|
|
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'),
|
|
|
|
}
|
|
|
|
|
2020-03-05 14:35:48 +00:00
|
|
|
summary(summary_dirs, section: 'Directories')
|
|
|
|
summary(summary_build, section: 'Build Configuration')
|
2019-12-01 02:01:02 +00:00
|
|
|
endif
|