-
Notifications
You must be signed in to change notification settings - Fork 25
/
telegramqml.pro
86 lines (71 loc) · 2.47 KB
/
telegramqml.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
TEMPLATE = lib
TARGET = telegramqml
DEFINES += TELEGRAMQML_LIBRARY
DEFINES += TELEGRAMQML_QML_PLUGIN ASEMAN_STATIC_BUILD
CONFIG += qt no_keywords c++11
uri = TelegramQml
win32 {
QT += winextras
} else {
macx {
QT += macextras
}
}
include(telegramqml.pri)
linux {
contains(QT_ARCH, x86_64) {
LIB_PATH = x86_64-linux-gnu
} else:contains(QT_ARCH, arm) {
LIB_PATH = arm-linux-gnueabihf
} else {
LIB_PATH = i386-linux-gnu
}
contains(DEFINES, UBUNTU_PHONE) {
CONFIG += link_pkgconfig
PKGCONFIG += libthumbnailer-qt
}
}
contains(BUILD_MODE,lib) {
isEmpty(PREFIX) {
isEmpty(INSTALL_HEADERS_PREFIX): INSTALL_HEADERS_PREFIX = $$[QT_INSTALL_HEADERS]
isEmpty(INSTALL_LIBS_PREFIX): INSTALL_LIBS_PREFIX = $$[QT_INSTALL_LIBS]
} else {
isEmpty(INSTALL_HEADERS_PREFIX): INSTALL_HEADERS_PREFIX = $$PREFIX/include
isEmpty(INSTALL_LIBS_PREFIX): INSTALL_LIBS_PREFIX = $$PREFIX/lib/$$LIB_PATH
}
DEFINES += BUILD_MODE_LIB
!contains(CONFIG, no_install) {
INSTALL_PREFIX = $$INSTALL_HEADERS_PREFIX/telegramqml
INSTALL_HEADERS = $$HEADERS
include(qmake/headerinstall.pri)
target = $$TARGET
target.path = $$INSTALL_LIBS_PREFIX
INSTALLS += target
}
} else {
CONFIG += plugin
DEFINES += BUILD_MODE_PLUGIN
DESTDIR = TelegramQml
TARGET = $$qtLibraryTarget($$TARGET)
DISTFILES = qmldir \
plugins.qmltypes
!equals(_PRO_FILE_PWD_, $$OUT_PWD) {
copy_qmldir.target = $$OUT_PWD/$$DESTDIR/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)\"
copy_qmltypes.target = $$OUT_PWD/$$DESTDIR/plugins.qmltypes
copy_qmltypes.depends = $$_PRO_FILE_PWD_/plugins.qmltypes
copy_qmltypes.commands = $(COPY_FILE) \"$$replace(copy_qmltypes.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_qmltypes.target, /, $$QMAKE_DIR_SEP)\"
QMAKE_EXTRA_TARGETS += copy_qmldir copy_qmltypes
PRE_TARGETDEPS += $$copy_qmldir.target $$copy_qmltypes.target
}
qmldir.files = qmldir plugins.qmltypes
unix {
!contains(CONFIG, no_install) {
installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)
qmldir.path = $$installPath
target.path = $$installPath
INSTALLS += target qmldir
}
}
}