-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathmeson.build
56 lines (47 loc) · 1.71 KB
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
project('almond-gnome', 'c',
version: '2.0.0',
meson_version: '>= 0.48.0',
)
app_command = 'almond'
app_id = 'edu.stanford.Almond'
gnome = import('gnome')
intl = import('i18n')
config_h = configuration_data()
GETTEXT_PACKAGE = app_id
config_h.set_quoted('GETTEXT_PACKAGE', GETTEXT_PACKAGE)
config_h.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
configure_file(
output: 'config.h',
configuration: config_h,
)
add_global_arguments([
'-DHAVE_CONFIG_H',
'-I' + meson.build_root(),
], language: 'c')
app_configuration = configuration_data()
app_configuration.set('GJS', find_program('gjs').path())
app_configuration.set('NODE', find_program('node').path())
app_configuration.set('PACKAGE_NAME', app_id)
app_configuration.set('PACKAGE_VERSION', meson.project_version())
app_configuration.set('prefix', get_option('prefix'))
pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), app_id)
pkglibdir = join_paths(get_option('prefix'), 'lib', app_id)
app_configuration.set('bindir', join_paths(get_option('prefix'), get_option('bindir')))
app_configuration.set('libdir', join_paths(get_option('prefix'), get_option('libdir')))
app_configuration.set('pkglibdir', pkglibdir)
app_configuration.set('pkgdatadir', pkgdatadir)
subdir('helpers')
subdir('src')
subdir('data')
subdir('po')
subdir('shell-extension')
# spawn our custom script for service directory (that copies and calls yarn)
custom_target('service',
output: 'service',
input: files('package-lock.json'),
command: [files('meson/copy_service_to_builddir.py'), '@INPUT@', '@OUTPUT@'],
console: true,
build_always_stale: true,
install: true,
install_dir: pkglibdir)
meson.add_install_script('meson/meson_post_install.py')