Skip to content

Commit b17aab9

Browse files
committedMar 16, 2019
move lib to subfolder
1 parent efa6e8d commit b17aab9

20 files changed

+52
-40
lines changed
 

‎cpp-qt-live-coding.pro

+7-39
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,11 @@
1-
TEMPLATE = lib
2-
TARGET = com_machinekoder_live_plugin
3-
QT += qml quick
4-
CONFIG += plugin c++11
1+
TEMPLATE = subdirs
52

6-
TARGET = $$qtLibraryTarget($$TARGET)
7-
uri = com.machinekoder.live
3+
SUBDIRS += 3rdparty lib example
84

9-
# Input
10-
SOURCES += \
11-
filewatcher.cpp \
12-
applicationhelpers.cpp \
13-
projectbrowser.cpp \
14-
cpp_qt_live_coding_plugin.cpp \
15-
livewindow.cpp
5+
lib.depends = 3rdparty
6+
example.depends = lib
167

17-
HEADERS += \
18-
filewatcher.h \
19-
applicationhelpers.h \
20-
projectbrowser.h \
21-
cpp_qt_live_coding_plugin.h \
22-
livewindow.h
23-
24-
DISTFILES = qmldir
25-
26-
!equals(_PRO_FILE_PWD_, $$OUT_PWD) {
27-
copy_qmldir.target = $$OUT_PWD/qmldir
28-
copy_qmldir.depends = $$_PRO_FILE_PWD_/qmldir
29-
copy_qmldir.commands = $(COPY_FILE) \"$$replace(copy_qmldir.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_qmldir.target, /, $$QMAKE_DIR_SEP)\"
30-
QMAKE_EXTRA_TARGETS += copy_qmldir
31-
PRE_TARGETDEPS += $$copy_qmldir.target
8+
CONFIG(debug, debug|release) {
9+
SUBDIRS += tests
10+
tests.depends = lib
3211
}
33-
34-
qmldir.files = qmldir
35-
unix {
36-
installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)
37-
qmldir.path = $$installPath
38-
target.path = $$installPath
39-
INSTALLS += target qmldir
40-
}
41-
42-
RESOURCES += \
43-
qml.qrc

‎example/example.pro

+2
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ QML_DESIGNER_IMPORT_PATH =
2727
qnx: target.path = /tmp/$${TARGET}/bin
2828
else: unix:!android: target.path = /opt/$${TARGET}/bin
2929
!isEmpty(target.path): INSTALLS += target
30+
31+
INSTALLS =

‎example/qml.qrc

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<file>main.qml</file>
44
<file>Page1Form.qml</file>
55
<file>Page2Form.ui.qml</file>
6-
<file>main.qml</file>
76
<file>qtquickcontrols2.conf</file>
87
<file>live.qml</file>
98
</qresource>
File renamed without changes.

‎LICENSE renamed to ‎lib/LICENSE

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

‎lib/lib.pro

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
TEMPLATE = lib
2+
TARGET = com_machinekoder_live_plugin
3+
QT += qml quick
4+
CONFIG += plugin c++11
5+
6+
TARGET = $$qtLibraryTarget($$TARGET)
7+
uri = com.machinekoder.live
8+
9+
# Input
10+
SOURCES += \
11+
filewatcher.cpp \
12+
applicationhelpers.cpp \
13+
projectbrowser.cpp \
14+
cpp_qt_live_coding_plugin.cpp \
15+
livewindow.cpp
16+
17+
HEADERS += \
18+
filewatcher.h \
19+
applicationhelpers.h \
20+
projectbrowser.h \
21+
cpp_qt_live_coding_plugin.h \
22+
livewindow.h
23+
24+
DISTFILES = qmldir
25+
26+
!equals(_PRO_FILE_PWD_, $$OUT_PWD) {
27+
copy_qmldir.target = $$OUT_PWD/qmldir
28+
copy_qmldir.depends = $$_PRO_FILE_PWD_/qmldir
29+
copy_qmldir.commands = $(COPY_FILE) \"$$replace(copy_qmldir.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_qmldir.target, /, $$QMAKE_DIR_SEP)\"
30+
QMAKE_EXTRA_TARGETS += copy_qmldir
31+
PRE_TARGETDEPS += $$copy_qmldir.target
32+
}
33+
34+
qmldir.files = qmldir
35+
unix {
36+
installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)
37+
qmldir.path = $$installPath
38+
target.path = $$installPath
39+
INSTALLS += target qmldir
40+
}
41+
42+
RESOURCES += \
43+
qml.qrc
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

‎qml.qrc renamed to ‎lib/qml.qrc

File renamed without changes.

‎qmldir renamed to ‎lib/qmldir

File renamed without changes.

0 commit comments

Comments
 (0)
Please sign in to comment.