sqldatabase.pro 849 B

123456789101112131415161718192021222324252627282930313233343536
  1. TEMPLATE = lib
  2. TARGET = SqlDatabase
  3. QT += sql qml
  4. CONFIG += qt plugin c++11
  5. TARGET = $$qtLibraryTarget($$TARGET)
  6. uri = gfa.plugins.qml
  7. # Input
  8. SOURCES += \
  9. plugin.cpp \
  10. sqldatabase.cpp
  11. HEADERS += \
  12. plugin.h \
  13. sqldatabase.h
  14. DISTFILES = qmldir
  15. DISTFILES += gfa.plugins.qml.qmltypes
  16. !equals(_PRO_FILE_PWD_, $$OUT_PWD)
  17. {
  18. copy_qmldir.target = $$OUT_PWD/qmldir
  19. copy_qmldir.depends = $$_PRO_FILE_PWD_/qmldir
  20. copy_qmldir.commands = $(COPY_FILE) \"$$replace(copy_qmldir.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_qmldir.target, /, $$QMAKE_DIR_SEP)\"
  21. QMAKE_EXTRA_TARGETS += copy_qmldir
  22. PRE_TARGETDEPS += $$copy_qmldir.target
  23. }
  24. qmldir.files = qmldir
  25. unix {
  26. installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)
  27. qmldir.path = $$installPath
  28. target.path = $$installPath
  29. INSTALLS += target qmldir
  30. }