sqldatabase.pro 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. plugins.qmltypes
  16. DISTFILES += gfa.plugins.qml.qmltypes
  17. !equals(_PRO_FILE_PWD_, $$OUT_PWD)
  18. {
  19. copy_qmldir.target = $$OUT_PWD/qmldir
  20. copy_qmldir.depends = $$_PRO_FILE_PWD_/qmldir
  21. copy_qmldir.commands = $(COPY_FILE) \"$$replace(copy_qmldir.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_qmldir.target, /, $$QMAKE_DIR_SEP)\"
  22. QMAKE_EXTRA_TARGETS += copy_qmldir
  23. PRE_TARGETDEPS += $$copy_qmldir.target
  24. }
  25. qmldir.files = qmldir \
  26. plugins.qmltypes
  27. linux-buildroot-g++ {
  28. installPath = /usr/qml/$$replace(uri, \\., /)
  29. qmldir.path = $$installPath
  30. target.path = $$installPath
  31. INSTALLS += target qmldir
  32. } else {
  33. installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)
  34. qmldir.path = $$installPath
  35. target.path = $$installPath
  36. INSTALLS += target qmldir
  37. }