-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathProSlideShower.pro
executable file
·122 lines (105 loc) · 3.5 KB
/
ProSlideShower.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
# Copyright 2016 Pascal COMBES <pascom@orange.fr>
#
# This file is part of ProSlideShower.
#
# ProSlideShower is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ProSlideShower is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with ProSlideShower. If not, see <http://www.gnu.org/licenses/>
TEMPLATE = app
TARGET = proslideshower
greaterThan(QT_VERSION, 5.0.0) {
QT += widgets
}
SOURCES += \
main.cpp \
projdisplay.cpp \
presmodel.cpp \
projcontroller.cpp \
projmanager.cpp \
presstyle.cpp \
subdisplayhandler.cpp \
projcontrollerpane.cpp \
galleryview.cpp \
HEADERS += \
projdisplay.h \
presmodel.h \
projcontroller.h \
projmanager.h \
presstyle.h \
subdisplayhandler.h \
projcontrollerpane.h \
galleryview.h \
previewmodel.h \
RESOURCES += \
proslideshower.qrc \
TRANSLATIONS += \
proslideshower_en.ts \
proslideshower_fr.ts \
OTHER_FILES += \
main.dox \
README.md \
exists(ProSlideShower.local.pri) {
include(ProSlideShower.local.pri)
}
equals(SIMULATING_DESKTOPS, "yes") {
message("Building with simulated desktops ($${V_DESKTOPS}x$${H_DESKTOPS})")
SOURCES += tests/desktopsimulatorwidget.cpp
HEADERS += tests/desktopsimulatorwidget.h
DEFINES+="SIMULATING_DESKTOPS"
DEFINES+="SIMULATING_H_DESKTOPS=$$H_DESKTOPS"
DEFINES+="SIMULATING_V_DESKTOPS=$$V_DESKTOPS"
}
# Link against the right version of libPoppler
!isEmpty(LIB_POPPLER_INCLUDE_PATH): INCLUDEPATH += "$$LIB_POPPLER_INCLUDE_PATH"
!isEmpty(LIB_POPPLER_LIBRARY_PATH): LIBS += "-L$$LIB_POPPLER_LIBRARY_PATH"
greaterThan(QT_VERSION, 5.0.0) {
LIBS += -lpoppler-qt5
} else {
greaterThan(QT_VERSION, 4.0.0) {
LIBS += -lpoppler-qt4
} else {
warning("Qt version should be at least 4.0.0")
}
}
# The directory where to put MOC-generated files :
MOC_DIR = ./.moc
# Changing output directories :
win32 {
OBJECTS_DIR = ./.obj_win
CONFIG(debug, debug|release):DESTDIR = ./debug
else:DESTDIR = ./release
}
unix {
OBJECTS_DIR = ./.obj_unix
CONFIG(debug, debug|release):DESTDIR = ./debug
else:DESTDIR = ./release
}
# lupdate target :
isEmpty(QMAKE_LUPDATE) {
win32:QMAKE_LUPDATE = $$[QT_INSTALL_BINS]\lupdate.exe
else:QMAKE_LUPDATE = $$[QT_INSTALL_BINS]/lupdate
}
lupdate.depends += $$SOURCES
lupdate.depends += $$TRANSLATIONS
lupdate.commands = $$QMAKE_LUPDATE ProSlideShower.pro
QMAKE_EXTRA_TARGETS += lupdate
# lrelease target :
isEmpty(QMAKE_LRELEASE) {
win32:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\lrelease.exe
else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
}
lrelease.input = TRANSLATIONS
lrelease.output = ${QMAKE_FILE_BASE}.qm
lrelease.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_BASE}.qm
lrelease.CONFIG += no_link
QMAKE_EXTRA_COMPILERS += lrelease
POST_TARGETDEPS += compiler_lrelease_make_all