forked from manexim/home
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
37 lines (29 loc) · 997 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
project('com.github.manexim.home', 'vala', 'c')
gnome = import('gnome')
i18n = import('i18n')
add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format (meson.project_name()), language:'c')
add_project_arguments(
['--vapidir', join_paths(meson.current_source_dir(), 'vapi')],
language: 'vala'
)
gtk_plus_3_dep = dependency('gtk+-3.0')
json_glib_1_dep = dependency('json-glib-1.0')
posix_dep = meson.get_compiler('vala').find_library('posix')
gee_dep = dependency('gee-0.8')
granite_dep = dependency('granite')
soup_dep = dependency('libsoup-2.4')
xml_dep = dependency('libxml-2.0')
uuid_dep = dependency('uuid')
vala_flags = []
enable_demo_mode = get_option('demo_mode') == 'true'
if enable_demo_mode
vala_flags += ['--define', 'DEMO_MODE']
endif
if build_machine.cpu_family().contains('arm')
vala_flags += ['--define', 'ARM']
endif
add_project_arguments(vala_flags, language: 'vala')
subdir('data')
subdir('src')
subdir('po')
meson.add_install_script('meson/post_install.py')