applicationlauncher.pro 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. applicationlauncher.qmltypes
  26. linux-buildroot-g++ {
  27. installPath = /usr/qml/$$replace(uri, \\., /)
  28. qmldir.path = $$installPath
  29. target.path = $$installPath
  30. INSTALLS += target qmldir
  31. } else {
  32. installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)
  33. qmldir.path = $$installPath
  34. target.path = $$installPath
  35. INSTALLS += target qmldir
  36. }
  37. DISTFILES += \
  38. applicationlauncher.qmltypes