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.

141 lines
3.4 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. noinst_PROGRAMS = \
  27. test-mconn-crypt \
  28. test-mconn-crypt-vala
  29. noinst_LTLIBRARIES = \
  30. libmconn-crypt.la
  31. VALAFLAGS = \
  32. -g \
  33. --pkg=json-glib-1.0 \
  34. --pkg=gee-0.8 \
  35. --pkg=libnotify \
  36. --pkg=posix \
  37. --vapidir=src/crypt
  38. #-------------------------------------------------------------
  39. mconnect_SOURCES = \
  40. src/mconnect/main.vala \
  41. src/mconnect/discovery.vala \
  42. src/mconnect/packet.vala \
  43. src/mconnect/device.vala \
  44. src/mconnect/devicemanager.vala \
  45. src/mconnect/devicechannel.vala \
  46. src/mconnect/core.vala \
  47. src/mconnect/packethandlerinterface.vala \
  48. src/mconnect/packethandlers.vala \
  49. src/mconnect/notification.vala \
  50. src/mconnect/battery.vala \
  51. src/mconnect/telephony.vala \
  52. src/mconnect/config.vala
  53. mconnect_LDADD = \
  54. libmconn-crypt.la \
  55. $(MCONNECT_LIBS)
  56. mconnect_CFLAGS = \
  57. $(MCONNECT_CFLAGS) \
  58. -I$(top_srcdir)/src/crypt
  59. mconnect_VALAFLAGS = \
  60. --pkg=mconn-crypt
  61. #-------------------------------------------------------------
  62. libmconn_crypt_la_SOURCES = \
  63. src/crypt/mconn-crypt.c \
  64. src/crypt/mconn-crypt.h
  65. libmconn_crypt_la_CFLAGS = \
  66. $(MCONNECT_CFLAGS)
  67. libmconn_crypt_la_LIBADD = \
  68. $(MCONNECT_LIBS)
  69. #-------------------------------------------------------------
  70. test_mconn_crypt_SOURCES = \
  71. test/mconn-crypt-test.c
  72. test_mconn_crypt_LDADD = \
  73. $(MCONNECT_LIBS) \
  74. libmconn-crypt.la
  75. test_mconn_crypt_CFLAGS = \
  76. $(MCONNECT_CFLAGS) \
  77. -I$(top_srcdir)/src/crypt
  78. #-------------------------------------------------------------
  79. test_mconn_crypt_vala_SOURCES = \
  80. test/mconn-crypt-vala-test.vala
  81. test_mconn_crypt_vala_LDADD = \
  82. $(MCONNECT_LIBS) \
  83. libmconn-crypt.la
  84. test_mconn_crypt_vala_CFLAGS = \
  85. $(MCONNECT_CFLAGS) \
  86. -I$(top_srcdir)/src/crypt
  87. test_mconn_crypt_vala_VALAFLAGS = \
  88. --pkg=mconn-crypt
  89. #-------------------------------------------------------------
  90. # configure will expand bindir to ${exec_prefix}/bin, we want the
  91. # whole thing, that's why mconnect.desktop is generated here and not
  92. # in configure
  93. do_desktop_subst = sed -e 's,[@]bindir[@],${bindir},g'
  94. mconnect.desktop: mconnect.desktop.in
  95. $(do_desktop_subst) < $< > $@
  96. #-------------------------------------------------------------
  97. REV ?= HEAD
  98. git-source-dist:
  99. gitsha=`git rev-list $(REV) -1`; \
  100. git archive --prefix=mconnect-$${gitsha}/ $(REV) | \
  101. gzip -c > mconnect-$${gitsha}.tar.gz
  102. #-------------------------------------------------------------
  103. GEN_FROM_VALA = $(filter %.vala,$(mconnect_SOURCES))
  104. BUILT_SOURCES = \
  105. mconnect.desktop \
  106. $(GEN_FROM_VALA:.vala=.c)
  107. CLEANFILES = $(BUILT_SOURCES)