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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
# GSettings
compiled = gnome.compile_schemas()
install_data('org.gnome.Contacts.gschema.xml',
install_dir: join_paths(datadir, 'glib-2.0', 'schemas'),
)
# The gnome-contacts binary
contacts_vala_sources = [
'contacts-accounts-list.vala',
'contacts-app.vala',
'contacts-avatar-dialog.vala',
'contacts-contact-editor.vala',
'contacts-contact-frame.vala',
'contacts-contact-list.vala',
'contacts-contact-pane.vala',
'contacts-contact-sheet.vala',
'contacts-contact.vala',
'contacts-in-app-notification.vala',
'contacts-link-suggestion-grid.vala',
'contacts-linked-accounts-dialog.vala',
'contacts-linking.vala',
'contacts-list-pane.vala',
'contacts-settings.vala',
'contacts-setup-window.vala',
'contacts-store.vala',
'contacts-types.vala',
'contacts-utils.vala',
'contacts-window.vala',
'main.vala',
]
contacts_vala_args = [
'--target-glib=@0@'.format(min_glib_version),
'--pkg', 'config',
'--pkg', 'custom',
]
contacts_c_sources = [
'cc-crop-area.c',
'contacts-esd-setup.c',
]
contacts_c_args = [
'-include', 'config.h',
'-DGNOME_DESKTOP_USE_UNSTABLE_API',
'-DLOCALEDIR="@0@"'.format(locale_dir),
]
contacts_deps = [
folks,
folks_eds,
folks_telepathy,
gee,
gio_unix,
glib,
gnome_desktop,
goa,
gtk,
libebook,
libedataserver,
libedataserverui,
math,
telepathy_glib,
]
# Add extra stuff given a certain set of options
if cheese_enabled
contacts_deps += [ cheese, cheese_gtk ]
contacts_vala_args += [ '-D', 'HAVE_CHEESE' ]
contacts_c_sources += 'cheese-flash.c'
endif
if maps_enabled
contacts_deps += [ champlain, clutter_gtk, geocode_glib ]
contacts_vala_args += [ '-D', 'HAVE_MAPS' ]
contacts_vala_sources += 'contacts-address-map.vala'
endif
contacts_sources = [
contacts_c_sources,
contacts_vala_sources,
resources,
]
executable('gnome-contacts', contacts_sources,
include_directories: config_h_dir,
vala_args: contacts_vala_args,
c_args: contacts_c_args,
dependencies: contacts_deps,
install: true,
)
# The search provider
contact_search_provider_vala_sources = [
'contacts-contact.vala',
'contacts-shell-search-provider.vala',
'contacts-store.vala',
'contacts-types.vala',
'contacts-utils.vala',
]
contact_search_provider_c_sources = [
'contacts-esd-setup.c',
]
contact_search_provider_sources = [
contact_search_provider_vala_sources,
contact_search_provider_c_sources,
]
executable('gnome-contacts-search-provider', contact_search_provider_sources,
include_directories: config_h_dir,
vala_args: contacts_vala_args,
c_args: contacts_c_args,
dependencies: contacts_deps,
install: true,
install_dir: libexecdir,
)
|