applicationlauncher.pro 920 B

12345678910111213141516171819202122232425262728293031323334353637
  1. TEMPLATE = lib
  2. TARGET = ApplicationLauncher
  3. QT += qml quick
  4. CONFIG += qt plugin
  5. TARGET = $$qtLibraryTarget($$TARGET)
  6. uri = ApplicationLauncher
  7. # Input
  8. SOURCES += \
  9. applicationlauncher_plugin.cpp \
  10. applicationlauncher.cpp \
  11. application.cpp
  12. HEADERS += \
  13. applicationlauncher_plugin.h \
  14. applicationlauncher.h \
  15. application.h
  16. OTHER_FILES = qmldir
  17. !equals(_PRO_FILE_PWD_, $$OUT_PWD) {
  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. }