blob: 1ff92afdf11abf8586a578b7df7caf7b3fba226d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
TEMPLATE = lib
TARGET = qmldatasources
QT += qml quick sql
CONFIG += qt plugin
# Add a long padded rpath, so the installer can replace it with a relative rpath
QMAKE_RPATHDIR += "$$INSTALL_PREFIX/long_padding/long_padding/long_padding/long_padding/long_padding\
long_padding/long_padding/long_padding/long_padding/long_padding/long_padding/"
TARGET = $$qtLibraryTarget($$TARGET)
uri = com.pelagicore.datasource
# Input
SOURCES += \
sqlquerydatasource.cpp \
plugin.cpp \
sqlquerymodel.cpp \
sqltablemodel.cpp \
sqltabledatasource.cpp
HEADERS += \
sqlquerydatasource.h \
plugin.h \
sqlquerymodel.h \
sqltablemodel.h \
sqltabledatasource.h
OTHER_FILES = qmldir
isEmpty(INSTALL_PREFIX) {
INSTALL_PREFIX=/opt
}
!equals(_PRO_FILE_PWD_, $$OUT_PWD) {
copy_qmldir.target = $$replace(OUT_PWD, /, $$QMAKE_DIR_SEP)$${QMAKE_DIR_SEP}qmldir
copy_qmldir.depends = $$replace(_PRO_FILE_PWD_, /, $$QMAKE_DIR_SEP)$${QMAKE_DIR_SEP}qmldir
copy_qmldir.commands = $(COPY_FILE) \"$$copy_qmldir.depends\" \"$$copy_qmldir.target\"
QMAKE_EXTRA_TARGETS += copy_qmldir
PRE_TARGETDEPS += $$copy_qmldir.target
}
qmldir.files = qmldir
installPath = $$INSTALL_PREFIX/neptune/imports/shared/$$replace(uri, \\., /)
qmldir.path = $$installPath
target.path = $$installPath
INSTALLS += target qmldir
|