makefile-incl.gir 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Custom systemd Makefile include that builds/installs gir only for LFS
  2. # vim: tabstop=3
  3. G_IR_INCLUDES = \
  4. src/gudev/gudev.h \
  5. src/gudev/gudevtypes.h \
  6. src/gudev/gudevenums.h \
  7. src/gudev/gudevenumtypes.h \
  8. src/gudev/gudevclient.h \
  9. src/gudev/gudevdevice.h \
  10. src/gudev/gudevenumerator.h \
  11. src/gudev/gudevclient.c \
  12. src/gudev/gudevdevice.c \
  13. src/gudev/gudevenumerator.c
  14. build/GUdev-1.0.gir: gudev
  15. @echo G-IR-SCANNER $@
  16. $(VB)LD_LIBRARY_PATH=./build g-ir-scanner \
  17. $(G_IR_INCLUDES) \
  18. -D_GUDEV_COMPILATION \
  19. -D_GUDEV_WORK_AROUND_DEV_T_BUG \
  20. -I src -I src/gudev \
  21. -L./build -lgudev-1.0 -ludev \
  22. --quiet \
  23. --warn-all \
  24. --no-libtool \
  25. --include=GObject-2.0 \
  26. --pkg-export=gudev-1.0 \
  27. --c-include=gudev/gudev.h \
  28. --library=gudev-1.0 \
  29. --namespace=GUdev \
  30. --nsversion=1.0 \
  31. --output=$@
  32. build/GUdev-1.0.typelib: build/GUdev-1.0.gir
  33. @echo G-IR-COMPILER $@
  34. $(VB)LIBRARY_PATH=./build g-ir-compiler $< > $@
  35. gir-data: build/GUdev-1.0.gir build/GUdev-1.0.typelib
  36. install-gir-data: gir-data
  37. @mkdir -pv $(DESTDIR)/usr/lib/girepository-1.0 \
  38. $(DESTDIR)/usr/share/gir-1.0
  39. @cp -v build/GUdev-1.0.typelib $(DESTDIR)/usr/lib/girepository-1.0
  40. @cp -v build/GUdev-1.0.gir $(DESTDIR)/usr/share/gir-1.0
  41. clean-gir-data:
  42. rm -f build/GUdev-1.0.typelib
  43. rm -f build/GUdev-1.0.gir