gfativaflashplugin.pro 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. TEMPLATE = lib
  2. TARGET = gfativaflashplugin
  3. QT += sql qml
  4. CONFIG += qt plugin c++11
  5. ##############################################################
  6. TARGET = $$qtLibraryTarget($$TARGET)
  7. uri = gfa.plugins.qml.tivaflash
  8. ##############################################################
  9. QMAKE_LIBDIR += $$[QT_SYSROOT]/usr/lib/gfa
  10. QMAKE_RPATHLINKDIR += /usr/lib/gfa
  11. QMAKE_RPATHDIR += /usr/lib/gfa
  12. ##############################################################
  13. CONFIG(debug, debug|release) {
  14. QMAKE_CXXFLAGS -= -Os
  15. QMAKE_CFLAGS -= -Os
  16. QMAKE_CXXFLAGS += -D_DEBUG
  17. QMAKE_CFLAGS += -D_DEBUG
  18. QMAKE_LIBS += -lgfamininetd
  19. }
  20. CONFIG(release, debug|release) {
  21. QMAKE_LIBS += -lgfamininet
  22. }
  23. ##############################################################
  24. SOURCES += \
  25. src/gfativaflash.cpp \
  26. src/gfativaflash_plugin.cpp
  27. HEADERS += \
  28. src/gfativaflash.h \
  29. src/gfativaflash_plugin.h
  30. ##############################################################
  31. qmlPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)
  32. ##############################################################
  33. linux-g++ {
  34. QMAKE_POST_LINK += @test -d $(INSTALL_ROOT)$$qmlPath || mkdir -p $(INSTALL_ROOT)$$qmlPath
  35. QMAKE_POST_LINK += $$escape_expand(\\n\\t)$(COPY_FILE) $$OUT_PWD/$(TARGET) $(INSTALL_ROOT)$$qmlPath/
  36. QMAKE_POST_LINK += $$escape_expand(\\n\\t)$(COPY_FILE) $$_PRO_FILE_PWD_/qmldir $(INSTALL_ROOT)$$qmlPath/
  37. QMAKE_POST_LINK += $$escape_expand(\\n\\t)qmlplugindump -nonrelocatable $$uri 1.0 > $$qmlPath/plugins.qmltypes
  38. QMAKE_POST_LINK += $$escape_expand(\\n\\t)$(COPY_FILE) $(INSTALL_ROOT)$$qmlPath/plugins.qmltypes $$_PRO_FILE_PWD_/
  39. }
  40. ##############################################################
  41. linux-buildroot-g++ {
  42. qmlDir.files = $$_PRO_FILE_PWD_/qmldir
  43. qmlDir.path = $$qmlPath
  44. target.path = $$qmlPath
  45. copy_qmltyes.path = $$qmlPath
  46. copy_qmltyes.files = $$_PRO_FILE_PWD_/plugins.qmltypes
  47. INSTALLS += target qmlDir copy_qmltyes
  48. DISTFILES += qmlDir copy_qmltyes
  49. }