/
libmythui.pro
205 lines (176 loc) · 6.89 KB
/
libmythui.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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
include ( ../../settings.pro )
QT += xml sql network widgets
using_qtwebkit {
QT += webkitwidgets
android: QT += androidextras
}
TEMPLATE = lib
TARGET = mythui-$$LIBVERSION
CONFIG += thread dll
target.path = $${LIBDIR}
INSTALLS = target
INCLUDEPATH += ../libmythbase
INCLUDEPATH += ../.. ../
INCLUDEPATH += ../.. ../../external/FFmpeg
LIBS += -L../libmythbase -lmythbase-$$LIBVERSION
QMAKE_CLEAN += $(TARGET) $(TARGETA) $(TARGETD) $(TARGET0) $(TARGET1) $(TARGET2)
# Input
HEADERS = mythmainwindow.h mythpainter.h mythimage.h mythrect.h
HEADERS += myththemebase.h mythpainter_qimage.h
HEADERS += mythpainter_qt.h mythmainwindow_internal.h mythuihelper.h
HEADERS += mythscreenstack.h mythgesture.h mythuitype.h mythscreentype.h
HEADERS += mythuiimage.h mythuitext.h mythuistatetype.h xmlparsebase.h
HEADERS += mythuibutton.h myththemedmenu.h mythdialogbox.h
HEADERS += mythuiclock.h mythuitextedit.h mythprogressdialog.h mythuispinbox.h
HEADERS += mythuicheckbox.h mythuibuttonlist.h mythuigroup.h
HEADERS += mythuiprogressbar.h mythuifilebrowser.h
HEADERS += screensaver.h screensaver-null.h x11colors.h
HEADERS += themeinfo.h mythxdisplay.h DisplayRes.h DisplayResScreen.h
HEADERS += mythgenerictree.h mythuibuttontree.h mythuiutils.h
HEADERS += mythvirtualkeyboard.h mythuishape.h mythuiguidegrid.h
HEADERS += mythrender_base.h mythfontmanager.h mythuieditbar.h
HEADERS += mythdisplay.h mythuivideo.h mythudplistener.h
HEADERS += mythuiexp.h mythuisimpletext.h mythuistatetracker.h
HEADERS += mythuianimation.h mythuiscrollbar.h
HEADERS += mythnotificationcenter.h mythnotificationcenter_private.h
HEADERS += mythuicomposite.h mythnotification.h mythuidefines.h
SOURCES = mythmainwindow.cpp mythpainter.cpp mythimage.cpp mythrect.cpp
SOURCES += myththemebase.cpp mythpainter_qimage.cpp
SOURCES += mythpainter_qt.cpp xmlparsebase.cpp mythuihelper.cpp
SOURCES += mythscreenstack.cpp mythgesture.cpp mythuitype.cpp mythscreentype.cpp
SOURCES += mythuiimage.cpp mythuitext.cpp mythuifilebrowser.cpp
SOURCES += mythuistatetype.cpp mythfontproperties.cpp
SOURCES += mythuibutton.cpp myththemedmenu.cpp mythdialogbox.cpp
SOURCES += mythuiclock.cpp mythuitextedit.cpp mythprogressdialog.cpp
SOURCES += mythuispinbox.cpp mythuicheckbox.cpp mythuibuttonlist.cpp
SOURCES += mythuigroup.cpp mythuiprogressbar.cpp
SOURCES += screensaver.cpp screensaver-null.cpp x11colors.cpp
SOURCES += themeinfo.cpp mythxdisplay.cpp DisplayRes.cpp DisplayResScreen.cpp
SOURCES += mythgenerictree.cpp mythuibuttontree.cpp mythuiutils.cpp
SOURCES += mythvirtualkeyboard.cpp mythuishape.cpp mythuiguidegrid.cpp
SOURCES += mythfontmanager.cpp mythuieditbar.cpp
SOURCES += mythdisplay.cpp mythuivideo.cpp mythudplistener.cpp
SOURCES += mythuisimpletext.cpp mythuistatetracker.cpp
SOURCES += mythuianimation.cpp mythuiscrollbar.cpp
SOURCES += mythnotificationcenter.cpp mythnotification.cpp
SOURCES += mythuicomposite.cpp
using_qtwebkit {
HEADERS += mythuiwebbrowser.h
SOURCES += mythuiwebbrowser.cpp
}
inc.path = $${PREFIX}/include/mythtv/libmythui/
inc.files = mythrect.h mythmainwindow.h mythpainter.h mythimage.h
inc.files += myththemebase.h themeinfo.h
inc.files += mythpainter_qt.h mythuistatetype.h mythuihelper.h
inc.files += mythscreenstack.h mythscreentype.h mythuitype.h mythuiimage.h
inc.files += mythuitext.h mythuibutton.h mythlistbutton.h xmlparsebase.h
inc.files += myththemedmenu.h mythdialogbox.h mythfontproperties.h
inc.files += mythuiclock.h mythgesture.h mythuitextedit.h mythprogressdialog.h
inc.files += mythuispinbox.h mythuicheckbox.h mythuibuttonlist.h mythuigroup.h
inc.files += mythuiprogressbar.h mythuiwebbrowser.h mythuiutils.h
inc.files += x11colors.h mythgenerictree.h mythuibuttontree.h
inc.files += mythvirtualkeyboard.h mythuishape.h mythuiguidegrid.h
inc.files += mythuieditbar.h mythuifilebrowser.h mythuivideo.h
inc.files += mythuiexp.h mythuisimpletext.h mythuiactions.h
inc.files += mythuistatetracker.h mythuianimation.h mythuiscrollbar.h
inc.files += mythnotificationcenter.h mythnotification.h mythuicomposite.h
INSTALLS += inc
#
# Configuration dependent stuff (depending on what is set in mythtv top
# level settings.pro)
#
using_x11 {
DEFINES += USING_X11
HEADERS += screensaver-x11.h
SOURCES += screensaver-x11.cpp
using_xnvctrl {
# Add nvidia XV-EXTENSION support
HEADERS += util-nvctrl.h
SOURCES += util-nvctrl.cpp
! using_xnvctrl_external {
INCLUDEPATH += ../../external/libXNVCtrl
LIBS += -L../../external/libXNVCtrl -lmythXNVCtrl-$${LIBVERSION}
POST_TARGETDEPS += ../../external/libXNVCtrl/libmythXNVCtrl-$${LIBVERSION}.$${QMAKE_EXTENSION_STATICLIB}
}
}
}
using_qtdbus {
QT += dbus
DEFINES += USING_DBUS
HEADERS += screensaver-dbus.h
SOURCES += screensaver-dbus.cpp
}
macx {
HEADERS += screensaver-osx.h DisplayResOSX.h util-osx.h
SOURCES += screensaver-osx.cpp DisplayResOSX.cpp util-osx.cpp
QMAKE_OBJECTIVE_CFLAGS += $$QMAKE_CXXFLAGS
QMAKE_OBJECTIVE_CXXFLAGS += $$QMAKE_CXXFLAGS
OBJECTIVE_HEADERS += util-osx-cocoa.h
OBJECTIVE_SOURCES += util-osx-cocoa.mm
LIBS += -framework Cocoa -framework IOKit
using_appleremote {
HEADERS += AppleRemote.h AppleRemoteListener.h
SOURCES += AppleRemote.cpp AppleRemoteListener.cpp
!using_lirc: HEADERS += lircevent.h
!using_lirc: SOURCES += lircevent.cpp
}
}
android {
HEADERS += screensaver-android.h
SOURCES += screensaver-android.cpp
}
using_joystick_menu {
DEFINES += USE_JOYSTICK_MENU
HEADERS += jsmenu.h jsmenuevent.h
SOURCES += jsmenu.cpp jsmenuevent.cpp
}
using_lirc {
DEFINES += USE_LIRC
HEADERS += lirc.h lircevent.h lirc_client.h
SOURCES += lirc.cpp lircevent.cpp lirc_client.c
}
using_libcec {
DEFINES += USING_LIBCEC
HEADERS += cecadapter.h
SOURCES += cecadapter.cpp
}
using_xrandr {
DEFINES += USING_XRANDR
HEADERS += DisplayResX.h
SOURCES += DisplayResX.cpp
}
cygwin:DEFINES += _WIN32
mingw :DEFINES += USING_MINGW
mingw | win32-msvc*{
HEADERS += mythpainter_d3d9.h mythrender_d3d9.h
SOURCES += mythpainter_d3d9.cpp mythrender_d3d9.cpp
DEFINES += NODRAWTEXT
LIBS += -lGdi32 -lUser32
using_dxva2: DEFINES += USING_DXVA2
}
using_opengl {
using_opengl_themepainter:DEFINES += USE_OPENGL_PAINTER
SOURCES += mythpainter_ogl.cpp mythrender_opengl.cpp
HEADERS += mythpainter_ogl.h mythrender_opengl.h
HEADERS += mythrender_opengl_defs.h mythrender_opengl_shaders.h
using_opengles {
DEFINES += USING_OPENGLES
}
using_mmal {
LIBS += -lEGL
DEFINES += USING_MMAL
}
using_vaapi {
LIBS += -lEGL
DEFINES += USING_VAAPI
}
inc.files += mythpainter_ogl.h
mingw|win32-msvc*:LIBS += -lopengl32
}
DEFINES += USING_QTWEBKIT
DEFINES += MUI_API
use_hidesyms {
QMAKE_CXXFLAGS += -fvisibility=hidden
}
include ( ../libs-targetfix.pro )
LIBS += $$EXTRA_LIBS $$LATE_LIBS