[dependencies/arts] commited soundserver/CMakeLists.txt

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/arts@1183227 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
samelian 14 years ago
parent 4388c9f844
commit a7a807e857

@ -9,10 +9,11 @@
#
#################################################
set( FLOWLIBS artsflow )
# FIXME pthread support need review
configure_file( artsversion-new.h.in artsversion.h )
set( MCOPINC
-I${CMAKE_CURRENT_SOURCE_DIR} # for kmedia2.idl
-I${CMAKE_SOURCE_DIR}/mcop
@ -20,24 +21,42 @@ set( MCOPINC
)
include_directories(
${CMAKE_CURRENT_BINARY_DIR} # for artsversion.h
${CMAKE_BINARY_DIR} # for config.h
${CMAKE_BINARY_DIR}/flow # for artsflow.h
${CMAKE_SOURCE_DIR}/flow # for stdsynthmodule.h
${CMAKE_BINARY_DIR}/mcop # for arts_export.h
${CMAKE_SOURCE_DIR}/mcop # for common.h
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/flow
${CMAKE_SOURCE_DIR}/flow
${CMAKE_BINARY_DIR}/mcop
${CMAKE_SOURCE_DIR}/mcop
)
set( soundserver_INCS
${CMAKE_CURRENT_BINARY_DIR}/artsversion.h
${CMAKE_CURRENT_BINARY_DIR}/soundserver.h
${CMAKE_CURRENT_BINARY_DIR}/kmedia2.h
soundserver.idl
kmedia2.idl
)
##### headers ###################################
install( FILES
soundserver.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(
OUTPUT kmedia2.cc
@ -45,156 +64,121 @@ add_custom_command(
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/kmedia2.idl
)
set( kmedia2_idl_SRCS
kmedia2.cc
tde_add_library( kmedia2_idl SHARED
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 )
##### libsoundserver_idl ########################
##### soundserver_idl (shared lib) ##############
add_custom_command(
OUTPUT soundserver.cc
OUTPUT soundserver.cc soundserver.h
COMMAND ../mcopidl/mcopidl ARGS -t ${MCOPINC} ${CMAKE_CURRENT_SOURCE_DIR}/soundserver.idl
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/soundserver.idl
)
set( soundserver_idl_SRCS
soundserver.cc
tde_add_library( soundserver_idl SHARED
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
gslplayobject_impl.cc
tde_add_library( artsgslplayobject SHARED
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 ######################
set( artswavplayobject_SRCS
wavplayobject_impl.cc
tde_add_library( artswavplayobject SHARED
SOURCES wavplayobject_impl.cc
VERSION 1.0.0
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
fileinputstream_impl.cc
stdoutwriter_impl.cc
tde_add_library( kmedia2 SHARED
SOURCES fileinputstream_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 #####################################
set( artsd_SRCS
soundserverv2_impl.cc
soundserver_impl.cc
simplesoundserver_impl.cc
artsd.cc
cpuusage.cc
samplestorage_impl.cc
crashhandler.cc
set( target artsd )
set( ${target}_SRCS
soundserverv2_impl.cc soundserver_impl.cc simplesoundserver_impl.cc
artsd.cc cpuusage.cc samplestorage_impl.cc crashhandler.cc
soundserverstartup_impl.cc
)
add_executable( artsd ${artsd_SRCS} )
target_link_libraries( artsd soundserver_idl artsflow mcop_mt )
tde_add_executable( ${target}
SOURCES ${${target}_SRCS}
LINK soundserver_idl-shared artsflow-shared
DESTINATION ${BIN_INSTALL_DIR}
)
##### artsplay ##################################
set( artsplay_SRCS
artsplay.cc
tde_add_executable( artsplay
SOURCES artsplay.cc
LINK soundserver_idl-shared
DESTINATION ${BIN_INSTALL_DIR}
)
add_executable( artsplay ${artsplay_SRCS} )
target_link_libraries( artsplay soundserver_idl ${LIBPTHREAD} )
##### artscat ###################################
set( artscat_SRCS
artsrec.cc
tde_add_executable( artscat
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 ###############################
set( artswrapper_SRCS
artswrapper.c
tde_add_executable( artswrapper
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}\\" )
target_link_libraries( artswrapper )
##### artsshell #################################
set( artsshell_SRCS
artsshell.cc
tradercheck.cc
tde_add_executable( artsshell
SOURCES artsshell.cc tradercheck.cc
LINK soundserver_idl-shared
DESTINATION ${BIN_INSTALL_DIR}
)
add_executable( artsshell ${artsshell_SRCS} )
target_link_libraries( artsshell soundserver_idl ${LIBPTHREAD} )
##### artsrec ###################################
set( artsrec_SRCS
artsrec.cc
)
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
tde_add_executable( artsrec
SOURCES artsrec.cc
LINK soundserver_idl-shared artsflow-shared
DESTINATION ${BIN_INSTALL_DIR}
)
Loading…
Cancel
Save