-
Notifications
You must be signed in to change notification settings - Fork 1
/
qmlspec.pro
41 lines (31 loc) · 989 Bytes
/
qmlspec.pro
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
TEMPLATE = lib
CONFIG += plugin
QT += qml quick
TARGET = $$qtLibraryTarget(QmlSpec)
uri = QmlSpec
DESTDIR = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)
SRCDIR = $$PWD/src
BUILDDIR = $$PWD/build
android {
VENDORDIR = $$PWD/vendor/prefix/$(TOOLCHAIN_NAME)
BUILDDIR = $$PWD/build/$(TOOLCHAIN_NAME)
QMAKE_LIBDIR += $$VENDORDIR/lib
QMAKE_INCDIR += $$VENDORDIR/include
}
HEADERS += $$SRCDIR/QmlSpec.h \
$$SRCDIR/qtest.h \
$$SRCDIR/qtest_attached.h
SOURCES += $$SRCDIR/qtest.cpp
OBJECTS_DIR = $$BUILDDIR/.obj
MOC_DIR = $$BUILDDIR/.moc
RCC_DIR = $$BUILDDIR/.rcc
UI_DIR = $$BUILDDIR/.ui
qmldir.files = $$PWD/qmldir
qmldir.path = $$DESTDIR
# Copy the qmldir and qml implementation directory
copyqml.commands = $(COPY_DIR) $$SRCDIR/qml $$DESTDIR/ && \
$$QMAKE_COPY $$SRCDIR/qmldir $$DESTDIR/
first.depends = $(first) copyqml
export(first.depends)
export(copyqml.commands)
QMAKE_EXTRA_TARGETS += first copyqml