-
Notifications
You must be signed in to change notification settings - Fork 5
/
PDFManager.pro
135 lines (111 loc) · 4.1 KB
/
PDFManager.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
#-------------------------------------------------
#
# Project created by QtCreator 2019-09-03T16:35:12
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = PDFManager
TEMPLATE = app
# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
CONFIG += c++11 dynamic # add static if you built mupdf library statically (default behavior of the mupdf provided MSVC project)
INCLUDEPATH = include
SOURCES += \
src/aboutdialog.cpp \
src/customdraglistview.cpp \
src/customdragtreeview.cpp \
src/customselectionqlabel.cpp \
src/drageventfilter.cpp \
src/htmldelegate.cpp \
src/listnavigationeventfilter.cpp \
src/main.cpp \
src/mainwindow.cpp \
src/openeddocumentstreemodel.cpp \
src/pagegridwidget.cpp \
src/pdfimagepagespecificator.cpp \
src/pdfmultiplepagesspecificator.cpp \
src/pdfnewdocument.cpp \
src/pdfpagecontinuousintervalspecificator.cpp \
src/pdfpixmappainter.cpp \
src/pdfrangesitemmodel.cpp \
src/pdfrenderedpage.cpp \
src/pdfsinglepagespecificator.cpp \
src/pdfutil.cpp
HEADERS += \
include/aboutdialog.h \
include/customdraglistview.h \
include/customdragtreeview.h \
include/customselectionqlabel.h \
include/delayedaction.h \
include/drageventfilter.h \
include/hintwidget.h \
include/htmldelegate.h \
include/listnavigationeventfilter.h \
include/mainwindow.h \
include/openeddocumentstreemodel.h \
include/overlay.h \
include/pagegridwidget.h \
include/pdfexception.h \
include/pdfimagepagespecificator.h \
include/pdfmultiplepagesspecificator.h \
include/pdfnewdocument.h \
include/pdfpagecontinuousintervalspecificator.h \
include/pdfpagerangespecificator.h \
include/pdfpixmappainter.h \
include/pdfrangesitemmodel.h \
include/pdfrenderedpage.h \
include/pdfsinglepagespecificator.h \
include/pdfutil.h \
include/progsettings.h \
include/qtooltipper.h \
include/rawpointer.h \
include/version.h
FORMS += \
src/aboutdialog.ui \
src/mainwindow.ui
win32 {
MUPDFPATH = C:\mupdf-1.16.0-source #Edit this path with the path to your build mupdf library
INCLUDEPATH += $$MUPDFPATH\include
!contains(QMAKE_TARGET.arch, x86_64) {
message("x86 build")
## Windows x86 (32bit) specific build here
LIBS += -L$$ßMUPDFPATH\platform\win32\Release # Edit this path to point to your win32 build directory
} else {
message("x86_64 build")
## Windows x64 (64bit) specific build here
LIBS += -L$$MUPDFPATH\platform\win32\x64\Release # Edit this path to point to your win64 build directory
}
LIBS += -llibmupdf
} else:unix:!android {
INCLUDEPATH += /usr/local/include
LIBS += -L/usr/local/lib -lmupdf -lmupdf-third
} else:unix:android {
MUPDFPATH = C:\mupdf-1.16.0-source #Edit this path with the path to your build mupdf library
INCLUDEPATH += $$MUPDFPATH\include
LIBS += -L$$MUPDFPATH\build\release
LIBS += -lmupdf -lmupdf-third
}
macx {
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.12
ICON = appicon.icns
}
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
DISTFILES += \
README.md \
resources.rc
RESOURCES += \
resources.qrc
win32: {
RC_FILE = resources.rc
}