-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
45 lines (38 loc) · 1.06 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
project('io.github.charlieqle.GnomeTypescriptTemplate',
version: '0.1.0',
meson_version: '>= 0.61.0',
default_options: [ 'warning_level=2', 'werror=false', ],
)
i18n = import('i18n')
gnome = import('gnome')
pkgdatadir = join_paths(get_option('datadir'), meson.project_name())
resource_path = '/' + meson.project_name().replace('.', '/')
### YARN ###
yarn = find_program('yarn', required: true)
yarn_args=[]
offline_mirror = get_option('offline-mirror')
if offline_mirror != ''
run_command('yarn',
'config',
'--offline',
'set',
'yarn-offline-mirror',
get_option('prefix') / 'yarn-mirror',
env: { 'HOME': meson.project_build_root() },
check: true
)
yarn_args += ['--offline', '--use-yarnrc', meson.project_build_root() / '.yarnrc']
endif
yarn_deps = custom_target('yarn-deps',
command: [ yarn, 'install', yarn_args ],
output: [ 'yarn-deps-out' ]
)
############
subdir('data')
subdir('src')
subdir('po')
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true,
)