blob: c64b7320a7a951b861c16d38175226bae4d0f3b1 (
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
|
#################################################
#
# (C) 2017 Slávek Banko
# slavek (DOT) banko (AT) axis.cz
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/mpeglib/lib
${CMAKE_BINARY_DIR}/mpeglib/lib
${CMAKE_BINARY_DIR}
${ARTS_INCLUDE_DIRS}
${ARTSC_INCLUDE_DIRS}
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
${CDPARANOIA_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${ARTS_LIBRARY_DIRS}
)
##### arts_mpeglib (library) ####################
tde_add_library( arts_mpeglib SHARED
SOURCES
decoderBaseObject.cpp
splayPlayObject.cpp
decoderBaseObject_impl.cpp
oggPlayObject_impl.cpp
mpgPlayObject_impl.cpp
wavPlayObject_impl.cpp
mp3PlayObject_impl.cpp
cddaPlayObject_impl.cpp
vcdPlayObject_impl.cpp
nullPlayObject_impl.cpp
RELEASE ${MPEGLIB_VERSION}
VERSION ${MPEGLIB_SO_VERSION}
LINK mpeg-shared ${ARTS_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}
)
add_custom_command(
OUTPUT
decoderBaseObject.cpp decoderBaseObject.h
COMMAND ${ARTS_MCOPIDL_EXECUTABLE}
-I${ARTS_INCLUDEDIR} ${CMAKE_CURRENT_SOURCE_DIR}/decoderBaseObject.idl
DEPENDS decoderBaseObject.idl
)
##### arts_splay (library) ######################
tde_add_library( arts_splay SHARED
SOURCES
splayPlayObject.cpp
splayPlayObject_impl.cpp
VERSION 0.0.0
LINK mpeg-shared ${ARTS_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}
)
add_custom_command(
OUTPUT
splayPlayObject.cpp splayPlayObject.h
COMMAND ${ARTS_MCOPIDL_EXECUTABLE}
-I${ARTS_INCLUDEDIR} ${CMAKE_CURRENT_SOURCE_DIR}/splayPlayObject.idl
DEPENDS splayPlayObject.idl
)
##### mpeglibartsplay (executable) ##############
tde_add_executable( mpeglibartsplay
SOURCES mpeglibartsplay.cpp
LINK mcop kmedia2_idl soundserver_idl artsflow_idl ${ARTSC_LIBRARIES}
DESTINATION ${BIN_INSTALL_DIR}
)
##### other data ################################
install(
FILES
decoderBaseObject_impl.h
${CMAKE_CURRENT_BINARY_DIR}/decoderBaseObject.h
decoderBaseObject.idl
splayPlayObject_impl.h
${CMAKE_CURRENT_BINARY_DIR}/splayPlayObject.h
splayPlayObject.idl
DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib_artsplug
)
install(
FILES
WAVPlayObject.mcopclass
MP3PlayObject.mcopclass
OGGPlayObject.mcopclass
CDDAPlayObject.mcopclass
NULLPlayObject.mcopclass
SplayPlayObject.mcopclass
DESTINATION ${LIB_INSTALL_DIR}/mcop
)
|