This repository has been archived by the owner on Sep 24, 2019. It is now read-only.
forked from blikoon/QtQREncoder
-
Notifications
You must be signed in to change notification settings - Fork 4
/
QtQREncoder.pro
64 lines (51 loc) · 1.46 KB
/
QtQREncoder.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
include(QtQREncoder.pri)
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
INCLUDEPATH += $$PWD
TEMPLATE = lib
TARGET = qrencode
QT += core gui
DEFINES += QRENCODER_BUILD
CONFIG += $${QRENCODER_LIBRARY_TYPE}
VERSION = $${QRENCODER_VERSION}
win32:DESTDIR = $$OUT_PWD
macx:QMAKE_LFLAGS_SONAME = -Wl,-install_name,@rpath/
#Msvc wasn't finding the "config.h" file in the project dir
#and this includepath takes care of that.
SOURCES += widget.cpp \
qrencode/bitstream.c \
qrencode/mask.c \
qrencode/mmask.c \
qrencode/mqrspec.c \
qrencode/qrencode.c \
qrencode/qrinput.c \
qrencode/qrspec.c \
qrencode/rscode.c \
qrencode/split.c
HEADERS += widget.h \
qrencode/bitstream.h \
qrencode/mask.h \
qrencode/mmask.h \
qrencode/mqrspec.h \
qrencode/qrencode.h \
qrencode/qrencode_inner.h \
qrencode/qrinput.h \
qrencode/qrspec.h \
qrencode/rscode.h \
qrencode/split.h \
FORMS += widget.ui
# install
headers.files = $${INSTALL_HEADERS}
headers.path = $${PREFIX}/include/qrencode
target.path = $${PREFIX}/$${LIBDIR}
INSTALLS += headers target
# pkg-config support
CONFIG += create_pc create_prl no_install_prl
QMAKE_PKGCONFIG_DESTDIR = pkgconfig
QMAKE_PKGCONFIG_LIBDIR = $$target.path
QMAKE_PKGCONFIG_INCDIR = $$headers.path
equals(QRENCODER_LIBRARY_TYPE, staticlib) {
QMAKE_PKGCONFIG_CFLAGS = -DQRENCODER_STATIC
} else {
QMAKE_PKGCONFIG_CFLAGS = -DQRENCODER_SHARED
}
unix:QMAKE_CLEAN += -r pkgconfig lib$${TARGET}.prl