2010-03-19 13:52:16 +01:00
|
|
|
TEMPLATE = lib
|
2010-09-28 11:55:30 +02:00
|
|
|
TARGET = %ProjectName%
|
2010-03-19 13:52:16 +01:00
|
|
|
QT += declarative
|
|
|
|
|
CONFIG += qt plugin
|
|
|
|
|
|
|
|
|
|
TARGET = $$qtLibraryTarget($$TARGET)
|
2011-02-10 15:16:55 +01:00
|
|
|
uri = %Uri%
|
2010-03-19 13:52:16 +01:00
|
|
|
|
|
|
|
|
# Input
|
|
|
|
|
SOURCES += \
|
2010-09-28 11:55:30 +02:00
|
|
|
%ProjectName:l%_plugin.%CppSourceSuffix% \
|
2010-09-17 16:53:33 +02:00
|
|
|
%ObjectName:l%.%CppSourceSuffix%
|
2010-03-19 13:52:16 +01:00
|
|
|
|
|
|
|
|
HEADERS += \
|
2010-09-28 11:55:30 +02:00
|
|
|
%ProjectName:l%_plugin.%CppHeaderSuffix% \
|
2010-09-17 16:53:33 +02:00
|
|
|
%ObjectName:l%.%CppHeaderSuffix%
|
2010-09-28 11:55:30 +02:00
|
|
|
|
|
|
|
|
OTHER_FILES = qmldir
|
2010-09-28 12:49:48 +02:00
|
|
|
|
2010-11-08 15:14:39 +01:00
|
|
|
!equals(_PRO_FILE_PWD_, $$OUT_PWD) {
|
|
|
|
|
copy_qmldir.target = $$OUT_PWD/qmldir
|
|
|
|
|
copy_qmldir.depends = $$_PRO_FILE_PWD_/qmldir
|
|
|
|
|
copy_qmldir.commands = $(COPY_FILE) \"$$replace(copy_qmldir.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_qmldir.target, /, $$QMAKE_DIR_SEP)\"
|
|
|
|
|
QMAKE_EXTRA_TARGETS += copy_qmldir
|
|
|
|
|
PRE_TARGETDEPS += $$copy_qmldir.target
|
|
|
|
|
}
|
2011-02-10 15:16:55 +01:00
|
|
|
|
|
|
|
|
qmldir.files = qmldir
|
2012-08-22 13:27:25 +02:00
|
|
|
unix {
|
2011-07-20 12:38:03 +02:00
|
|
|
maemo5 | !isEmpty(MEEGO_VERSION_MAJOR) {
|
|
|
|
|
installPath = /usr/lib/qt4/imports/$$replace(uri, \\., /)
|
|
|
|
|
} else {
|
|
|
|
|
installPath = $$[QT_INSTALL_IMPORTS]/$$replace(uri, \\., /)
|
|
|
|
|
}
|
2011-02-10 15:16:55 +01:00
|
|
|
qmldir.path = $$installPath
|
|
|
|
|
target.path = $$installPath
|
|
|
|
|
INSTALLS += target qmldir
|
|
|
|
|
}
|