| 1 |
|
| 2 |
gst_dep = dependency('gstreamer-audio-1.0') |
| 3 |
|
| 4 |
resources = gnome.compile_resources('resources', |
| 5 |
'portal-test.gresource.xml', |
| 6 |
c_name: '_portal_test', |
| 7 |
) |
| 8 |
|
| 9 |
src = [ |
| 10 |
'main.c', |
| 11 |
'portal-test-app.h', |
| 12 |
'portal-test-app.c', |
| 13 |
'portal-test-win.h', |
| 14 |
'portal-test-win.c', |
| 15 |
resources, |
| 16 |
] |
| 17 |
|
| 18 |
portal_test_gtk3 = executable('portal-test-gtk3', |
| 19 |
src, |
| 20 |
include_directories: [top_inc, libportal_inc], |
| 21 |
dependencies: [gst_dep, libportal_gtk3_dep], |
| 22 |
install : true, |
| 23 |
) |
| 24 |
|
| 25 |
install_data('test.txt', install_dir: 'share/org.gnome.PortalTest.Gtk3') |
| 26 |
install_data('org.gnome.PortalTest.Gtk3.desktop', install_dir: 'share/applications') |
| 27 |
install_data('org.gnome.PortalTest.Gtk3.service', install_dir: 'share/dbus-1/services') |
| 28 |
|
| 29 |
executable('portal-linking-test-gtk3', |
| 30 |
[ 'portal-linking-test.c' ], |
| 31 |
include_directories: [libportal_inc], |
| 32 |
dependencies: [libportal_gtk3_dep], |
| 33 |
) |
| 34 |
|
| 35 |
if meson.can_run_host_binaries() |
| 36 |
run_target('portal-test-gtk3', |
| 37 |
command: portal_test_gtk3, |
| 38 |
) |
| 39 |
endif |