-
Notifications
You must be signed in to change notification settings - Fork 8
/
meson.build
56 lines (49 loc) · 2.29 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
project('portal-test','c', version: '1', meson_version: '>= 0.36.0')
conf_data = configuration_data()
conf_data.set_quoted('G_LOG_DOMAIN', 'PortalTest')
conf_data.set_quoted('PACKAGE_NAME', 'portal-test')
conf_data.set_quoted('PKGDATADIR', join_paths(get_option('prefix'), get_option('datadir'), 'portal-test'))
configure_file(output : 'config.h', configuration : conf_data)
gnome = import('gnome')
gtk_dep = dependency('gtk+-3.0')
gst_dep = dependency('gstreamer-audio-1.0')
resources = gnome.compile_resources('resources',
'portal-test.gresource.xml',
c_name: '_portal_test')
screenshot = gnome.gdbus_codegen('screenshot-portal',
'org.freedesktop.portal.Screenshot.xml',
interface_prefix: 'org.freedesktop.portal.',
namespace: 'Xdp')
screencast = gnome.gdbus_codegen('screencast-portal',
'org.freedesktop.portal.ScreenCast.xml',
interface_prefix: 'org.freedesktop.portal.',
namespace: 'Xdp')
account = gnome.gdbus_codegen('account-portal',
'org.freedesktop.portal.Account.xml',
interface_prefix: 'org.freedesktop.portal.',
namespace: 'Xdp')
email = gnome.gdbus_codegen('email-portal',
'org.freedesktop.portal.Email.xml',
interface_prefix: 'org.freedesktop.portal.',
namespace: 'Xdp')
flatpak = gnome.gdbus_codegen('flatpak-portal',
'org.freedesktop.portal.Flatpak.xml',
interface_prefix: 'org.freedesktop.portal.',
namespace: 'Xdp')
src = ['main.c',
'portal-test-app.h',
'portal-test-app.c',
'portal-test-win.h',
'portal-test-win.c',
resources,
screenshot,
screencast,
account,
email,
flatpak]
executable('portal-test',
src,
dependencies: [gtk_dep, gst_dep],
install : true)
install_data('org.gnome.PortalTest.desktop', install_dir: 'share/applications')
install_data('org.gnome.PortalTest.service', install_dir: 'share/dbus-1/services')