1################################################################################
2#  THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY  #
3#  Read the zproject/README.md for information about making permanent changes. #
4################################################################################
5
6TEMPLATE = lib
7
8CONFIG += plugin
9QT += qml quick
10
11TARGET = $$qtLibraryTarget(qml_czmq)
12uri = QmlCZMQ
13
14DESTDIR   = $$[QT_INSTALL_QML]/$$replace(uri, \., /)
15SRCDIR    = $$PWD/src
16BUILDDIR  = $$PWD/build/native
17
18android {
19  # Use a default value assuming the czmq project sits outside this one
20  isEmpty(CZMQ_ROOT) {
21    CZMQ_ROOT = $$clean_path($$PWD/../..)
22  }
23  !exists($$CZMQ_ROOT) {
24    error(The CZMQ_ROOT directory does not exist: $$CZMQ_ROOT)
25  }
26  # Build the czmq library for android unless it is already built
27  !system(bash $$CZMQ_ROOT/builds/android/build.sh) {
28    error(Failed to build the czmq library with $$CZMQ_ROOT/builds/android/build.sh)
29  }
30
31  VENDOR_PREFIX = $$CZMQ_ROOT/builds/android/prefix/$(TOOLCHAIN_NAME)
32  BUILDDIR  = $$PWD/build/$(TOOLCHAIN_NAME)
33  QMAKE_LIBDIR += $$VENDOR_PREFIX/lib
34  QMAKE_INCDIR += $$VENDOR_PREFIX/include
35}
36
37LIBS += -lczmq
38
39HEADERS += \
40  $$SRCDIR/qml_czmq_plugin.h \
41  $$SRCDIR/QmlZactor.h \
42  $$SRCDIR/QmlZargs.h \
43  $$SRCDIR/QmlZarmour.h \
44  $$SRCDIR/QmlZcert.h \
45  $$SRCDIR/QmlZcertstore.h \
46  $$SRCDIR/QmlZchunk.h \
47  $$SRCDIR/QmlZclock.h \
48  $$SRCDIR/QmlZconfig.h \
49  $$SRCDIR/QmlZdigest.h \
50  $$SRCDIR/QmlZdir.h \
51  $$SRCDIR/QmlZdirPatch.h \
52  $$SRCDIR/QmlZfile.h \
53  $$SRCDIR/QmlZframe.h \
54  $$SRCDIR/QmlZhash.h \
55  $$SRCDIR/QmlZhashx.h \
56  $$SRCDIR/QmlZiflist.h \
57  $$SRCDIR/QmlZlist.h \
58  $$SRCDIR/QmlZlistx.h \
59  $$SRCDIR/QmlZloop.h \
60  $$SRCDIR/QmlZmsg.h \
61  $$SRCDIR/QmlZpoller.h \
62  $$SRCDIR/QmlZproc.h \
63  $$SRCDIR/QmlZsock.h \
64  $$SRCDIR/QmlZstr.h \
65  $$SRCDIR/QmlZsys.h \
66  $$SRCDIR/QmlZtimerset.h \
67  $$SRCDIR/QmlZtrie.h \
68  $$SRCDIR/QmlZuuid.h \
69  $$SRCDIR/QmlZhttpClient.h \
70  $$SRCDIR/QmlZhttpServer.h \
71  $$SRCDIR/QmlZhttpServerOptions.h \
72  $$SRCDIR/QmlZhttpRequest.h \
73  $$SRCDIR/QmlZhttpResponse.h \
74  $$SRCDIR/QmlZosc.h
75
76SOURCES += \
77  $$SRCDIR/QmlZactor.cpp \
78  $$SRCDIR/QmlZargs.cpp \
79  $$SRCDIR/QmlZarmour.cpp \
80  $$SRCDIR/QmlZcert.cpp \
81  $$SRCDIR/QmlZcertstore.cpp \
82  $$SRCDIR/QmlZchunk.cpp \
83  $$SRCDIR/QmlZclock.cpp \
84  $$SRCDIR/QmlZconfig.cpp \
85  $$SRCDIR/QmlZdigest.cpp \
86  $$SRCDIR/QmlZdir.cpp \
87  $$SRCDIR/QmlZdirPatch.cpp \
88  $$SRCDIR/QmlZfile.cpp \
89  $$SRCDIR/QmlZframe.cpp \
90  $$SRCDIR/QmlZhash.cpp \
91  $$SRCDIR/QmlZhashx.cpp \
92  $$SRCDIR/QmlZiflist.cpp \
93  $$SRCDIR/QmlZlist.cpp \
94  $$SRCDIR/QmlZlistx.cpp \
95  $$SRCDIR/QmlZloop.cpp \
96  $$SRCDIR/QmlZmsg.cpp \
97  $$SRCDIR/QmlZpoller.cpp \
98  $$SRCDIR/QmlZproc.cpp \
99  $$SRCDIR/QmlZsock.cpp \
100  $$SRCDIR/QmlZstr.cpp \
101  $$SRCDIR/QmlZsys.cpp \
102  $$SRCDIR/QmlZtimerset.cpp \
103  $$SRCDIR/QmlZtrie.cpp \
104  $$SRCDIR/QmlZuuid.cpp \
105  $$SRCDIR/QmlZhttpClient.cpp \
106  $$SRCDIR/QmlZhttpServer.cpp \
107  $$SRCDIR/QmlZhttpServerOptions.cpp \
108  $$SRCDIR/QmlZhttpRequest.cpp \
109  $$SRCDIR/QmlZhttpResponse.cpp \
110  $$SRCDIR/QmlZosc.cpp
111
112OBJECTS_DIR = $$BUILDDIR/.obj
113MOC_DIR     = $$BUILDDIR/.moc
114RCC_DIR     = $$BUILDDIR/.rcc
115UI_DIR      = $$BUILDDIR/.ui
116
117target.path  = $$DESTDIR
118qmldir.files = $$PWD/qmldir
119qmldir.path  = $$DESTDIR
120
121OTHER_FILES += $$SRCDIR/qmldir \
122               $$SRCDIR/qml/*
123#*/
124
125INSTALLS    += target qmldir
126
127# Copy the qmldir file to the same folder as the plugin binary
128QMAKE_POST_LINK += \
129  $$QMAKE_COPY $$replace($$list($$quote($$SRCDIR/qmldir) $$DESTDIR), /, $$QMAKE_DIR_SEP)
130
131# Copy the dependency shared libraries to the plugin folder (on android only)
132android {
133  QMAKE_POST_LINK += \
134  && $$QMAKE_COPY $$replace($$list($$quote($$VENDOR_PREFIX/lib/*.so)  $$DESTDIR), /, $$QMAKE_DIR_SEP)
135}
136#*/
137
138# Copy the qml implementation directory to the plugin folder
139copyqml.commands = $(COPY_DIR) $$SRCDIR/qml $$DESTDIR
140first.depends = $(first) copyqml
141export(first.depends)
142export(copyqml.commands)
143QMAKE_EXTRA_TARGETS += first copyqml
144
145################################################################################
146#  THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY  #
147#  Read the zproject/README.md for information about making permanent changes. #
148################################################################################
149