-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopen-pdf-presenter.pro
119 lines (101 loc) · 3.22 KB
/
open-pdf-presenter.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
# This file is part of open-pdf-presenter.
#
# open-pdf-presenter 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.
#
# open-pdf-presenter 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 open-pdf-presenter. If not, see <http://www.gnu.org/licenses/>.
TEMPLATE = app
TARGET = open-pdf-presenter
DEPENDPATH += . src ui src/events src/views
INCLUDEPATH += . src/events src/views
INCLUDEPATH += include
OBJECTS_DIR = build
MOC_DIR = $$OBJECTS_DIR
UI_DIR = $$OBJECTS_DIR
RCC_DIR = $$OBJECTS_DIR
CONFIG += qt debug
QT += xml xmlpatterns
# Support for Qt5
greaterThan(QT_MAJOR_VERSION, 4) {
message("Building with Qt5 is currently broken due to missing poppler-qt5")
QT += widgets
}
# Version
DEFINES += 'OPP_VERSION=\'\"0.3.0\"\''
# POPPLER
#INCLUDEPATH += /usr/include/poppler/qt4
#LIBS += -lpoppler-qt4
# Use pkg-config to get the correct include and link flags for poppler
CONFIG += link_pkgconfig
PKGCONFIG += poppler-qt4
unix {
message("Note: KDE power management has been moved into a plugin that must be built separately (kdepm subdirectory)")
}
# Input
HEADERS += src/events/event.h \
src/events/slide.h \
src/events/timer.h \
src/events/lifecycle.h \
src/views/console.h \
src/views/mainwindow.h \
src/views/mainslide.h \
src/views/view.h \
src/views/viewutils.h \
src/controllers.h \
src/presenter.h \
src/renderer.h \
src/parser.h \
src/powermanagement.h \
src/powermanagementplugin.h \
src/views/startscreen.h \
src/views/transitions.h
FORMS += \
ui/controlbar.ui \
ui/currentnextslide.ui \
ui/frame.ui \
ui/notes.ui \
ui/start-screen.ui
SOURCES += src/main.cpp \
src/events/event.cpp \
src/events/slide.cpp \
src/events/timer.cpp \
src/events/lifecycle.cpp \
src/views/console.cpp \
src/views/mainwindow.cpp \
src/views/mainslide.cpp \
src/views/viewutils.cpp \
src/controllers.cpp \
src/presenter.cpp \
src/renderer.cpp \
src/parser.cpp \
src/powermanagement.cpp \
src/views/startscreen.cpp \
src/views/transitions.cpp
RESOURCES += \
resources/controlbar/controlbar.qrc \
resources/presenterscreen/presenterscreen.qrc \
resources/notes/notes.qrc
# Suport for make install
unix {
isEmpty(PREFIX) {
PREFIX=/usr/local/
}
message("Install prefix is $$PREFIX")
isEmpty(PLUGIN_PATH) {
PLUGIN_PATH=$$PREFIX/lib/open-pdf-presenter/
}
message("Plugin path is $$PLUGIN_PATH")
DEFINES += 'OPP_PLUGIN_PATH=\'\"$$PLUGIN_PATH\"\''
desktop.files += open-pdf-presenter.desktop
desktop.path = $$PREFIX/share/applications/
target.path += $$PREFIX/bin/
INSTALLS += desktop target
}