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.

161 lines
3.9 KiB

  1. # This program is free software; you can redistribute it and/or modify
  2. # it under the terms of the GNU General Public License version 2 as
  3. # published by the Free Software Foundation.
  4. #
  5. # This program is distributed in the hope that it will be useful,
  6. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. # GNU General Public License for more details.
  9. #
  10. # You should have received a copy of the GNU General Public License along
  11. # with this program; if not, write to the Free Software Foundation, Inc.,
  12. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  13. #
  14. # AUTHORS
  15. # Maciek Borzecki <maciek.borzecki (at] gmail.com>
  16. #
  17. # location of *.desktop file, usually /usr/share/applications
  18. applicationsdir = $(datadir)/applications
  19. applications_DATA = \
  20. mconnect.desktop
  21. mconnectdatadir = $(datadir)/mconnect
  22. mconnectdata_DATA = \
  23. mconnect.conf
  24. bin_PROGRAMS = \
  25. mconnect \
  26. mconnectctl
  27. noinst_PROGRAMS = \
  28. test-mconn-crypt
  29. noinst_LTLIBRARIES =
  30. VALAFLAGS = \
  31. --no-color \
  32. -g \
  33. --vapidir=vapi \
  34. --pkg=gio-2.0 \
  35. --pkg=gio-unix-2.0 \
  36. --pkg=json-glib-1.0 \
  37. --pkg=gee-0.8 \
  38. --pkg=libnotify \
  39. --pkg=posix \
  40. --pkg=gdk-3.0 \
  41. --pkg=atspi-2 \
  42. --pkg=gnutls \
  43. --vapidir=src/crypt
  44. TESTS = \
  45. test-mconn-crypt
  46. #-------------------------------------------------------------
  47. mconnect_SOURCES = \
  48. src/mconnect/main.vala \
  49. src/mconnect/discovery.vala \
  50. src/mconnect/packet.vala \
  51. src/mconnect/device.vala \
  52. src/mconnect/discovereddevice.vala \
  53. src/mconnect/device-proxy.vala \
  54. src/mconnect/devicemanager.vala \
  55. src/mconnect/devicemanager-proxy.vala \
  56. src/mconnect/devicechannel.vala \
  57. src/mconnect/core.vala \
  58. src/mconnect/packethandlerinterface.vala \
  59. src/mconnect/packethandlerinterface-proxy.vala \
  60. src/mconnect/packethandlers.vala \
  61. src/mconnect/packethandlers-proxy.vala \
  62. src/mconnect/notification.vala \
  63. src/mconnect/battery.vala \
  64. src/mconnect/battery-proxy.vala \
  65. src/mconnect/telephony.vala \
  66. src/mconnect/mousepad.vala \
  67. src/mconnect/ping.vala \
  68. src/mconnect/ping-proxy.vala \
  69. src/mconnect/share.vala \
  70. src/mconnect/config.vala \
  71. src/mconnect/application.vala \
  72. src/mconnect/utils.vala \
  73. src/mconnect/property-proxy.vala \
  74. src/mconnect/transfer.vala \
  75. src/mconnect/transfer-download.vala \
  76. src/mconnect/logging.vala \
  77. src/crypt/certificate.vala
  78. mconnect_LDADD = \
  79. $(MCONNECT_LIBS)
  80. mconnect_CFLAGS = \
  81. $(MCONNECT_CFLAGS) \
  82. -I$(top_srcdir)/src/crypt
  83. #-------------------------------------------------------------
  84. test_mconn_crypt_SOURCES = \
  85. src/crypt/certificate.vala \
  86. test/mconn-crypt-vala-test.vala
  87. test_mconn_crypt_LDADD = \
  88. $(MCONNECT_LIBS)
  89. test_mconn_crypt_CFLAGS = \
  90. $(MCONNECT_CFLAGS)
  91. test_mconn_crypt_VALAFLAGS = \
  92. --pkg=gio-2.0 \
  93. --pkg=posix \
  94. --pkg=gnutls
  95. #-------------------------------------------------------------
  96. mconnectctl_SOURCES = \
  97. src/mconnectctl/main.vala
  98. mconnectctl_LDADD = \
  99. $(MCONNECT_LIBS)
  100. mconnectctl_CFLAGS = \
  101. $(MCONNECT_CFLAGS)
  102. #-------------------------------------------------------------
  103. # configure will expand bindir to ${exec_prefix}/bin, we want the
  104. # whole thing, that's why mconnect.desktop is generated here and not
  105. # in configure
  106. do_desktop_subst = sed -e 's,[@]bindir[@],${bindir},g'
  107. mconnect.desktop: mconnect.desktop.in
  108. $(do_desktop_subst) < $< > $@
  109. #-------------------------------------------------------------
  110. REV ?= HEAD
  111. git-source-dist:
  112. gitsha=`git rev-list $(REV) -1`; \
  113. git archive --prefix=mconnect-$${gitsha}/ $(REV) | \
  114. gzip -c > mconnect-$${gitsha}.tar.gz
  115. #-------------------------------------------------------------
  116. run-gdb: gdb-script install
  117. gdb -x gdb-script
  118. .PHONY: run-gdb
  119. gdb-script: gdb-script.in
  120. sed -e 's,[@]bindir[@],${bindir},g' < $< > $@
  121. #-------------------------------------------------------------
  122. GEN_FROM_VALA = $(filter %.vala,$(mconnect_SOURCES) $(test_mconn_crypt_SOURCES))
  123. BUILT_SOURCES = \
  124. mconnect.desktop \
  125. $(GEN_FROM_VALA:.vala=.c)
  126. CLEANFILES = $(BUILT_SOURCES)