-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
39 lines (31 loc) · 930 Bytes
/
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
project('com.github.neithern.g4music',
['c', 'vala'],
version: '1.8.2'
)
gnome = import('gnome')
i18n = import('i18n')
app_id = meson.project_name()
version = meson.project_version()
add_project_arguments('-DGETTEXT_PACKAGE="' + app_id + '"', language: 'c')
add_project_arguments('--enable-experimental-non-null', language: 'vala')
adw_dep = dependency('libadwaita-1')
if adw_dep.version().version_compare('>=1.2.0')
add_project_arguments('--define=HAS_ADW_ABOUT', language: 'vala')
endif
libm_dep = meson.get_compiler('c').find_library('m', required: false)
posix_dep = meson.get_compiler('vala').find_library('posix', required: false)
dependencies = [
dependency('gstreamer-1.0'),
dependency('gstreamer-tag-1.0'),
adw_dep,
libm_dep,
posix_dep,
]
subdir('data')
subdir('po')
subdir('src')
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true,
)