-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
meson.build
90 lines (79 loc) · 2.59 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
project(
'io.elementary.tasks', 'vala', 'c',
meson_version: '>= 0.57',
version: '6.3.3'
)
gnome = import('gnome')
i18n = import('i18n')
add_project_arguments('-DGETTEXT_PACKAGE="@0@"'.format (meson.project_name()), language:'c')
add_project_arguments('-DLIBICAL_GLIB_UNSTABLE_API=1', language: 'c')
gresource = gnome.compile_resources(
'gresource',
join_paths('data', 'gresource.xml'),
source_dir: 'data'
)
config_data = configuration_data()
config_data.set_quoted('LOCALEDIR', get_option('prefix') / get_option('localedir'))
config_data.set_quoted('GETTEXT_PACKAGE', meson.project_name())
config_file = configure_file(
input: 'src/Config.vala.in',
output: '@BASENAME@',
configuration: config_data
)
libecal_dep = dependency('libecal-2.0')
tasks_deps = [
dependency('champlain-0.12'),
dependency('champlain-gtk-0.12'),
dependency('clutter-1.0'),
dependency('clutter-gtk-1.0'),
dependency('glib-2.0', version: '>=2.68'),
dependency('gobject-2.0'),
dependency('granite', version: '>=6.2.0'),
dependency('gtk+-3.0'),
libecal_dep,
dependency('libedataserver-1.2'),
dependency('libgeoclue-2.0'),
dependency('libhandy-1', version: '>=0.90.0'),
dependency('libical-glib'),
dependency('libportal'),
dependency('libportal-gtk3')
]
if libecal_dep.version().version_compare('>=3.46.0')
add_project_arguments('--define=HAS_EDS_3_46', language: 'vala')
tasks_deps += dependency('geocode-glib-2.0')
else
tasks_deps += dependency('libgdata')
tasks_deps += dependency('geocode-glib-1.0')
endif
if libecal_dep.version().version_compare('>=3.39.2')
add_project_arguments('--define=HAS_EDS_3_40', language: 'vala')
else
tasks_deps += meson.get_compiler('vala').find_library('libecal-2.0-fixes', dirs: meson.current_source_dir() / 'vapi')
endif
executable(
meson.project_name(),
config_file,
gresource,
'src/Application.vala',
'src/Location.vala',
'src/MainWindow.vala',
'src/TodayTaskMonitor.vala',
'src/Util.vala',
'src/Widgets/EditableLabel.vala',
'src/Widgets/EntryPopover/DateTime.vala',
'src/Widgets/EntryPopover/Generic.vala',
'src/Widgets/EntryPopover/Location.vala',
'src/Widgets/PopoverMenuitem.vala',
'src/Widgets/ScheduledRow.vala',
'src/Widgets/SourceRow.vala',
'src/Widgets/ScheduledTaskListBox.vala',
'src/Widgets/TaskListGrid.vala',
'src/Widgets/TaskRow.vala',
'src/Widgets/ListSettingsPopover.vala',
'src/TaskModel.vala',
dependencies: tasks_deps,
install : true
)
subdir('data')
subdir('po')
gnome.post_install(glib_compile_schemas: true)