forked from witwall/diffpdf
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdiffpdf.pro
79 lines (79 loc) · 2.71 KB
/
diffpdf.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
# NOTES.txt
# CHANGES
# README
# help.html
# diffpdf.1
#DEFINES += DEBUG
HEADERS += mainwindow.hpp
SOURCES += mainwindow.cpp
HEADERS += textitem.hpp
SOURCES += textitem.cpp
HEADERS += aboutform.hpp
SOURCES += aboutform.cpp
HEADERS += optionsform.hpp
SOURCES += optionsform.cpp
HEADERS += helpform.hpp
SOURCES += helpform.cpp
HEADERS += saveform.hpp
SOURCES += saveform.cpp
HEADERS += generic.hpp
SOURCES += generic.cpp
HEADERS += sequence_matcher.hpp
SOURCES += sequence_matcher.cpp
SOURCES += main.cpp
HEADERS += lineedit.hpp
SOURCES += lineedit.cpp
HEADERS += label.hpp
SOURCES += label.cpp
RESOURCES += resources.qrc
TRANSLATIONS += diffpdf_cz.ts
TRANSLATIONS += diffpdf_fr.ts
TRANSLATIONS += diffpdf_de.ts
TRANSLATIONS += diffpdf_es.ts
CODECFORTR = UTF-8
LIBS += -lpoppler-qt4
win32 {
CONFIG += release
}
exists($(HOME)/opt/poppler024/) {
message(Using locally built Poppler library)
INCLUDEPATH += $(HOME)/opt/poppler024/include/poppler/cpp
INCLUDEPATH += $(HOME)/opt/poppler024/include/poppler/qt4
LIBS += -Wl,-rpath -Wl,$(HOME)/opt/poppler024/lib -L$(HOME)/opt/poppler024/lib
} else {
exists(/usr/local/Cellar/) {
message(Using homebrew Poppler Library on OSX)
message(It should be done automatically if poppler is installed with cmd: 'brew install poppler --with-qt')
message(So nothing to do here)
# way from https://gist.github.com/Yann-R/8268157
# LIBS += -L$$quote(HOMEBREW_PREFIX/lib) -lpoppler-qt4
# INCLUDEPATH += $$quote(HOMEBREW_PREFIX/include/poppler/cpp)
# INCLUDEPATH += $$quote(HOMEBREW_PREFIX/include/poppler/qt4)
}
exists(/poppler_lib) {
message(Using locally built Poppler library on Windows)
INCLUDEPATH += /c/poppler_lib/include/poppler/cpp
INCLUDEPATH += /c/poppler_lib/include/poppler/qt4
LIBS += -Wl,-rpath -Wl,/c/poppler_lib/bin -Wl,-L/c/poppler_lib/bin
} else {
exists(/usr/include/poppler/qt4) {
INCLUDEPATH += /usr/include/poppler/cpp
INCLUDEPATH += /usr/include/poppler/qt4
} else {
INCLUDEPATH += /usr/local/include/poppler/cpp
INCLUDEPATH += /usr/local/include/poppler/qt4
}
}
}
#exists($(HOME)/opt/podofo09/) {
# message(Using locally built PoDoFo library)
# INCLUDEPATH += $(HOME)/opt/podofo09/include/poppler/cpp
# INCLUDEPATH += $(HOME)/opt/podofo09/include/poppler/qt4
# LIBS += -Wl,-rpath -Wl,$(HOME)/opt/podofo09/lib64 -Wl,-L$(HOME)/opt/podofo09/lib64
#} else {
# exists(/usr/include/podofo) {
# INCLUDEPATH += /usr/include/podofo
# } else {
# INCLUDEPATH += /usr/local/include/podofo
# }
#}