forked from aportale/posterazor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathposterazor.pro
More file actions
92 lines (64 loc) · 1.71 KB
/
Copy pathposterazor.pro
File metadata and controls
92 lines (64 loc) · 1.71 KB
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
TARGET = PosteRazor
QT += widgets
CONFIG += c++11 release
win32:DEFINES -= \
UNICODE
macx:QMAKE_INFO_PLIST = \
Info.plist
macx:ICON = \
src/posterazor.icns
macx:CONFIG += \
x86 ppc
macx:QMAKE_MAC_SDK = \
/Developer/SDKs/MacOSX10.4u.sdk
macx:QMAKE_MACOSX_DEPLOYMENT_TARGET = \
10.3
RC_FILE += \
src/posterazor.rc
# Uncomment the following line in order to build PosteRazor with FreeImage
#DEFINES += FREEIMAGE_LIB
# Poppler-Qt5 is the library we require to be able to process PDF files as input
# Comment the following line in order to build PosteRazor without Poppler-Qt5
exists( /usr/include/poppler/qt5/poppler-qt5.h ) {
DEFINES += POPPLER_QT5_LIB
}
DEFINES += QT_NO_CAST_FROM_ASCII
SOURCES += \
src/main.cpp
contains (DEFINES, POPPLER_QT5_LIB) {
unix:INCLUDEPATH += \
/usr/include/poppler/qt5
unix:LIBS += \
-lpoppler-qt5
}
contains (DEFINES, FREEIMAGE_LIB) {
SOURCES += \
src/imageloaderfreeimage.cpp
HEADERS += \
src/imageloaderfreeimage.h
win32:INCLUDEPATH += \
src/thirdparty/FreeImage/Dist
win32:LIBS += \
src/thirdparty/FreeImage/Dist/FreeImage.lib
macx: INCLUDEPATH += \
/usr/local/include
unix:LIBS += \
-lfreeimage
}
include (src/posterazor.pri)
unix {
isEmpty(PREFIX) {
PREFIX = /usr
}
target.path = $$PREFIX/bin
shortcutfiles.files = resources/posterazor.desktop
shortcutfiles.path = $$PREFIX/share/applications/
data.files += resources/posterazor.png
data.path = $$PREFIX/share/pixmaps/
INSTALLS += shortcutfiles
INSTALLS += data
}
INSTALLS += target
DISTFILES += \
resources/posterazor.desktop \
resources/posterazor.png