-
Notifications
You must be signed in to change notification settings - Fork 3
/
podofobrowser.pro
65 lines (58 loc) · 1.82 KB
/
podofobrowser.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
# Build Notes:
# OS X requires macports and a local build of the svn trunk of the podofo port.
# The podofo that comes with macports is broken and crashes.
# If you get "openssl development package not found" error from qmake, it's because
# qmake can't find /opt/local/bin/pkgconfig. Add /opt/local/bin to the build PATH
# within Qt Creator's project setup.
# To build a local version of PODOFO:
# cmake -G Ninja ~/wc/podofo -DFREETYPE_INCLUDE_DIR=/opt/local/include/freetype2 -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_INSTALL_PREFIX=~/wc/podofo-install
# And pass WITH_PODOFO = ... to qmake
TEMPLATE = app
CONFIG += c++11
QT += widgets
DEPENDPATH += . src
INCLUDEPATH += . src
exists($$WITH_PODOFO) {
LIBS += -L$$WITH_PODOFO/lib
INCLUDEPATH += $$WITH_PODOFO/include
}
macx {
exists(/opt/local/bin/port) {
LIBS += -L/opt/local/lib
INCLUDEPATH += /opt/local/include
}
LIBS += -lpodofo -ljpeg
CONFIG += link_pkgconfig
PKGCONFIG += openssl freetype2 libidn fontconfig zlib
lessThan(QT_MINOR_VERSION, 8) {
QMAKE_MAC_SDK = macosx10.12
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.12
}
}
FORMS = \
src/podofoaboutdlg.ui \
src/podofobrowserbase.ui \
src/podofofinddlg.ui \
src/podofogotodlg.ui \
src/podofogotopagedlg.ui \
src/podofoinfodlg.ui \
src/podoforeplacedlg.ui
HEADERS += \
src/backgroundloader.h \
src/pdfobjectmodel.h \
src/podofobrowser.h \
src/podofoinfodlg.h \
src/podofoutil.h \
src/hexwidget/QHexView.h
SOURCES += \
src/main.cpp \
src/backgroundloader.cpp \
src/pdfobjectmodel.cpp \
src/podofobrowser.cpp \
src/podofoinfodlg.cpp \
src/podofoutil.cpp \
src/hexwidget/QHexView.cpp
RESOURCES += \
src/podofobrowserrsrc.qrc
OTHER_FILES += \
README