Debian Codegraph @

portal-test/gtk4/meson.build

raw
1
2 if not introspection
3 error('The GTK4 test portal requires introspection')
4 endif
5
6 gst_dep = dependency('gstreamer-audio-1.0')
7
8 package_name = 'portal-test-gtk4'
9 pkgdatadir = get_option('datadir') / package_name
10
11 data_resouces = gnome.compile_resources(
12 'org.gnome.PortalTest.Gtk4.data',
13 'org.gnome.PortalTest.Gtk4.data.gresource.xml',
14 gresource_bundle: true,
15 install: true,
16 install_dir: pkgdatadir,
17 )
18
19 js_resouces = gnome.compile_resources(
20 'org.gnome.PortalTest.Gtk4.src',
21 'org.gnome.PortalTest.Gtk4.src.gresource.xml',
22 gresource_bundle: true,
23 install: true,
24 install_dir: pkgdatadir,
25 )
26
27 bin_conf = configuration_data()
28 bin_conf.set('GJS', find_program('gjs').full_path())
29 bin_conf.set('PACKAGE_NAME', package_name)
30 bin_conf.set('PACKAGE_VERSION', '1.0.0')
31 bin_conf.set('prefix', get_option('prefix'))
32 bin_conf.set('libdir', get_option('prefix') / get_option('libdir'))
33 bin_conf.set('datadir', get_option('prefix') / get_option('datadir'))
34
35 portal_test_gtk4 = configure_file(
36 input: 'org.gnome.PortalTest.Gtk4.in',
37 output: 'org.gnome.PortalTest.Gtk4',
38 configuration: bin_conf,
39 )
40 install_data(portal_test_gtk4, install_mode: 'rwxr-xr-x', install_dir: get_option('bindir'))
41 install_data('test.txt', install_dir: 'share/org.gnome.PortalTest.Gtk4')
42 install_data('org.gnome.PortalTest.Gtk4.desktop', install_dir: 'share/applications')
43 install_data('org.gnome.PortalTest.Gtk4.service', install_dir: 'share/dbus-1/services')
44
45 executable('portal-linking-test-gtk4',
46 [ 'portal-linking-test.c' ],
47 include_directories: [libportal_inc],
48 dependencies: [libportal_gtk4_dep],
49 )