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.

64 lines
1.7 KiB

  1. # location of *.desktop file, usually /usr/share/applications
  2. applicationsdir = $(datadir)/applications
  3. applications_DATA = mconnect.desktop
  4. bin_PROGRAMS = mconnect
  5. noinst_PROGRAMS = test-mconn-crypt \
  6. test-mconn-crypt-vala
  7. mconnect_SOURCES = src/main.vala \
  8. src/discovery.vala \
  9. src/packet.vala \
  10. src/device.vala \
  11. src/devicemanager.vala \
  12. src/devicechannel.vala \
  13. src/core.vala \
  14. src/packethandlerinterface.vala \
  15. src/packethandlers.vala \
  16. src/notification.vala \
  17. src/battery.vala \
  18. src/telephony.vala \
  19. src/mconn-crypt.c \
  20. src/mconn-crypt.h
  21. mconnect_LDADD = $(MCONNECT_LIBS)
  22. mconnect_CFLAGS = $(MCONNECT_CFLAGS) -Isrc
  23. test_mconn_crypt_SOURCES = test/mconn-crypt-test.c \
  24. src/mconn-crypt.c \
  25. src/mconn-crypt.h
  26. test_mconn_crypt_LDADD = $(MCONNECT_LIBS)
  27. test_mconn_crypt_CFLAGS = $(MCONNECT_CFLAGS) -Isrc
  28. test_mconn_crypt_vala_SOURCES = test/mconn-crypt-vala-test.vala \
  29. src/mconn-crypt.c \
  30. src/mconn-crypt.h
  31. test_mconn_crypt_vala_LDADD = $(MCONNECT_LIBS)
  32. test_mconn_crypt_vala_CFLAGS = $(MCONNECT_CFLAGS) -Isrc -I.
  33. VALAFLAGS = $(MCONNECT_VALAFLAGS) --vapidir=. --pkg=mconn-crypt
  34. mconn-crypt.gi: src/mconn-crypt.h
  35. rm -f $@
  36. $(GEN_INTROSPECT) -n MConn \
  37. $< $(filter -I%,$(MCONNECT_CFLAGS)) > $@
  38. mconn-crypt.vapi: mconn-crypt.gi
  39. rm -f $@
  40. vapigen --library mconn-crypt $<
  41. # configure will expand bindir to ${exec_prefix}/bin, we want the
  42. # whole thing, that's why mconnect.desktop is generated here and not
  43. # in configure
  44. do_desktop_subst = sed -e 's,[@]bindir[@],${bindir},g'
  45. mconnect.desktop: mconnect.desktop.in
  46. $(do_desktop_subst) < $< > $@
  47. BUILT_SOURCES = mconn-crypt.vapi mconn-crypt.gi mconnect.desktop
  48. CLEANFILES = $(BUILT_SOURCES)