blob: b2aa267251f6c454cc307ad43dae130baaea91d1 (
plain)
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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
|
include( ConfigureChecks.cmake )
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TDE_INCLUDE_DIR}/tde
${TQT_INCLUDE_DIRS}
${CAIRO_INCLUDE_DIRS}
${EXPAT_INCLUDE_DIRS}
${XINE_INCLUDE_DIRS}
${NSPR_INCLUDE_DIRS}
${DBUS_INCLUDE_DIRS}
${DBUS-TQT_INCLUDE_DIRS}
${GSTREAMER_INCLUDE_DIRS}
${GSTREAMER_VIDEO_INCLUDE_DIRS}
${GSTREAMER_PLUGIN_INCLUDE_DIRS}
${X11_INCLUDE_DIR}
${X11_XTEST_INCLUDE_DIRS}
${GDK2_INCLUDE_DIRS}
${GTK2_INCLUDE_DIRS}
${GLIB2_INCLUDE_DIRS}
${DBUS-GLIB_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
${CAIRO_LIBRARY_DIRS}
${EXPAT_LIBRARY_DIRS}
${XINE_LIBRARY_DIRS}
${NSPR_LIBRARY_DIRS}
${DBUS_LIBRARY_DIRS}
${DBUS-TQT_LIBRARY_DIRS}
${GSTREAMER_LIBRARY_DIRS}
${GSTREAMER_VIDEO_LIBRARY_DIRS}
${GSTREAMER_PLUGIN_LIBRARY_DIRS}
${X11_LIBRARY_DIRS}
${X11_XTEST_LIBRARY_DIRS}
${XEXT_LIBRARY_DIRS}
${GDK2_LIBRARY_DIRS}
${GTK2_LIBRARY_DIRS}
${GLIB2_LIBRARY_DIRS}
${DBUS-GLIB_LIBRARY_DIRS}
)
##### kmplayercommon (shared)
tde_add_library( kmplayercommon SHARED AUTOMOC
SOURCES
viewarea.cpp kmplayerview.cpp
playlistview.cpp kmplayercontrolpanel.cpp
kmplayerconfig.cpp pref.cpp
kmplayerprocess.cpp kmplayer_callback.skel
kmplayer_backend.stub kmplayerpartbase.cpp
kmplayerplaylist.cpp kmplayer_asx.cpp
kmplayer_smil.cpp kmplayer_rp.cpp
kmplayer_rss.cpp kmplayer_atom.cpp
kmplayer_xspf.cpp triestring.cpp
kmplayerpartbase.skel
VERSION 1.0.0
LINK
tdecore-shared
tdeui-shared
tdeio-shared
tdeparts-shared
tdeutils-shared
tdemediaplayer
${CAIRO_LIBRARIES}
${EXPAT_LIBRARIES}
${XINE_LIBRARIES}
${X11_LIBRARIES}
${X11_XTEST_LIBRARIES}
${NSPR_LIBRARIES}
${DBUS_LIBRARIES}
${GSTREAMER_LIBRARIES}
${DBUS-TQT_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}
)
##### kmplayer (tdeinit)
tde_add_tdeinit_executable( ${PROJECT_NAME} AUTOMOC
SOURCES
main.cpp kmplayerapp.cpp
kmplayertvsource.cpp
kmplayerbroadcast.cpp
kmplayervdr.cpp
LINK
tdecore-shared
kmplayercommon-shared
${X11_XTEST_LIBRARIES}
)
##### kmplayerbackend (static)
tde_add_library( kmplayerbackend STATIC_PIC AUTOMOC
SOURCES
kmplayer_backend.skel
kmplayer_callback.stub
)
##### libkmplayerpart (kpart)
tde_add_kpart( libkmplayerpart AUTOMOC
SOURCES
kmplayer_part.cpp
LINK
kmplayercommon-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### kxineplayer (executable)
if( BUILD_KXINEPLAYER )
tde_add_executable( kxineplayer AUTOMOC
SOURCES
xineplayer.cpp
LINK
tdecore-shared
tdeui-shared
tdeio-shared
kmplayerbackend-static
${XINE_LIBRARIES}
${XEXT_LIBRARIES}
DESTINATION ${BIN_INSTALL_DIR}
)
endif()
##### kxvplayer (executable)
if( BUILD_KXVPLAYER )
tde_add_executable( kxvplayer AUTOMOC
SOURCES
xvplayer.cpp
LINK
tdecore-shared
tdeui-shared
tdeio-shared
kmplayerbackend-static
${X11_Xv_LIB}
DESTINATION ${BIN_INSTALL_DIR}
)
endif()
##### kgstplayer (executable)
if( BUILD_KGSTPLAYER )
tde_add_executable( kgstplayer AUTOMOC
SOURCES
gstplayer.cpp
LINK
tdecore-shared
tdeui-shared
tdeio-shared
kmplayerbackend-static
${GSTREAMER_LIBRARIES}
${GSTREAMER_VIDEO_LIBRARIES}
${GSTREAMER_PLUGIN_LIBRARIES}
DESTINATION ${BIN_INSTALL_DIR}
)
endif()
##### knpplayer (executable)
if( BUILD_KNPPLAYER )
tde_add_executable( knpplayer AUTOMOC
SOURCES
npplayer.c
LINK
${NSPR_LIBRARIES}
${X11_LIBRARIES}
${GMODULE2_LIBRARIES}
${GDK2_LIBRARIES}
${GLIB2_LIBRARIES}
${DBUS-GLIB_LIBRARIES}
${GTHREAD_LIBRARIES}
${GTK2_LIBRARIES}
DESTINATION ${BIN_INSTALL_DIR}
)
endif()
##### kmplayerkofficepart (kpart)
if( BUILD_KOFFICE_PLUGIN )
tde_add_kpart( libkmplayerkofficepart AUTOMOC
SOURCES
kmplayer_koffice_part.cpp
LINK
kmplayercommon-shared
${KOFFICE_LIBRARIES}
DESTINATION ${PLUGIN_INSTALL_DIR}
)
endif()
##### other data
install(
FILES
bookmarks.xml
pluginsinfo
noise.gif
kmplayerui.rc
kmplayerpartui.rc
DESTINATION ${DATA_INSTALL_DIR}/kmplayer
)
install(
FILES ${PROJECT_NAME}.desktop
DESTINATION ${XDG_APPS_INSTALL_DIR}
)
install(
FILES kmplayerrc
DESTINATION ${CONFIG_INSTALL_DIR}
)
install(
FILES kmplayer_part.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
)
if( BUILD_KOFFICE_PLUGIN )
install(
FILES kmplayer_koffice.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
)
endif()
|