mconnect - KDE Connect protocol implementation in Vala/C
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
2.9 KiB

  1. project('mconnect', 'vala', 'c')
  2. # dependencies
  3. glib_dep = dependency('glib-2.0')
  4. gobject_dep = dependency('gobject-2.0')
  5. gio_dep = dependency('gio-2.0')
  6. gio_unix_dep = dependency('gio-unix-2.0')
  7. json_glib_dep = dependency('json-glib-1.0')
  8. gee_dep = dependency('gee-0.8')
  9. libnotify_dep = dependency('libnotify')
  10. gdk_dep = dependency('gdk-3.0')
  11. atspi_dep = dependency('atspi-2')
  12. gnutls_dep = dependency('gnutls')
  13. posix_dep = meson.get_compiler('vala').find_library('posix')
  14. add_project_arguments(['--vapidir',
  15. join_paths(meson.current_source_dir(), 'vapi')],
  16. language: 'vala')
  17. # binaries
  18. mconnect_src = [
  19. 'src/mconnect/main.vala',
  20. 'src/mconnect/discovery.vala',
  21. 'src/mconnect/packet.vala',
  22. 'src/mconnect/device.vala',
  23. 'src/mconnect/discovereddevice.vala',
  24. 'src/mconnect/device-proxy.vala',
  25. 'src/mconnect/devicemanager.vala',
  26. 'src/mconnect/devicemanager-proxy.vala',
  27. 'src/mconnect/devicechannel.vala',
  28. 'src/mconnect/core.vala',
  29. 'src/mconnect/packethandlerinterface.vala',
  30. 'src/mconnect/packethandlerinterface-proxy.vala',
  31. 'src/mconnect/packethandlers.vala',
  32. 'src/mconnect/packethandlers-proxy.vala',
  33. 'src/mconnect/notification.vala',
  34. 'src/mconnect/battery.vala',
  35. 'src/mconnect/battery-proxy.vala',
  36. 'src/mconnect/telephony.vala',
  37. 'src/mconnect/mousepad.vala',
  38. 'src/mconnect/ping.vala',
  39. 'src/mconnect/ping-proxy.vala',
  40. 'src/mconnect/config.vala',
  41. 'src/mconnect/application.vala',
  42. 'src/mconnect/utils.vala',
  43. 'src/mconnect/property-proxy.vala',
  44. 'src/crypt/certificate.vala',
  45. ]
  46. executable('mconnect', mconnect_src,
  47. dependencies : [glib_dep, gobject_dep,
  48. gio_dep, gio_unix_dep,
  49. json_glib_dep, gee_dep,
  50. libnotify_dep, gdk_dep,
  51. atspi_dep, gnutls_dep,
  52. posix_dep])
  53. mconnectctl_src = 'src/mconnectctl/main.vala'
  54. executable('mconnectctl', mconnectctl_src,
  55. dependencies : [glib_dep, gobject_dep,
  56. gio_dep, gio_unix_dep,
  57. json_glib_dep, gee_dep,
  58. libnotify_dep, gdk_dep,
  59. atspi_dep, gnutls_dep])
  60. # tests
  61. test_mconn_crypt_src = [
  62. 'test/mconn-crypt-vala-test.vala',
  63. 'src/crypt/certificate.vala',
  64. ]
  65. test_mconn_crypt = executable('test-mconn-crypt', test_mconn_crypt_src,
  66. dependencies: [
  67. glib_dep, gobject_dep,
  68. gio_dep, gio_unix_dep,
  69. gnutls_dep, posix_dep,
  70. ],
  71. install: false)
  72. test('mconn-crypt', test_mconn_crypt)
  73. # other files
  74. conf = configuration_data()
  75. conf.set('bindir',
  76. join_paths(get_option('prefix'), get_option('bindir')))
  77. configure_file(output: 'mconnect.desktop',
  78. input: 'mconnect.desktop.in',
  79. configuration: conf)