|
|
@ -9,10 +9,11 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#################################################
|
|
|
|
#################################################
|
|
|
|
|
|
|
|
|
|
|
|
set( FLOWLIBS artsflow )
|
|
|
|
# FIXME pthread support need review
|
|
|
|
|
|
|
|
|
|
|
|
configure_file( artsversion-new.h.in artsversion.h )
|
|
|
|
configure_file( artsversion-new.h.in artsversion.h )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set( MCOPINC
|
|
|
|
set( MCOPINC
|
|
|
|
-I${CMAKE_CURRENT_SOURCE_DIR} # for kmedia2.idl
|
|
|
|
-I${CMAKE_CURRENT_SOURCE_DIR} # for kmedia2.idl
|
|
|
|
-I${CMAKE_SOURCE_DIR}/mcop
|
|
|
|
-I${CMAKE_SOURCE_DIR}/mcop
|
|
|
@ -20,24 +21,42 @@ set( MCOPINC
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR} # for artsversion.h
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${CMAKE_BINARY_DIR} # for config.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
${CMAKE_BINARY_DIR}/flow # for artsflow.h
|
|
|
|
${CMAKE_BINARY_DIR}
|
|
|
|
${CMAKE_SOURCE_DIR}/flow # for stdsynthmodule.h
|
|
|
|
${CMAKE_BINARY_DIR}/flow
|
|
|
|
${CMAKE_BINARY_DIR}/mcop # for arts_export.h
|
|
|
|
${CMAKE_SOURCE_DIR}/flow
|
|
|
|
${CMAKE_SOURCE_DIR}/mcop # for common.h
|
|
|
|
${CMAKE_BINARY_DIR}/mcop
|
|
|
|
|
|
|
|
${CMAKE_SOURCE_DIR}/mcop
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
set( soundserver_INCS
|
|
|
|
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/artsversion.h
|
|
|
|
##### headers ###################################
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/soundserver.h
|
|
|
|
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/kmedia2.h
|
|
|
|
install( FILES
|
|
|
|
soundserver.idl
|
|
|
|
soundserver.idl kmedia2.idl
|
|
|
|
kmedia2.idl
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/artsversion.h
|
|
|
|
)
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/soundserver.h
|
|
|
|
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/kmedia2.h
|
|
|
|
|
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR} )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### other data ################################
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
install( FILES
|
|
|
|
|
|
|
|
FileInputStream.mcopclass WavPlayObject.mcopclass
|
|
|
|
|
|
|
|
GSLPlayObject.mcopclass
|
|
|
|
|
|
|
|
DESTINATION ${LIB_INSTALL_DIR}/mcop/Arts )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
install( FILES
|
|
|
|
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/soundserver.mcopclass
|
|
|
|
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/kmedia2.mcoptype
|
|
|
|
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/kmedia2.mcopclass
|
|
|
|
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/soundserver.mcoptype
|
|
|
|
|
|
|
|
DESTINATION ${LIB_INSTALL_DIR}/mcop )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### libkmedia2_idl ###########################
|
|
|
|
##### kmedia2_idl (shared lib) ##################
|
|
|
|
|
|
|
|
|
|
|
|
add_custom_command(
|
|
|
|
add_custom_command(
|
|
|
|
OUTPUT kmedia2.cc
|
|
|
|
OUTPUT kmedia2.cc
|
|
|
@ -45,156 +64,121 @@ add_custom_command(
|
|
|
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/kmedia2.idl
|
|
|
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/kmedia2.idl
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
set( kmedia2_idl_SRCS
|
|
|
|
tde_add_library( kmedia2_idl SHARED
|
|
|
|
kmedia2.cc
|
|
|
|
SOURCES kmedia2.cc
|
|
|
|
|
|
|
|
VERSION 1.0.0
|
|
|
|
|
|
|
|
LINK artsflow_idl-shared
|
|
|
|
|
|
|
|
DESTINATION ${LIB_INSTALL_DIR}
|
|
|
|
|
|
|
|
DEPENDENCIES mcopidl
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
add_library( kmedia2_idl SHARED ${kmedia2_idl_SRCS} )
|
|
|
|
|
|
|
|
set_target_properties( kmedia2_idl PROPERTIES VERSION 1.0 SOVERSION 1 )
|
|
|
|
|
|
|
|
target_link_libraries( kmedia2_idl artsflow_idl )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### soundserver_idl (shared lib) ##############
|
|
|
|
##### libsoundserver_idl ########################
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add_custom_command(
|
|
|
|
add_custom_command(
|
|
|
|
OUTPUT soundserver.cc
|
|
|
|
OUTPUT soundserver.cc soundserver.h
|
|
|
|
COMMAND ../mcopidl/mcopidl ARGS -t ${MCOPINC} ${CMAKE_CURRENT_SOURCE_DIR}/soundserver.idl
|
|
|
|
COMMAND ../mcopidl/mcopidl ARGS -t ${MCOPINC} ${CMAKE_CURRENT_SOURCE_DIR}/soundserver.idl
|
|
|
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/soundserver.idl
|
|
|
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/soundserver.idl
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
set( soundserver_idl_SRCS
|
|
|
|
tde_add_library( soundserver_idl SHARED
|
|
|
|
soundserver.cc
|
|
|
|
SOURCES soundserver.cc
|
|
|
|
|
|
|
|
VERSION 1.0.0
|
|
|
|
|
|
|
|
LINK kmedia2_idl-shared
|
|
|
|
|
|
|
|
DESTINATION ${LIB_INSTALL_DIR}
|
|
|
|
|
|
|
|
DEPENDENCIES mcopidl
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
add_library( soundserver_idl SHARED ${soundserver_idl_SRCS} )
|
|
|
|
|
|
|
|
set_target_properties( soundserver_idl PROPERTIES VERSION 1.0 SOVERSION 1 )
|
|
|
|
|
|
|
|
target_link_libraries( soundserver_idl kmedia2_idl artsflow_idl )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### libartsgslplayobject ######################
|
|
|
|
##### artsgslplayobject (shared lib) ############
|
|
|
|
|
|
|
|
|
|
|
|
set( artsgslplayobject_SRCS
|
|
|
|
tde_add_library( artsgslplayobject SHARED
|
|
|
|
gslplayobject_impl.cc
|
|
|
|
SOURCES gslplayobject_impl.cc
|
|
|
|
|
|
|
|
VERSION 1.0.0
|
|
|
|
|
|
|
|
LINK soundserver_idl-shared artsflow-shared
|
|
|
|
|
|
|
|
DESTINATION ${LIB_INSTALL_DIR}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
add_library( artsgslplayobject SHARED ${artsgslplayobject_SRCS} )
|
|
|
|
|
|
|
|
set_target_properties( artsgslplayobject PROPERTIES VERSION 1.0 SOVERSION 1 )
|
|
|
|
|
|
|
|
target_link_libraries( artsgslplayobject mcop soundserver_idl artsflow )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### artswavplayobject (shared lib) ############
|
|
|
|
|
|
|
|
|
|
|
|
##### libartswavplayobject ######################
|
|
|
|
tde_add_library( artswavplayobject SHARED
|
|
|
|
|
|
|
|
SOURCES wavplayobject_impl.cc
|
|
|
|
set( artswavplayobject_SRCS
|
|
|
|
VERSION 1.0.0
|
|
|
|
wavplayobject_impl.cc
|
|
|
|
LINK soundserver_idl-shared artsflow-shared
|
|
|
|
|
|
|
|
DESTINATION ${LIB_INSTALL_DIR}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
add_library( artswavplayobject SHARED ${artswavplayobject_SRCS} )
|
|
|
|
|
|
|
|
set_target_properties( artswavplayobject PROPERTIES VERSION 1.0 SOVERSION 1 )
|
|
|
|
|
|
|
|
target_link_libraries( artswavplayobject mcop soundserver_idl artsflow )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### libkmedia2 ################################
|
|
|
|
##### kmedia2 (shared lib) ######################
|
|
|
|
|
|
|
|
|
|
|
|
set( kmedia2_SRCS
|
|
|
|
tde_add_library( kmedia2 SHARED
|
|
|
|
fileinputstream_impl.cc
|
|
|
|
SOURCES fileinputstream_impl.cc stdoutwriter_impl.cc
|
|
|
|
stdoutwriter_impl.cc
|
|
|
|
VERSION 1.0.0
|
|
|
|
|
|
|
|
LINK kmedia2_idl-shared artsflow-shared
|
|
|
|
|
|
|
|
DESTINATION ${LIB_INSTALL_DIR}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
add_library( kmedia2 SHARED ${kmedia2_SRCS} )
|
|
|
|
|
|
|
|
set_target_properties( kmedia2 PROPERTIES VERSION 1.0 SOVERSION 1 )
|
|
|
|
|
|
|
|
target_link_libraries( kmedia2 kmedia2_idl artsflow )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### artsd #####################################
|
|
|
|
##### artsd #####################################
|
|
|
|
|
|
|
|
|
|
|
|
set( artsd_SRCS
|
|
|
|
set( target artsd )
|
|
|
|
soundserverv2_impl.cc
|
|
|
|
|
|
|
|
soundserver_impl.cc
|
|
|
|
set( ${target}_SRCS
|
|
|
|
simplesoundserver_impl.cc
|
|
|
|
soundserverv2_impl.cc soundserver_impl.cc simplesoundserver_impl.cc
|
|
|
|
artsd.cc
|
|
|
|
artsd.cc cpuusage.cc samplestorage_impl.cc crashhandler.cc
|
|
|
|
cpuusage.cc
|
|
|
|
|
|
|
|
samplestorage_impl.cc
|
|
|
|
|
|
|
|
crashhandler.cc
|
|
|
|
|
|
|
|
soundserverstartup_impl.cc
|
|
|
|
soundserverstartup_impl.cc
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
add_executable( artsd ${artsd_SRCS} )
|
|
|
|
tde_add_executable( ${target}
|
|
|
|
target_link_libraries( artsd soundserver_idl artsflow mcop_mt )
|
|
|
|
SOURCES ${${target}_SRCS}
|
|
|
|
|
|
|
|
LINK soundserver_idl-shared artsflow-shared
|
|
|
|
|
|
|
|
DESTINATION ${BIN_INSTALL_DIR}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### artsplay ##################################
|
|
|
|
##### artsplay ##################################
|
|
|
|
|
|
|
|
|
|
|
|
set( artsplay_SRCS
|
|
|
|
tde_add_executable( artsplay
|
|
|
|
artsplay.cc
|
|
|
|
SOURCES artsplay.cc
|
|
|
|
|
|
|
|
LINK soundserver_idl-shared
|
|
|
|
|
|
|
|
DESTINATION ${BIN_INSTALL_DIR}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
add_executable( artsplay ${artsplay_SRCS} )
|
|
|
|
|
|
|
|
target_link_libraries( artsplay soundserver_idl ${LIBPTHREAD} )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### artscat ###################################
|
|
|
|
##### artscat ###################################
|
|
|
|
|
|
|
|
|
|
|
|
set( artscat_SRCS
|
|
|
|
tde_add_executable( artscat
|
|
|
|
artsrec.cc
|
|
|
|
SOURCES artscat.cc
|
|
|
|
|
|
|
|
LINK soundserver_idl-shared artsflow-shared
|
|
|
|
|
|
|
|
DESTINATION ${BIN_INSTALL_DIR}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
set( CMAKE_EXE_LINKER_FLAGS ${USE_THREADS} )
|
|
|
|
|
|
|
|
add_executable( artscat ${artscat_SRCS} )
|
|
|
|
|
|
|
|
target_link_libraries( artscat soundserver_idl ${FLOWLIBS} ${LIBPTHREAD} )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### artswrapper ###############################
|
|
|
|
##### artswrapper ###############################
|
|
|
|
|
|
|
|
|
|
|
|
set( artswrapper_SRCS
|
|
|
|
tde_add_executable( artswrapper
|
|
|
|
artswrapper.c
|
|
|
|
SOURCES artswrapper.c
|
|
|
|
|
|
|
|
DESTINATION ${BIN_INSTALL_DIR}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
add_executable( artswrapper ${artswrapper_SRCS} )
|
|
|
|
# FIXME "artsdpath" seems inconsistent name
|
|
|
|
set_target_properties( artswrapper PROPERTIES COMPILE_FLAGS -DEXECUTE=\\"${artsdpath}\\" )
|
|
|
|
set_target_properties( artswrapper PROPERTIES COMPILE_FLAGS -DEXECUTE=\\"${artsdpath}\\" )
|
|
|
|
target_link_libraries( artswrapper )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### artsshell #################################
|
|
|
|
##### artsshell #################################
|
|
|
|
|
|
|
|
|
|
|
|
set( artsshell_SRCS
|
|
|
|
tde_add_executable( artsshell
|
|
|
|
artsshell.cc
|
|
|
|
SOURCES artsshell.cc tradercheck.cc
|
|
|
|
tradercheck.cc
|
|
|
|
LINK soundserver_idl-shared
|
|
|
|
|
|
|
|
DESTINATION ${BIN_INSTALL_DIR}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
add_executable( artsshell ${artsshell_SRCS} )
|
|
|
|
|
|
|
|
target_link_libraries( artsshell soundserver_idl ${LIBPTHREAD} )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### artsrec ###################################
|
|
|
|
##### artsrec ###################################
|
|
|
|
|
|
|
|
|
|
|
|
set( artsrec_SRCS
|
|
|
|
tde_add_executable( artsrec
|
|
|
|
artsrec.cc
|
|
|
|
SOURCES artsrec.cc
|
|
|
|
)
|
|
|
|
LINK soundserver_idl-shared artsflow-shared
|
|
|
|
|
|
|
|
|
|
|
|
add_executable( artsrec ${artsrec_SRCS} )
|
|
|
|
|
|
|
|
target_link_libraries( artsrec soundserver_idl ${FLOWLIBS} ${LIBPTHREAD} )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### install ###################################
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
install( FILES ${soundserver_INCS} DESTINATION ${INCLUDE_INSTALL_DIR} )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
install(TARGETS
|
|
|
|
|
|
|
|
kmedia2_idl
|
|
|
|
|
|
|
|
soundserver_idl
|
|
|
|
|
|
|
|
artsgslplayobject
|
|
|
|
|
|
|
|
artswavplayobject
|
|
|
|
|
|
|
|
kmedia2
|
|
|
|
|
|
|
|
LIBRARY DESTINATION ${LIB_INSTALL_DIR}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
install( TARGETS
|
|
|
|
|
|
|
|
artsd
|
|
|
|
|
|
|
|
artsplay
|
|
|
|
|
|
|
|
artscat
|
|
|
|
|
|
|
|
artswrapper
|
|
|
|
|
|
|
|
artsshell
|
|
|
|
|
|
|
|
artsrec
|
|
|
|
|
|
|
|
DESTINATION ${BIN_INSTALL_DIR}
|
|
|
|
DESTINATION ${BIN_INSTALL_DIR}
|
|
|
|
)
|
|
|
|
)
|