diff options
181 files changed, 7257 insertions, 45 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2994da4a..57f05942 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,15 +19,20 @@ project( tdemultimedia ) set( PACKAGE tdemultimedia ) set( VERSION R14.1.0 ) +enable_testing( ) + ##### include essential cmake modules ########### include( FindPkgConfig ) include( CheckIncludeFile ) +include( CheckIncludeFileCXX ) include( CheckTypeSize ) include( CheckCSourceCompiles ) include( CheckCXXSourceCompiles ) +include( CheckFunctionExists ) include( CheckLibraryExists ) +include( CheckSymbolExists ) ##### include our cmake modules ################# @@ -44,13 +49,41 @@ tde_setup_paths( ) ##### optional stuff ############################ -option( WITH_ALSA "Enable ALSA support" ON ) +OPTION( WITH_ALL_OPTIONS "Enable all optional support" OFF ) +option( WITH_ALSA "Enable ALSA support (kscd, kmix)" ON ) +option( WITH_ARTS_AKODE "Enable aRts akode plugin" ${WITH_ALL_OPTIONS} ) +option( WITH_ARTS_AUDIOFILE "Enable aRts audiofile plugin" ${WITH_ALL_OPTIONS} ) +option( WITH_ARTS_MPEGLIB "Enable aRts mpeglib pluing" ${WITH_ALL_OPTIONS} ) +option( WITH_ARTS_XINE "Enable aRts xine plugin" ${WITH_ALL_OPTIONS} ) +option( WITH_CDPARANOIA "Enable CDParanoia support (mpeglib, tdeioslave-audiocd)" ${WITH_ALL_OPTIONS} ) +option( WITH_FLAC "Enable FLAC support (tdeioslave)" ${WITH_ALL_OPTIONS} ) +option( WITH_GSTREAMER "Enable gstreamer support (juk)" ${WITH_ALL_OPTIONS} ) +option( WITH_KSCD_CDDA "Enable cdda support in kscd" ${WITH_ALL_OPTIONS} ) +option( WITH_LAME "Enable lame support (krec)" ${WITH_ALL_OPTIONS} ) +option( WITH_MUSICBRAINZ "Enable MusicBrainz support (juk)" OFF ) +option( WITH_TAGLIB "Enable taglib support (juk, tdefile-plugins)" ${WITH_ALL_OPTIONS} ) +option( WITH_THEORA "Enable Ogg/Theora support (tdefile-plugins)" ${WITH_ALL_OPTIONS} ) +option( WITH_VORBIS "Enable Ogg/Vorbis support (krec, mpeglib, oggarts, tdefile-plugins)" ${WITH_ALL_OPTIONS} ) ##### user requested modules #################### option( BUILD_ALL "Build all" OFF ) +option( BUILD_ARTS "Build aRts" ${BUILD_ALL} ) +option( BUILD_DOC "Build documentation" ${BUILD_ALL} ) +option( BUILD_JUK "Build Juk player" ${BUILD_ALL} ) +option( BUILD_KABOODLE "Build Kaboodle video player" ${BUILD_ALL} ) +option( BUILD_KAPPFINDER_DATA "Build data for kappfinder" ${BUILD_ALL} ) +option( BUILD_KAUDIOCREATOR "Build KAudio Creator" ${BUILD_ALL} ) option( BUILD_KMIX "Build kmix" ${BUILD_ALL} ) +option( BUILD_KREC "Build krec" ${BUILD_ALL} ) +option( BUILD_KSCD "Build kscd player" ${BUILD_ALL} ) +option( BUILD_LIBKCDDB "Build kcddb library" ${BUILD_ALL} ) +option( BUILD_MPEGLIB "Build mpeg library" ${BUILD_ALL} ) +option( BUILD_NOATUN "Build noatun player" ${BUILD_ALL} ) +option( BUILD_TDEFILE_PLUGINS "Build tdefile plugins" ${BUILD_ALL} ) +option( BUILD_TDEIOSLAVE "Build tdeio slave plugins" ${BUILD_ALL} ) +option( BUILD_TDEMID "Build tdemid" ${BUILD_ALL} ) ##### configure checks ########################## @@ -74,9 +107,62 @@ set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" ) ##### tdemultimedia directories ######################## +if( BUILD_MPEGLIB ) # must be before mpeglib_artsplug + if( NOT BUILD_ARTS ) + tde_message_fatal( "mpeglib can not be built without building arts" ) + endif( ) + add_subdirectory( mpeglib ) +endif( BUILD_MPEGLIB ) +if( BUILD_ARTS ) + add_subdirectory( arts ) + tde_conditional_add_subdirectory( WITH_ARTS_AKODE akode_artsplugin ) + tde_conditional_add_subdirectory( WITH_ARTS_AUDIOFILE audiofile_artsplugin ) + if( WITH_ARTS_MPEGLIB ) + if( NOT BUILD_MPEGLIB ) + tde_message_fatal( "mpeglib aRts plugin can not be built without building mpeglib" ) + endif( ) + add_subdirectory( mpeglib_artsplug ) + else( WITH_ARTS_MPEGLIB ) + tde_conditional_add_subdirectory( WITH_VORBIS oggvorbis_artsplugin ) + endif( WITH_ARTS_MPEGLIB ) + tde_conditional_add_subdirectory( WITH_ARTS_XINE xine_artsplugin ) +endif( BUILD_ARTS ) +tde_conditional_add_subdirectory( BUILD_DOC doc ) +tde_conditional_add_subdirectory( BUILD_JUK juk ) +tde_conditional_add_subdirectory( BUILD_KABOODLE kaboodle ) +tde_conditional_add_subdirectory( BUILD_KAPPFINDER_DATA kappfinder-data ) +if( BUILD_KAUDIOCREATOR ) + if( NOT BUILD_KSCD ) + tde_message_fatal( "kaudiocreator can not be built without building kscd" ) + endif( ) + add_subdirectory( kaudiocreator ) +endif( BUILD_KAUDIOCREATOR ) tde_conditional_add_subdirectory( BUILD_KMIX kmix ) +if( BUILD_KREC ) + if( NOT BUILD_ARTS ) + tde_message_fatal( "krec can not be built without building arts" ) + endif( ) + add_subdirectory( krec ) +endif( BUILD_KREC ) +tde_conditional_add_subdirectory( BUILD_KSCD kscd ) +tde_conditional_add_subdirectory( BUILD_LIBKCDDB libkcddb ) +tde_conditional_add_subdirectory( BUILD_NOATUN noatun ) +tde_conditional_add_subdirectory( BUILD_TDEFILE_PLUGINS tdefile-plugins ) +tde_conditional_add_subdirectory( BUILD_TDEIOSLAVE tdeioslave ) +tde_conditional_add_subdirectory( BUILD_TDEMID tdemid ) ##### write configure files ##################### configure_file( config.h.cmake config.h @ONLY ) + + +##### add apidox targets ############ + +add_custom_target(apidox + COMMAND "./generate_apidox" "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" "${HTML_INSTALL_DIR}" "/usr/share/qt3/doc/html" + WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/cmake/") + +add_custom_target(install-apidox + COMMAND "./install_apidox" "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" "${HTML_INSTALL_DIR}" "${CMAKE_INSTALL_PREFIX}" + WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/cmake/") diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 00a246ce..a7f72d95 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -7,6 +7,103 @@ # ################################################# +# required stuff +tde_setup_architecture_flags( ) + +include(TestBigEndian) +test_big_endian(WORDS_BIGENDIAN) + +if( NOT CMAKE_ARCHITECTURE ) + execute_process( + COMMAND ${CMAKE_C_COMPILER} -dumpmachine + OUTPUT_VARIABLE CMAKE_ARCHITECTURE + ERROR_VARIABLE CMAKE_ARCHITECTURE + OUTPUT_STRIP_TRAILING_WHITESPACE + ERROR_STRIP_TRAILING_WHITESPACE ) + set( CMAKE_ARCHITECTURE "${CMAKE_ARCHITECTURE}" CACHE INTERNAL "" FORCE ) + message( STATUS "Detected ${CMAKE_ARCHITECTURE} target architecture" ) +endif( NOT CMAKE_ARCHITECTURE ) + +if( ${CMAKE_ARCHITECTURE} MATCHES "i.86" ) + if( NOT ASM_COMPILER_VERSION ) + message( STATUS "Checking binutils version" ) + execute_process( + COMMAND echo + COMMAND as -v + OUTPUT_VARIABLE ASM_VERSION + ERROR_VARIABLE ASM_VERSION + ) + string(REGEX REPLACE ".*version ([0-9][^ \n]*).*" "\\1" ASM_COMPILER_VERSION ${ASM_VERSION} ) + set( ASM_COMPILER_VERSION "${ASM_COMPILER_VERSION}" CACHE INTERNAL "" FORCE ) + message( STATUS "Checking binutils version - ${ASM_COMPILER_VERSION}" ) + endif( NOT ASM_COMPILER_VERSION ) + + if( NOT MMX_SUPPORT ) + message( STATUS "Performing test MMX_SUPPORT" ) + if( ${ASM_COMPILER_VERSION} VERSION_LESS "2.10" ) + message( STATUS "Performing test MMX_SUPPORT - Failed" ) + else( ) + message( STATUS "Performing test MMX_SUPPORT - Success" ) + set( MMX_SUPPORT 1 CACHE INTERNAL "" FORCE ) + endif( ) + endif( NOT MMX_SUPPORT ) + + check_c_source_compiles( " + int main() { + #if defined(__GNUC__) && defined(__i386__) + __asm__(\"movups %xmm0, (%esp)\"); + #else + #error Not gcc on x86 + #endif + return 0; }" + HAVE_X86_SSE + ) +endif( ${CMAKE_ARCHITECTURE} MATCHES "i.86" ) + +message( STATUS "Cheking system type - ${CMAKE_SYSTEM_NAME}" ) +if( ${CMAKE_SYSTEM_NAME} MATCHES "AIX" ) + set( OS_AIX 1 ) +elseif( ${CMAKE_SYSTEM_NAME} MATCHES "Linux" ) + set( OS_Linux 1 ) +elseif( ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD|FreeBSD|DragonFly|NetBSD" ) + set( OS_BSD 1 ) +elseif( ${CMAKE_SYSTEM_NAME} MATCHES "SunOS" ) + set( OS_SunOS 1 ) +elseif( ${CMAKE_SYSTEM_NAME} MATCHES "IRIX" ) + set( OS_IRIX 1 ) +elseif( ${CMAKE_SYSTEM_NAME} MATCHES "HPUX" ) + set( OS_HPUX 1 ) +else( ) + message( WARNING "Unknown system type!" ) +endif( ) + +find_package( TQt ) +find_package( TDE ) + + +##### check headers ############################# + +check_include_file( stdint.h HAVE_STDINT_H ) +check_include_file( inttypes.h HAVE_INTTYPES_H ) + +check_include_file( soundcard.h HAVE_SOUNDCARD_H ) +check_include_file( sys/soundcard.h HAVE_SYS_SOUNDCARD_H ) +check_include_file( machine/soundcard.h HAVE_MACHINE_SOUNDCARD_H ) + + +##### check libraries ########################### + +set( DL_LIBRARIES dl ) +check_library_exists( ${DL_LIBRARIES} dlopen /lib HAVE_LIBDL ) +if( NOT HAVE_LIBDL ) + unset( DL_LIBRARIES ) + check_function_exists( dlopen HAVE_DLOPEN ) + if( HAVE_DLOPEN ) + set( HAVE_LIBDL 1 ) + endif( HAVE_DLOPEN ) +endif( NOT HAVE_LIBDL ) + + # ALSA if( WITH_ALSA ) find_package( ALSA ) @@ -17,6 +114,167 @@ if( WITH_ALSA ) endif( WITH_ALSA ) -# required stuff -find_package( TQt ) -find_package( TDE ) +# aRts +if( BUILD_ARTS OR BUILD_JUK OR BUILD_KABOODLE OR BUILD_KREC OR BUILD_NOATUN ) + pkg_search_module( ARTS arts ) + if( ARTS_FOUND ) + set( ARTS_MCOPIDL_EXECUTABLE ${ARTS_PREFIX}/bin/mcopidl ) + set( HAVE_ARTS 1 ) + else( ARTS_FOUND ) + tde_message_fatal( "aRts is required, but not found on your system" ) + endif( ARTS_FOUND ) +endif( BUILD_ARTS OR BUILD_JUK OR BUILD_KABOODLE OR BUILD_KREC OR BUILD_NOATUN ) + +if( BUILD_KAUDIOCREATOR OR BUILD_KREC OR BUILD_KSCD OR (BUILD_TDEIOSLAVE AND WITH_CDPARANOIA) ) + pkg_search_module( ARTSC artsc ) + if( NOT ARTSC_FOUND ) + tde_message_fatal( "aRtsC is required, but not found on your system" ) + endif( NOT ARTSC_FOUND ) +endif( BUILD_KAUDIOCREATOR OR BUILD_KREC OR BUILD_KSCD OR (BUILD_TDEIOSLAVE AND WITH_CDPARANOIA) ) + +if( (BUILD_ARTS AND WITH_ARTS_AKODE) OR BUILD_JUK ) + pkg_search_module( AKODE akode ) + if( NOT AKODE_FOUND ) + tde_message_fatal( "akode is required, but not found on your system" ) + endif( ) + set( HAVE_AKODE 1 ) +endif( (BUILD_ARTS AND WITH_ARTS_AKODE) OR BUILD_JUK ) + + +if( BUILD_ARTS ) + + pkg_search_module( GLIB2 glib-2.0 ) + if( GLIB2_FOUND ) + pkg_search_module( GTHREAD2 gthread-2.0 ) + if( NOT GTHREAD2_FOUND ) + tde_message_fatal( "gthread-2.0 are required, but not found on your system" ) + endif( NOT GTHREAD2_FOUND ) + else( GLIB2_FOUND ) + tde_message_fatal( "glib-2.0 are required, but not found on your system" ) + endif( GLIB2_FOUND ) + + if( WITH_ARTS_AUDIOFILE ) + pkg_search_module( AUDIOFILE audiofile ) + if( NOT AUDIOFILE_FOUND ) + tde_message_fatal( "audifile is requested, but not found on your system" ) + endif( ) + endif( WITH_ARTS_AUDIOFILE ) + + if( WITH_ARTS_XINE ) + pkg_search_module( XINE libxine ) + pkg_search_module( XEXT xext ) + if( NOT XINE_FOUND ) + tde_message_fatal( "xine is requested, but not found on your system" ) + endif( ) + endif( WITH_ARTS_XINE ) + +endif( BUILD_ARTS ) + + +# CDDA Paranoia +if( WITH_CDPARANOIA ) + if( CDPARANOIA_INCLUDE_DIR AND CDPARANOIA_LIBRARIES ) + set( CDPARANOIA_FOUND TRUE ) + else( ) + message( STATUS "Checking for CDParanonia" ) + find_path( CDPARANOIA_INCLUDE_DIR cdda_interface.h PATH_SUFFIXES cdda ) + find_library( CDPARANOIA_LIBRARY NAMES cdda_paranoia ) + find_library( CDPARANOIA_IF_LIBRARY NAMES cdda_interface ) + if( CDPARANOIA_LIBRARY AND CDPARANOIA_IF_LIBRARY ) + set( CDPARANOIA_LIBRARIES ${CDPARANOIA_LIBRARY} ${CDPARANOIA_IF_LIBRARY} "m" CACHE INTERNAL "" FORCE ) + endif( CDPARANOIA_LIBRARY AND CDPARANOIA_IF_LIBRARY ) + + include(FindPackageHandleStandardArgs) + find_package_handle_standard_args( CDPARANOIA DEFAULT_MSG + CDPARANOIA_LIBRARIES + CDPARANOIA_INCLUDE_DIR ) + + if( CDPARANOIA_FOUND ) + check_c_source_compiles( " + #include <cdda_interface.h> + int main() { + struct cdrom_drive device; + device.cdda_device_name = 0; + return 0; + }" + CDPARANOIA_DEVICE_NAME ) + if( NOT CDPARANOIA_DEVICE_NAME ) + tde_message_fatal( "CDParanoia is too old and can not be used" ) + endif( ) + endif( CDPARANOIA_FOUND ) + endif( ) + + if( NOT CDPARANOIA_FOUND ) + tde_message_fatal( "CDParanoia is requested, but not found on your system" ) + endif( NOT CDPARANOIA_FOUND ) + set( CDDA_PARANOIA 1 ) +endif( WITH_CDPARANOIA ) + + +# FLAC +if( WITH_FLAC ) + pkg_search_module( FLAC vorbis ) + if( NOT FLAC_FOUND ) + tde_message_fatal( "FLAC is requested, but not found on your system" ) + endif( ) +endif( WITH_FLAC ) + + +# OGG/Vorbis +if( WITH_VORBIS ) + + pkg_search_module( OGG ogg ) + if( NOT OGG_FOUND ) + tde_message_fatal( "Ogg/Vorbis support are requested, but `libogg` not found" ) + endif( ) + + pkg_search_module( VORBIS vorbis ) + if( NOT VORBIS_FOUND ) + tde_message_fatal( "Ogg/Vorbis support are requested, but `libvorbis` not found" ) + endif( ) + + pkg_search_module( VORBISFILE vorbisfile ) + if( NOT VORBISFILE_FOUND ) + tde_message_fatal( "Ogg/Vorbis support are requested, but `libvorbisfile` not found" ) + endif( ) + + pkg_search_module( VORBISENC vorbisenc ) + if( NOT VORBISENC_FOUND ) + tde_message_fatal( "Ogg/Vorbis support are requested, but `libvorbisenc` not found" ) + endif( ) + + set( HAVE_VORBIS 1 ) + set( HAVE_OGG_VORBIS 1 ) + +endif( WITH_VORBIS ) + + +# LAME +if( WITH_LAME ) + + check_include_file( lame/lame.h HAVE_LAME_H ) + if( NOT HAVE_LAME_H ) + tde_message_fatal( "lame is requested, but not found on your system" ) + endif( ) + check_library_exists( mp3lame lame_init "" HAVE_LAME ) + if( NOT HAVE_LAME ) + tde_message_fatal( "mp3lame is requested, but not found on your system" ) + endif( ) + set( LAME_LIBRARIES mp3lame CACHE INTERNAL "" FORCE ) + +endif( WITH_LAME ) + + +# taglib +if( BUILD_JUK OR WITH_TAGLIB ) + + pkg_search_module( TAGLIB taglib ) + if( NOT TAGLIB_FOUND ) + tde_message_fatal( "taglib is required, but not found on your system" ) + endif( NOT TAGLIB_FOUND ) + + tde_save_and_set( CMAKE_REQUIRED_INCLUDES ${TAGLIB_INCLUDE_DIRS} ) + check_include_file_cxx( taglib/mpcfile.h HAVE_TAGLIB_MPC_H ) + tde_restore( CMAKE_REQUIRED_INCLUDES ) + +endif( BUILD_JUK OR WITH_TAGLIB ) diff --git a/akode_artsplugin/CMakeLists.txt b/akode_artsplugin/CMakeLists.txt new file mode 100644 index 00000000..6ff72d4d --- /dev/null +++ b/akode_artsplugin/CMakeLists.txt @@ -0,0 +1,84 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include( ConfigureChecks.cmake ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${AKODE_INCLUDE_DIRS} + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${AKODE_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### arts_akode (library) ###################### + +tde_add_library( arts_akode SHARED AUTOMOC + SOURCES + akodearts.cc akodePlayObject_impl.cpp + akodeMPCPlayObject_impl.cpp akodeMPEGPlayObject_impl.cpp + akodeFFMPEGPlayObject_impl.cpp akodeXiphPlayObject_impl.cpp + akodeVorbisStreamPlayObject_impl.cpp akodeSpeexStreamPlayObject_impl.cpp + VERSION 0.0.0 + LINK + mcop kmedia2_idl soundserver_idl artsflow artsflow_idl ${AKODE_LIBRARIES} + DESTINATION ${LIB_INSTALL_DIR} +) + +add_custom_command( + OUTPUT + akodearts.cc akodearts.h + akodearts.mcoptype akodearts.mcopclass + COMMAND ${ARTS_MCOPIDL_EXECUTABLE} -t + -I${ARTS_INCLUDEDIR} ${CMAKE_CURRENT_SOURCE_DIR}/akodearts.idl + DEPENDS akodearts.idl +) + + +##### other data ################################ + +install( + FILES + ${CMAKE_CURRENT_BINARY_DIR}/akodearts.mcoptype + ${CMAKE_CURRENT_BINARY_DIR}/akodearts.mcopclass + DESTINATION ${LIB_INSTALL_DIR}/mcop +) + +set ( AKODE_MCOP_CLASSES akodePlayObject.mcopclass ) + +if( HAVE_AKODE_MPEG ) + list( APPEND AKODE_MCOP_CLASSES akodeMPEGPlayObject.mcopclass ) +endif( ) + +if( HAVE_AKODE_MPC ) + list( APPEND AKODE_MCOP_CLASSES akodeMPCPlayObject.mcopclass ) +endif( ) + +if( HAVE_AKODE_XIPH ) + list( APPEND AKODE_MCOP_CLASSES + akodeXiphPlayObject.mcopclass + akodeVorbisStreamPlayObject.mcopclass + akodeSpeexStreamPlayObject.mcopclass ) +endif( ) + +if( HAVE_AKODE_FFMPEG ) + list( APPEND AKODE_MCOP_CLASSES akodeFFMPEGPlayObject.mcopclass ) +endif( ) + +install( FILES ${AKODE_MCOP_CLASSES} DESTINATION ${LIB_INSTALL_DIR}/mcop ) diff --git a/akode_artsplugin/ConfigureChecks.cmake b/akode_artsplugin/ConfigureChecks.cmake new file mode 100644 index 00000000..83610b91 --- /dev/null +++ b/akode_artsplugin/ConfigureChecks.cmake @@ -0,0 +1,19 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_save_and_set( CMAKE_REQUIRED_LIBRARIES "${AKODE_LIBRARIES}" ) + +check_library_exists( akode_mpeg_decoder mpeg_decoder "${AKODE_LIBRARY_DIRS}" HAVE_AKODE_MPEG ) +check_library_exists( akode_mpc_decoder mpc_decoder "${AKODE_LIBRARY_DIRS}" HAVE_AKODE_MPC ) +check_library_exists( akode_xiph_decoder xiph_decoder "${AKODE_LIBRARY_DIRS}" HAVE_AKODE_XIPH ) +check_library_exists( akode_ffmpeg_decoder ffmpeg_decoder "${AKODE_LIBRARY_DIRS}" HAVE_AKODE_FFMPEG ) + +tde_restore( CMAKE_REQUIRED_LIBRARIES ) diff --git a/arts/CMakeLists.txt b/arts/CMakeLists.txt new file mode 100644 index 00000000..91bbae15 --- /dev/null +++ b/arts/CMakeLists.txt @@ -0,0 +1,18 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( builder ) +add_subdirectory( examples ) +add_subdirectory( gui ) +add_subdirectory( midi ) +add_subdirectory( modules ) +add_subdirectory( runtime ) +add_subdirectory( tools ) diff --git a/arts/builder/CMakeLists.txt b/arts/builder/CMakeLists.txt new file mode 100644 index 00000000..942cd3bf --- /dev/null +++ b/arts/builder/CMakeLists.txt @@ -0,0 +1,59 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( pics ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/arts/runtime + ${CMAKE_BINARY_DIR}/arts/runtime + ${CMAKE_BINARY_DIR} + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### artsbuilder (executable) ################## + +tde_add_executable( artsbuilder AUTOMOC + SOURCES + autorouter.cpp main.cpp propertypanelbase.ui + module.cpp propertypanel.cpp structure.cpp + retrievedlg.cpp createtool.cpp structureport.cpp + drawutils.cpp scomponent.cpp portposdlg.cpp + menumaker.cpp session.cpp dirmanager.cpp mwidget.cpp + execdlg.cpp qttableview.cpp interfacedlg.cpp + LINK + tdecore-shared tdeui-shared tdeio-shared artsbuilder-shared artskde-shared + mcop qtmcop artsflow_idl soundserver_idl + DEPENDENCIES + arts_builder_headers + DESTINATION ${BIN_INSTALL_DIR} +) + +add_custom_target( + arts_builder_headers + DEPENDS + ${CMAKE_CURRENT_BINARY_DIR}/propertypanelbase.h +) + + +##### other data ################################ + +install( FILES artsbuilder.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) +install( FILES x-artsbuilder.desktop DESTINATION ${MIME_INSTALL_DIR}/application ) +install( FILES artsbuilderui.rc DESTINATION ${DATA_INSTALL_DIR}/artsbuilder ) diff --git a/arts/builder/pics/CMakeLists.txt b/arts/builder/pics/CMakeLists.txt new file mode 100644 index 00000000..c0467a7d --- /dev/null +++ b/arts/builder/pics/CMakeLists.txt @@ -0,0 +1,25 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_install_icons( artsbuilder ) +tde_install_icons( action-artsbuilderexecute ) + +install( + FILES + Synth_ADD.xpm Synth_ATAN_SATURATE.xpm Synth_BUS_DOWNLINK.xpm + Synth_BUS_UPLINK.xpm Synth_DEBUG.xpm Synth_ENVELOPE_ADSR.xpm + Synth_FILEPLAY.xpm Synth_MIDI_DEBUG.xpm Synth_MUL.xpm Synth_PLAY.xpm + Synth_PLAY_WAV.xpm Synth_PSCALE.xpm Synth_SEQUENCE.xpm Synth_WAVE_SAW.xpm + Synth_WAVE_SIN.xpm Synth_WAVE_SQUARE.xpm Synth_WAVE_TRI.xpm Synth_XFADE.xpm + Synth_MOOG_VCF.xpm Synth_RC.xpm Synth_SHELVE_CUTOFF.xpm Synth_MULTI_ADD.xpm + Synth_AMAN_PLAY.xpm Synth_SEQUENCE_FREQ.png Synth_DIV.xpm + DESTINATION ${DATA_INSTALL_DIR}/artsbuilder/pics +) diff --git a/arts/examples/CMakeLists.txt b/arts/examples/CMakeLists.txt new file mode 100644 index 00000000..6ec25997 --- /dev/null +++ b/arts/examples/CMakeLists.txt @@ -0,0 +1,83 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( + FILES + README + example_adsr.arts + example_atan_saturate.arts + example_autopanner.arts + example_brickwall.arts + example_bus.arts + example_capture_wav.arts + example_cdelay.arts + example_cflanger.arts + example_data.arts + example_delay.arts + example_dtmf1.arts + example_equalizer.arts + example_fm.arts + example_freeverb.arts + example_moog.arts + example_multi_add.arts + example_noise.arts + example_pitchshift.arts + example_play_wave.arts + example_pscale.arts + example_pulse.arts + example_rc.arts + example_record.arts + example_sequence.arts + example_shelve_cutoff.arts + example_sine.arts + example_softsaw.arts + example_square.arts + example_stereobeep.arts + example_tremolo.arts + example_tri.arts + example_xfade.arts + instrument_full_square.arts + instrument_hihat.arts + instrument_neworgan.arts + instrument_nokind.arts + instrument_organ2.arts + instrument_simple_sin.arts + instrument_simple_square.arts + instrument_simple_tri.arts + instrument_slide.arts + instrument_slide1.arts + instrument_square.arts + instrument_tri.arts + template_Empty_Structure.arts + template_Instrument.arts + instrument_arts_all.arts-map + instrument_chirpdrum.arts + instrument_deepdrum.arts + DESTINATION ${DATA_INSTALL_DIR}/artsbuilder/examples +) + +install( + FILES + instrument_flexible_slide.arts + instrument_flexible_slide_GUI.arts + instrument_moog_vcf_tune.arts + instrument_moog_vcf_tune_GUI.arts + instrument_fm_horn.arts + effect_delay.arts + effect_delay_alone.arts + effect_flanger_alone.arts + mixer_element_simple.arts + mixer_element_eq.arts + mixer_element_eqfx.arts + template_Instrument_GUI.arts + template_Mixer_Element.arts + DESTINATION ${DATA_INSTALL_DIR}/artsbuilder/examples/todo +) diff --git a/arts/gui/CMakeLists.txt b/arts/gui/CMakeLists.txt new file mode 100644 index 00000000..8be415ea --- /dev/null +++ b/arts/gui/CMakeLists.txt @@ -0,0 +1,13 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( common ) +add_subdirectory( kde ) diff --git a/arts/gui/common/CMakeLists.txt b/arts/gui/common/CMakeLists.txt new file mode 100644 index 00000000..6fa63e44 --- /dev/null +++ b/arts/gui/common/CMakeLists.txt @@ -0,0 +1,70 @@ +################################################# +# +# (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_BINARY_DIR}/arts/runtime + ${CMAKE_BINARY_DIR} + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### artsgui (library) ######################### + +tde_add_library( artsgui_idl SHARED + SOURCES artsgui.cc + VERSION 0.0.0 + LINK mcop ${DL_LIBRARIES} ${ARTS_LIBRARIES} + DESTINATION ${LIB_INSTALL_DIR} +) + +tde_add_library( artsgui SHARED + SOURCES genericguifactory_impl.cc + VERSION 0.0.0 + LINK artsgui_idl-shared + DESTINATION ${LIB_INSTALL_DIR} +) + +add_custom_command( + OUTPUT + artsgui.cc artsgui.h + artsgui.mcoptype artsgui.mcopclass + COMMAND ${ARTS_MCOPIDL_EXECUTABLE} -t + -I${ARTS_INCLUDEDIR} ${CMAKE_CURRENT_SOURCE_DIR}/artsgui.idl + DEPENDS artsgui.idl +) + + +##### other data ################################ + +install( + FILES + artsgui.idl + ${CMAKE_CURRENT_BINARY_DIR}/artsgui.h + DESTINATION ${INCLUDE_INSTALL_DIR}/arts +) +install( + FILES + ${CMAKE_CURRENT_BINARY_DIR}/artsgui.mcoptype + ${CMAKE_CURRENT_BINARY_DIR}/artsgui.mcopclass + DESTINATION ${LIB_INSTALL_DIR}/mcop +) +install( + FILES GenericGuiFactory.mcopclass + DESTINATION ${LIB_INSTALL_DIR}/mcop/Arts +) diff --git a/arts/gui/kde/CMakeLists.txt b/arts/gui/kde/CMakeLists.txt new file mode 100644 index 00000000..fec23fc2 --- /dev/null +++ b/arts/gui/kde/CMakeLists.txt @@ -0,0 +1,74 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( mcopclass ) + +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/arts/runtime + ${CMAKE_BINARY_DIR}/arts/gui/common + ${CMAKE_BINARY_DIR} + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### artsgui_kde (library) ##################### + +tde_add_library( artsgui_kde SHARED AUTOMOC + SOURCES + kwidget_impl.cpp kbutton_impl.cpp + kpoti_impl.cpp kpoti.cpp kwidgetrepo.cpp kartswidget.cpp + klineedit_impl.cpp khbox_impl.cpp kvbox_impl.cpp kspinbox_impl.cpp + kcombobox_impl.cpp kfader.cpp kfader_impl.cpp kgraph_impl.cpp kgraph.cpp + kgraphline_impl.cpp kframe_impl.cpp klayoutbox_impl.cpp tdepopupbox_impl.cpp + klevelmeter_impl.cpp klevelmeter_small.cpp klevelmeter_linebars.cpp + klevelmeter_normalbars.cpp klevelmeter_firebars.cpp + ktickmarks_impl.cpp kvolumefader_impl.cpp klabel_impl.cpp + VERSION 0.0.0 + LINK + tdecore-shared tdeio-shared tdeui-shared tdefx-shared artsgui_idl-shared + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### artsgui (check program) ################### + +tde_add_check_executable( artstestgui + SOURCES + artstestgui.cpp + LINK + tdecore-shared tdeio-shared tdeui-shared tdefx-shared + qtmcop artsflow artsgui_idl-shared +) + +tde_add_check_executable( dbtest AUTOMOC + SOURCES + dbtest.cpp + LINK + tdecore-shared tdeio-shared tdeui-shared artsgui_kde-shared +) + + +##### other data ################################ + +install( + FILES + kartswidget.h kframe_impl.h kwidget_impl.h kwidgetrepo.h klayoutbox_impl.h + DESTINATION ${INCLUDE_INSTALL_DIR}/arts +) diff --git a/arts/gui/kde/Makefile.am b/arts/gui/kde/Makefile.am index 33b8f582..440af44f 100644 --- a/arts/gui/kde/Makefile.am +++ b/arts/gui/kde/Makefile.am @@ -21,7 +21,7 @@ libartsgui_kde_la_LDFLAGS = $(all_libraries) -no-undefined libartsgui_kde_la_COMPILE_FIRST = ../common/artsgui.h artstestgui_SOURCES = artstestgui.cpp -artstestgui_LDADD = -lqtmcop -ltdecore -lartsflow \ +artstestgui_LDADD = -lmcop -lqtmcop -ltdecore -lartsflow \ $(top_builddir)/arts/gui/common/libartsgui_idl.la artstestgui_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor diff --git a/arts/gui/kde/artstestgui.cpp b/arts/gui/kde/artstestgui.cpp index 5c3613d7..5f558a26 100644 --- a/arts/gui/kde/artstestgui.cpp +++ b/arts/gui/kde/artstestgui.cpp @@ -31,9 +31,9 @@ using namespace Arts; int main(int argc, char **argv) { - TQIOManager iomanager; + QIOManager iomanager; Dispatcher dispatcher(&iomanager); - TDEApplication application(argc, argv, "testgui"); + TDEApplication application(argc, argv, "testgui", true); ObjectManager::the()->provideCapability("kdegui"); diff --git a/arts/gui/kde/mcopclass/CMakeLists.txt b/arts/gui/kde/mcopclass/CMakeLists.txt new file mode 100644 index 00000000..56985bb5 --- /dev/null +++ b/arts/gui/kde/mcopclass/CMakeLists.txt @@ -0,0 +1,19 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( + FILES + Widget.mcopclass Button.mcopclass Poti.mcopclass + LineEdit.mcopclass HBox.mcopclass VBox.mcopclass SpinBox.mcopclass + Fader.mcopclass GraphLine.mcopclass LayoutBox.mcopclass + PopupBox.mcopclass LevelMeter.mcopclass Label.mcopclass + DESTINATION ${LIB_INSTALL_DIR}/mcop/Arts +) diff --git a/arts/midi/CMakeLists.txt b/arts/midi/CMakeLists.txt new file mode 100644 index 00000000..0b91a9fe --- /dev/null +++ b/arts/midi/CMakeLists.txt @@ -0,0 +1,89 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( mcopclass ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/arts/runtime + ${CMAKE_BINARY_DIR} + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### artsmidi (library) ######################## + +tde_add_library( artsmidi_idl SHARED + SOURCES artsmidi.cc + VERSION 0.0.0 + LINK ${ARTS_LIBRARIES} ${GLIB2_LIBRARIES} ${GTHREAD2_LIBRARIES} mcop artsflow artsflow_idl + DESTINATION ${LIB_INSTALL_DIR} +) + +tde_add_library( artsmidi SHARED + SOURCES + midimanager_impl.cc midiclient_impl.cc + miditest_impl.cc midimanagerport_impl.cc rawmidiport_impl.cc + systemmiditimer_impl.cc audiomiditimer_impl.cc miditimercommon.cc + audiosync_impl.cc audiotimer.cc alsamidigateway_impl.cc + alsamidiport_impl.cc midisyncgroup_impl.cc timestampmath.cc + VERSION 0.0.0 + LINK + artsmidi_idl-shared + DESTINATION ${LIB_INSTALL_DIR} +) + +add_custom_command( + OUTPUT + artsmidi.cc artsmidi.h + artsmidi.mcopclass artsmidi.mcoptype + COMMAND ${ARTS_MCOPIDL_EXECUTABLE} -t + -I${ARTS_INCLUDEDIR} ${CMAKE_CURRENT_SOURCE_DIR}/artsmidi.idl + DEPENDS artsmidi.idl +) + + +##### midisend (executable) ##################### + +tde_add_executable( midisend + SOURCES midisend.cc midimsg.c + LINK artsmidi_idl-shared + DESTINATION ${BIN_INSTALL_DIR} +) + +tde_add_check_executable( midisynctest + SOURCES midisynctest.cc + LINK artsmidi-shared soundserver_idl +) + + +##### other data ################################ + +install( + FILES + artsmidi.idl + ${CMAKE_CURRENT_BINARY_DIR}/artsmidi.h + DESTINATION ${INCLUDE_INSTALL_DIR}/arts +) + +install( + FILES + ${CMAKE_CURRENT_BINARY_DIR}/artsmidi.mcoptype + ${CMAKE_CURRENT_BINARY_DIR}/artsmidi.mcopclass + DESTINATION ${LIB_INSTALL_DIR}/mcop +) diff --git a/arts/midi/mcopclass/CMakeLists.txt b/arts/midi/mcopclass/CMakeLists.txt new file mode 100644 index 00000000..e7e3c319 --- /dev/null +++ b/arts/midi/mcopclass/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( FILES MidiManager.mcopclass DESTINATION ${LIB_INSTALL_DIR}/mcop/Arts ) diff --git a/arts/modules/CMakeLists.txt b/arts/modules/CMakeLists.txt new file mode 100644 index 00000000..9f37038c --- /dev/null +++ b/arts/modules/CMakeLists.txt @@ -0,0 +1,84 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( common ) +add_subdirectory( effects ) +add_subdirectory( mixers ) +add_subdirectory( synth ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/arts/gui/common + ${CMAKE_BINARY_DIR}/arts/midi + ${CMAKE_BINARY_DIR}/arts/modules/common + ${CMAKE_BINARY_DIR}/arts/modules/effects + ${CMAKE_BINARY_DIR}/arts/modules/mixers + ${CMAKE_BINARY_DIR}/arts/modules/synth + ${CMAKE_BINARY_DIR}/arts/runtime + ${CMAKE_BINARY_DIR} + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### artsmodules (library) ##################### + +tde_add_library( artsmodules SHARED + SOURCES + artsmodules.cc + VERSION 0.0.0 + LINK + tdecore-shared ${DL_LIBRARIES} mcop artsflow + artsbuilder-shared artsgui_idl-shared artsmidi_idl-shared + artsmodulescommon-shared artsmodulessynth-shared + artsmoduleseffects-shared artsmodulesmixers-shared + DESTINATION ${LIB_INSTALL_DIR} +) + +add_custom_command( + OUTPUT + artsmodules.cc artsmodules.h + artsmodules.mcoptype artsmodules.mcopclass + COMMAND ${ARTS_MCOPIDL_EXECUTABLE} -t + -I${CMAKE_SOURCE_DIR}/arts/gui/common + -I${CMAKE_SOURCE_DIR}/arts/midi + -I${CMAKE_SOURCE_DIR}/arts/modules + -I${CMAKE_SOURCE_DIR}/arts/modules/common + -I${CMAKE_SOURCE_DIR}/arts/modules/effects + -I${CMAKE_SOURCE_DIR}/arts/modules/mixers + -I${CMAKE_SOURCE_DIR}/arts/modules/synth + -I${ARTS_INCLUDEDIR} + ${CMAKE_CURRENT_SOURCE_DIR}/artsmodules.idl + DEPENDS artsmodules.idl +) + + +##### other data ################################ + +install( + FILES + artsmodules.idl + ${CMAKE_CURRENT_BINARY_DIR}/artsmodules.h + DESTINATION ${INCLUDE_INSTALL_DIR}/arts +) + +install( + FILES + ${CMAKE_CURRENT_BINARY_DIR}/artsmodules.mcoptype + ${CMAKE_CURRENT_BINARY_DIR}/artsmodules.mcopclass + DESTINATION ${LIB_INSTALL_DIR}/mcop +) diff --git a/arts/modules/common/CMakeLists.txt b/arts/modules/common/CMakeLists.txt new file mode 100644 index 00000000..329fb104 --- /dev/null +++ b/arts/modules/common/CMakeLists.txt @@ -0,0 +1,84 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( mcopclass ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/arts/modules + ${CMAKE_BINARY_DIR}/arts/gui/common + ${CMAKE_BINARY_DIR}/arts/midi + ${CMAKE_BINARY_DIR}/arts/modules + ${CMAKE_BINARY_DIR}/arts/modules/common + ${CMAKE_BINARY_DIR}/arts/modules/effects + ${CMAKE_BINARY_DIR}/arts/modules/mixers + ${CMAKE_BINARY_DIR}/arts/modules/synth + ${CMAKE_BINARY_DIR}/arts/runtime + ${CMAKE_BINARY_DIR} + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### artsmodulescommon (library) ############### + +tde_add_library( artsmodulescommon SHARED + SOURCES + artsmodulescommon.cc effectrackslot_impl.cc + env_container_impl.cc env_context_impl.cc + env_effectrackitem_impl.cc env_instrumentitem_impl.cc + env_item_impl.cc env_mixeritem_impl.cc + VERSION 0.0.0 + LINK + artsgui_idl-shared artsmidi_idl-shared artsmodulessynth-shared + tdecore-shared mcop artsflow artsflow_idl gthread-2.0 ${ARTS_LIBRARIES} + DESTINATION ${LIB_INSTALL_DIR} +) + +add_custom_command( + OUTPUT + artsmodulescommon.cc artsmodulescommon.h + artsmodulescommon.mcopclass artsmodulescommon.mcoptype + COMMAND ${ARTS_MCOPIDL_EXECUTABLE} -t + -I${CMAKE_SOURCE_DIR}/arts/gui/common + -I${CMAKE_SOURCE_DIR}/arts/midi + -I${CMAKE_SOURCE_DIR}/arts/modules + -I${CMAKE_SOURCE_DIR}/arts/modules/common + -I${CMAKE_SOURCE_DIR}/arts/modules/effects + -I${CMAKE_SOURCE_DIR}/arts/modules/mixers + -I${CMAKE_SOURCE_DIR}/arts/modules/synth + -I${ARTS_INCLUDEDIR} + ${CMAKE_CURRENT_SOURCE_DIR}/artsmodulescommon.idl + DEPENDS artsmodulescommon.idl +) + + +##### other data ################################ + +install( + FILES + artsmodulescommon.idl + ${CMAKE_CURRENT_BINARY_DIR}/artsmodulescommon.h + DESTINATION ${INCLUDE_INSTALL_DIR}/arts +) + +install( + FILES + ${CMAKE_CURRENT_BINARY_DIR}/artsmodulescommon.mcoptype + ${CMAKE_CURRENT_BINARY_DIR}/artsmodulescommon.mcopclass + DESTINATION ${LIB_INSTALL_DIR}/mcop +) diff --git a/arts/modules/common/mcopclass/CMakeLists.txt b/arts/modules/common/mcopclass/CMakeLists.txt new file mode 100644 index 00000000..40d34d7a --- /dev/null +++ b/arts/modules/common/mcopclass/CMakeLists.txt @@ -0,0 +1,27 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( + FILES + EffectRackGuiFactory.mcopclass + MixerGuiFactory.mcopclass + DESTINATION ${LIB_INSTALL_DIR}/mcop/Arts +) + +install( + FILES + InstrumentItem.mcopclass + Container.mcopclass + MixerItem.mcopclass + EffectRackItem.mcopclass + InstrumentItemGuiFactory.mcopclass + DESTINATION ${LIB_INSTALL_DIR}/mcop/Arts/Environment +) diff --git a/arts/modules/effects/CMakeLists.txt b/arts/modules/effects/CMakeLists.txt new file mode 100644 index 00000000..58c847d9 --- /dev/null +++ b/arts/modules/effects/CMakeLists.txt @@ -0,0 +1,90 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( freeverb ) +add_subdirectory( mcopclass ) + +include_directories( + ${CMAKE_SOURCE_DIR}/arts/gui/kde + ${CMAKE_SOURCE_DIR}/arts/modules/synth + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/arts/gui/common + ${CMAKE_BINARY_DIR}/arts/midi + ${CMAKE_BINARY_DIR}/arts/modules + ${CMAKE_BINARY_DIR}/arts/modules/common + ${CMAKE_BINARY_DIR}/arts/modules/synth + ${CMAKE_BINARY_DIR}/arts/runtime + ${CMAKE_BINARY_DIR} + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### artsmoduleseffects (library) ############## + +tde_add_library( artsmoduleseffects SHARED AUTOMOC + SOURCES + artsmoduleseffects.cc + fivebandmonocomplexeq_impl.cc + monostereoconversion_impl.cc + synth_stereo_pitch_shift_impl.cc synth_stereo_pitch_shift_fft_impl.cc + synth_voice_removal_impl.cc voiceremovalguifactory_impl.cc + synth_stereo_compressor_impl.cc stereocompressorguifactory_impl.cc + synth_stereo_fir_equalizer_impl.cc + synth_freeverb_impl.cc freeverbguifactory_impl.cc + effect_wavecapture_impl.cc + kstereovolumecontrolgui_impl.cpp stereovolumecontrolguifactory_impl.cpp + VERSION 0.0.0 + EMBED + freeverb-static + LINK + artsgui_idl-shared artsgui_kde-shared + artsmodulescommon-shared + mcop artsflow artsflow_idl ${ARTS_LIBRARIES} + DESTINATION ${LIB_INSTALL_DIR} +) + +add_custom_command( + OUTPUT + artsmoduleseffects.cc artsmoduleseffects.h + artsmoduleseffects.mcopclass artsmoduleseffects.mcoptype + COMMAND ${ARTS_MCOPIDL_EXECUTABLE} -t + -I${CMAKE_SOURCE_DIR}/arts/gui/common + -I${CMAKE_SOURCE_DIR}/arts/midi + -I${CMAKE_SOURCE_DIR}/arts/modules/common + -I${CMAKE_SOURCE_DIR}/arts/modules/synth + -I${ARTS_INCLUDEDIR} + ${CMAKE_CURRENT_SOURCE_DIR}/artsmoduleseffects.idl + DEPENDS artsmoduleseffects.idl +) + + +##### other data ################################ + +install( + FILES + artsmoduleseffects.idl + ${CMAKE_CURRENT_BINARY_DIR}/artsmoduleseffects.h + DESTINATION ${INCLUDE_INSTALL_DIR}/arts +) + +install( + FILES + ${CMAKE_CURRENT_BINARY_DIR}/artsmoduleseffects.mcoptype + ${CMAKE_CURRENT_BINARY_DIR}/artsmoduleseffects.mcopclass + DESTINATION ${LIB_INSTALL_DIR}/mcop +) diff --git a/arts/modules/effects/freeverb/CMakeLists.txt b/arts/modules/effects/freeverb/CMakeLists.txt new file mode 100644 index 00000000..a634252d --- /dev/null +++ b/arts/modules/effects/freeverb/CMakeLists.txt @@ -0,0 +1,34 @@ +################################################# +# +# (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_BINARY_DIR}/arts/gui/common + ${CMAKE_BINARY_DIR}/arts/midi + ${CMAKE_BINARY_DIR}/arts/modules + ${CMAKE_BINARY_DIR}/arts/runtime + ${CMAKE_BINARY_DIR} + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### freeverb (library) ######################## + +tde_add_library( freeverb STATIC_PIC + SOURCES allpass.cpp comb.cpp revmodel.cpp +) diff --git a/arts/modules/effects/mcopclass/CMakeLists.txt b/arts/modules/effects/mcopclass/CMakeLists.txt new file mode 100644 index 00000000..17a2162a --- /dev/null +++ b/arts/modules/effects/mcopclass/CMakeLists.txt @@ -0,0 +1,34 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( + FILES + FiveBandMonoComplexEQ.mcopclass + FiveBandMonoComplexEQGuiFactory.mcopclass + MonoToStereo.mcopclass + StereoToMono.mcopclass + StereoBalance.mcopclass + StereoBalanceGuiFactory.mcopclass + Synth_VOICE_REMOVAL.mcopclass + VoiceRemovalGuiFactory.mcopclass + Synth_STEREO_COMPRESSOR.mcopclass + StereoCompressorGuiFactory.mcopclass + Synth_STEREO_PITCH_SHIFT.mcopclass + Synth_STEREO_PITCH_SHIFT_FFT.mcopclass + Synth_STEREO_FIR_EQUALIZER.mcopclass + StereoFirEqualizerGuiFactory.mcopclass + Synth_FREEVERB.mcopclass + FreeverbGuiFactory.mcopclass + Effect_WAVECAPTURE.mcopclass + StereoVolumeControlGui.mcopclass + StereoVolumeControlGuiFactory.mcopclass + DESTINATION ${LIB_INSTALL_DIR}/mcop/Arts +) diff --git a/arts/modules/mixers/CMakeLists.txt b/arts/modules/mixers/CMakeLists.txt new file mode 100644 index 00000000..98e7147d --- /dev/null +++ b/arts/modules/mixers/CMakeLists.txt @@ -0,0 +1,81 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( mcopclass ) + +include_directories( + ${CMAKE_SOURCE_DIR}/arts/modules + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/arts/gui/common + ${CMAKE_BINARY_DIR}/arts/midi + ${CMAKE_BINARY_DIR}/arts/modules + ${CMAKE_BINARY_DIR}/arts/modules/common + ${CMAKE_BINARY_DIR}/arts/modules/effects + ${CMAKE_BINARY_DIR}/arts/modules/synth + ${CMAKE_BINARY_DIR}/arts/runtime + ${CMAKE_BINARY_DIR} + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### artsmodulesmixers (library) ############### + +tde_add_library( artsmodulesmixers SHARED + SOURCES + artsmodulesmixers.cc + monosimplemixerchannel_impl.cc monosimplemixerchannelguifactory_impl.cc + simplemixerchannel_impl.cc simplemixerchannelguifactory_impl.cc + littlestereomixerchannel_impl.cc + VERSION 0.0.0 + LINK + artsgui_idl-shared artsmodulescommon-shared artsmoduleseffects-shared + mcop artsflow artsflow_idl ${ARTS_LIBRARIES} + DESTINATION ${LIB_INSTALL_DIR} +) + +add_custom_command( + OUTPUT + artsmodulesmixers.cc artsmodulesmixers.h + artsmodulesmixers.mcopclass artsmodulesmixers.mcoptype + COMMAND ${ARTS_MCOPIDL_EXECUTABLE} -t + -I${CMAKE_SOURCE_DIR}/arts/gui/common + -I${CMAKE_SOURCE_DIR}/arts/midi + -I${CMAKE_SOURCE_DIR}/arts/modules + -I${CMAKE_SOURCE_DIR}/arts/modules/common + -I${CMAKE_SOURCE_DIR}/arts/modules/synth + -I${ARTS_INCLUDEDIR} + ${CMAKE_CURRENT_SOURCE_DIR}/artsmodulesmixers.idl + DEPENDS artsmodulesmixers.idl +) + + +##### other data ################################ + +install( + FILES + artsmodulesmixers.idl + ${CMAKE_CURRENT_BINARY_DIR}/artsmodulesmixers.h + DESTINATION ${INCLUDE_INSTALL_DIR}/arts +) + +install( + FILES + ${CMAKE_CURRENT_BINARY_DIR}/artsmodulesmixers.mcoptype + ${CMAKE_CURRENT_BINARY_DIR}/artsmodulesmixers.mcopclass + DESTINATION ${LIB_INSTALL_DIR}/mcop +) diff --git a/arts/modules/mixers/mcopclass/CMakeLists.txt b/arts/modules/mixers/mcopclass/CMakeLists.txt new file mode 100644 index 00000000..c78af5a9 --- /dev/null +++ b/arts/modules/mixers/mcopclass/CMakeLists.txt @@ -0,0 +1,21 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( + FILES + MonoSimpleMixerChannel.mcopclass + MonoSimpleMixerChannelGuiFactory.mcopclass + SimpleMixerChannel.mcopclass + SimpleMixerChannelGuiFactory.mcopclass + LittleStereoMixerChannel.mcopclass + LittleStereoMixerChannelGuiFactory.mcopclass + DESTINATION ${LIB_INSTALL_DIR}/mcop/Arts +) diff --git a/arts/modules/synth/CMakeLists.txt b/arts/modules/synth/CMakeLists.txt new file mode 100644 index 00000000..4362aaa7 --- /dev/null +++ b/arts/modules/synth/CMakeLists.txt @@ -0,0 +1,85 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( mcopclass ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/arts/gui/common + ${CMAKE_BINARY_DIR}/arts/midi + ${CMAKE_BINARY_DIR}/arts/modules + ${CMAKE_BINARY_DIR}/arts/runtime + ${CMAKE_BINARY_DIR} + ${ARTS_INCLUDE_DIRS} + ${GLIB2_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### artsmoudlessynth (library) ################ + +tde_add_library( artsmodulessynth SHARED + SOURCES + artsmodulessynth.cc + synth_xfade_impl.cc synth_autopanner_impl.cc synth_delay_impl.cc + synth_cdelay_impl.cc synth_envelope_adsr_impl.cc synth_pscale_impl.cc + synth_tremolo_impl.cc synth_fx_cflanger_impl.cc synth_compressor_impl.cc + synth_pitch_shift_impl.cc synth_pitch_shift_fft_impl.cc c_filter_stuff.c + synth_shelve_cutoff_impl.cc synth_brickwall_limiter_impl.cc + synth_std_equalizer_impl.cc synth_rc_impl.cc synth_moog_vcf_impl.cc + synth_atan_saturate_impl.cc synth_fm_source_impl.cc + synth_wave_tri_impl.cc synth_noise_impl.cc synth_wave_softsaw_impl.cc + synth_wave_square_impl.cc synth_wave_pulse_impl.cc synth_osc_impl.cc + synth_play_pat_impl.cc synth_capture_wav_impl.cc + synth_midi_test_impl.cc synth_sequence_impl.cc synth_sequence_freq_impl.cc + synth_midi_debug_impl.cc objectcache_impl.cc synth_nil_impl.cc + synth_debug_impl.cc synth_data_impl.cc synth_div_impl.cc + VERSION 0.0.0 + LINK + artsbuilder-shared artsmidi_idl-shared + mcop artsflow artsflow_idl artsgsl ${ARTS_LIBRARIES} ${GLIB2_LIBRARIES} + DESTINATION ${LIB_INSTALL_DIR} +) + +add_custom_command( + OUTPUT + artsmodulessynth.cc artsmodulessynth.h + artsmodulessynth.mcopclass artsmodulessynth.mcoptype + COMMAND ${ARTS_MCOPIDL_EXECUTABLE} -t + -I${CMAKE_SOURCE_DIR}/arts/gui/common + -I${CMAKE_SOURCE_DIR}/arts/midi + -I${ARTS_INCLUDEDIR} + ${CMAKE_CURRENT_SOURCE_DIR}/artsmodulessynth.idl + DEPENDS artsmodulessynth.idl +) + + +##### other data ################################ + +install( + FILES + artsmodulessynth.idl + ${CMAKE_CURRENT_BINARY_DIR}/artsmodulessynth.h + DESTINATION ${INCLUDE_INSTALL_DIR}/arts +) + +install( + FILES + ${CMAKE_CURRENT_BINARY_DIR}/artsmodulessynth.mcoptype + ${CMAKE_CURRENT_BINARY_DIR}/artsmodulessynth.mcopclass + DESTINATION ${LIB_INSTALL_DIR}/mcop +) diff --git a/arts/modules/synth/mcopclass/CMakeLists.txt b/arts/modules/synth/mcopclass/CMakeLists.txt new file mode 100644 index 00000000..fdda9cca --- /dev/null +++ b/arts/modules/synth/mcopclass/CMakeLists.txt @@ -0,0 +1,49 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( + FILES + Synth_XFADE.mcopclass + Synth_AUTOPANNER.mcopclass + Synth_DELAY.mcopclass + Synth_CDELAY.mcopclass + Synth_ENVELOPE_ADSR.mcopclass + Synth_PSCALE.mcopclass + Synth_TREMOLO.mcopclass + Synth_FX_CFLANGER.mcopclass + Synth_COMPRESSOR.mcopclass + Synth_PITCH_SHIFT.mcopclass + Synth_PITCH_SHIFT_FFT.mcopclass + Synth_SHELVE_CUTOFF.mcopclass + Synth_BRICKWALL_LIMITER.mcopclass + Synth_STD_EQUALIZER.mcopclass + Synth_RC.mcopclass + Synth_MOOG_VCF.mcopclass + Synth_ATAN_SATURATE.mcopclass + Synth_FM_SOURCE.mcopclass + Synth_WAVE_TRI.mcopclass + Synth_NOISE.mcopclass + Synth_WAVE_SOFTSAW.mcopclass + Synth_WAVE_SQUARE.mcopclass + Synth_WAVE_PULSE.mcopclass + Synth_OSC.mcopclass + Synth_PLAY_PAT.mcopclass + Synth_CAPTURE_WAV.mcopclass + Synth_DIV.mcopclass + Synth_MIDI_TEST.mcopclass + Synth_SEQUENCE.mcopclass + Synth_SEQUENCE_FREQ.mcopclass + Synth_MIDI_DEBUG.mcopclass + Synth_DATA.mcopclass + Synth_DEBUG.mcopclass + Synth_NIL.mcopclass + DESTINATION ${LIB_INSTALL_DIR}/mcop/Arts +) diff --git a/arts/runtime/CMakeLists.txt b/arts/runtime/CMakeLists.txt new file mode 100644 index 00000000..794ec7f5 --- /dev/null +++ b/arts/runtime/CMakeLists.txt @@ -0,0 +1,74 @@ +################################################# +# +# (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_BINARY_DIR} + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + +add_definitions( + -DEXAMPLES_DIR="${DATA_INSTALL_DIR}/artsbuilder/examples" +) + + +##### artsbuilder (library) ##################### + +tde_add_library( artsbuilder SHARED + SOURCES + artsbuilder.cc sequenceutils.cc + structurebuilder_impl.cc structures_impl.cc moduleinfo.cc + compatibility.cc localfactory_impl.cc artsbuilderloader_impl.cc + VERSION 0.0.0 + LINK + mcop artsflow artsflow_idl ${DL_LIBRARIES} ${ARTS_LIBRARIES} + DESTINATION ${LIB_INSTALL_DIR} +) + +add_custom_command( + OUTPUT + artsbuilder.cc artsbuilder.h + artsbuilder.mcoptype artsbuilder.mcopclass + COMMAND ${ARTS_MCOPIDL_EXECUTABLE} -t + -I${ARTS_INCLUDEDIR} ${CMAKE_CURRENT_SOURCE_DIR}/artsbuilder.idl + DEPENDS artsbuilder.idl +) + + +##### other data ################################ + +install( + FILES + artsbuilder.idl + ${CMAKE_CURRENT_BINARY_DIR}/artsbuilder.h + DESTINATION ${INCLUDE_INSTALL_DIR}/arts +) + +install( + FILES + ${CMAKE_CURRENT_BINARY_DIR}/artsbuilder.mcoptype + ${CMAKE_CURRENT_BINARY_DIR}/artsbuilder.mcopclass + DESTINATION ${LIB_INSTALL_DIR}/mcop +) + +install( + FILES + StructureBuilder.mcopclass StructureDesc.mcopclass + LocalFactory.mcopclass ArtsBuilderLoader.mcopclass + DESTINATION ${LIB_INSTALL_DIR}/mcop/Arts +) diff --git a/arts/tools/CMakeLists.txt b/arts/tools/CMakeLists.txt new file mode 100644 index 00000000..f91430b9 --- /dev/null +++ b/arts/tools/CMakeLists.txt @@ -0,0 +1,104 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( pics ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/arts/gui/kde + ${CMAKE_BINARY_DIR}/arts/gui/common + ${CMAKE_BINARY_DIR}/arts/midi + ${CMAKE_BINARY_DIR}/arts/modules + ${CMAKE_BINARY_DIR}/arts/modules/common + ${CMAKE_BINARY_DIR}/arts/modules/effects + ${CMAKE_BINARY_DIR}/arts/modules/mixers + ${CMAKE_BINARY_DIR}/arts/modules/synth + ${CMAKE_BINARY_DIR} + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### artscontrolsupport (library) ############## + +tde_add_library( artscontrolsupport SHARED AUTOMOC + SOURCES + templateview.cpp artsactions.cpp + audiomanager.cpp choosebusdlg.cpp + midimanagerview.cpp midimanagerdlg.ui midimanagerwidget.ui + midiportdlg.cpp midiinstdlg.cpp environmentview.cpp + fftscopeview.cpp mediatypesview.cpp statusview.cpp + VERSION 1.0.0 + LINK + DCOP-shared tdecore-shared tdeui-shared artskde-shared + mcop qtmcop artsflow artsflow_idl soundserver_idl + artsgui_idl-shared artsgui_kde-shared artsmodules-shared + artsmoduleseffects-shared artsmodulessynth-shared artsmodulescommon-shared + artsmidi-shared artsmidi_idl-shared + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### artscontrolapplet (library) ############### + +tde_add_library( artscontrolapplet SHARED AUTOMOC + SOURCES artscontrolapplet.cpp + VERSION 1.0.0 + LINK + DCOP-shared tdecore-shared tdeui-shared artskde-shared + mcop qtmcop artsflow artsflow_idl soundserver_idl + artsgui_idl-shared artsgui_kde-shared + artsmoduleseffects-shared artsmodulessynth-shared artsmodulescommon-shared + artsmidi-shared artsmidi_idl-shared + artscontrolsupport-shared + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### artscontrol (executable) ################## + +tde_add_executable( artscontrol AUTOMOC + SOURCES + main.cpp levelmeters.cpp + LINK + DCOP-shared tdecore-shared tdeui-shared tdeio-shared artskde-shared + mcop qtmcop artsflow artsflow_idl soundserver_idl + artsgui_idl-shared artsgui_kde-shared + artsmoduleseffects-shared artsmodulessynth-shared artsmodulescommon-shared + artsmidi-shared artsmidi_idl-shared + artscontrolsupport-shared + DEPENDENCIES arts_builder_headers + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( + FILES artscontrol.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} +) + +install( + FILES artscontrolapplet.desktop + DESTINATION ${DATA_INSTALL_DIR}/kicker/applets +) + +install( + FILES artscontrol.rc artsmidimanagerview.rc + DESTINATION ${DATA_INSTALL_DIR}/artscontrol +) diff --git a/arts/tools/pics/CMakeLists.txt b/arts/tools/pics/CMakeLists.txt new file mode 100644 index 00000000..76b06133 --- /dev/null +++ b/arts/tools/pics/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_install_icons( ) diff --git a/audiofile_artsplugin/CMakeLists.txt b/audiofile_artsplugin/CMakeLists.txt new file mode 100644 index 00000000..90c863d6 --- /dev/null +++ b/audiofile_artsplugin/CMakeLists.txt @@ -0,0 +1,60 @@ +################################################# +# +# (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_BINARY_DIR} + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### arts_audiofile (library) ################## + +tde_add_library( arts_audiofile SHARED AUTOMOC + SOURCES + audiofilearts.cc audiofilePlayObjectI.cpp + VERSION 0.0.0 + LINK + mcop kmedia2_idl soundserver_idl artsflow artsflow_idl ${AUDIOFILE_LIBRARIES} + DESTINATION ${LIB_INSTALL_DIR} +) + +add_custom_command( + OUTPUT + audiofilearts.cc audiofilearts.h + audiofilearts.mcoptype audiofilearts.mcopclass + COMMAND ${ARTS_MCOPIDL_EXECUTABLE} -t + -I${ARTS_INCLUDEDIR} ${CMAKE_CURRENT_SOURCE_DIR}/audiofilearts.idl + DEPENDS audiofilearts.idl +) + + +##### other data ################################ + +install( + FILES + ${CMAKE_CURRENT_BINARY_DIR}/audiofilearts.mcoptype + ${CMAKE_CURRENT_BINARY_DIR}/audiofilearts.mcopclass + DESTINATION ${LIB_INSTALL_DIR}/mcop +) + +install( + FILES + audiofilePlayObject.mcopclass + DESTINATION ${LIB_INSTALL_DIR}/mcop/Arts +) diff --git a/config.h.cmake b/config.h.cmake index 14223255..aecf260f 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -1 +1,53 @@ + +#cmakedefine OS_AIX 1 +#cmakedefine OS_Linux 1 +#cmakedefine OS_BSD 1 +#cmakedefine OS_SunOS 1 +#cmakedefine OS_IRIX 1 +#cmakedefine OS_HPUX 1 + +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most + significant byte first (like Motorola and SPARC, unlike Intel). */ +#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@ + +#cmakedefine HAVE_X86_SSE 1 +#cmakedefine MMX_SUPPORT 1 + +#cmakedefine HAVE_STDINT_H 1 +#cmakedefine HAVE_INTTYPES_H 1 + +#cmakedefine HAVE_ARTS 1 +#cmakedefine HAVE_AKODE 1 #cmakedefine HAVE_LIBASOUND2 1 + +#cmakedefine HAVE_SOUNDCARD_H 1 +#cmakedefine HAVE_SYS_SOUNDCARD_H 1 +#cmakedefine HAVE_MACHINE_SOUNDCARD_H 1 + +#cmakedefine HAVE_VORBIS 1 +#cmakedefine HAVE_OGG_VORBIS 1 + +/* mpeglib */ +#cmakedefine ATTRIBUTE_ALIGNED_MAX @ATTRIBUTE_ALIGNED_MAX@ +#cmakedefine CDDA_PARANOIA 1 +#cmakedefine HAVE_STRLCPY 1 +#cmakedefine HAVE_STRLCPY_PROTO 1 +#cmakedefine X11_SHARED_MEM 1 +#cmakedefine X11_DGA2 1 +#cmakedefine X11_XV 1 +#cmakedefine X11_XVIDMODE 1 + +/* juk */ +#cmakedefine HAVE_GSTREAMER 1 +#cmakedefine HAVE_MUSICBRAINZ @HAVE_MUSICBRAINZ@ + +/* kscd */ +#cmakedefine BUILD_CDDA 1 +#cmakedefine USE_ARTS 1 + +/* noatun */ +#cmakedefine NOATUN_WITHOUT_ARTS_EFFECTS 1 + +/* xine_artsplugin */ +#cmakedefine HAVE_XSHMGETEVENTBASE 1 +#cmakedefine ao_new_port @ao_new_port@ diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt new file mode 100644 index 00000000..5ec6480c --- /dev/null +++ b/doc/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_auto_add_subdirectories() diff --git a/doc/artsbuilder/CMakeLists.txt b/doc/artsbuilder/CMakeLists.txt new file mode 100644 index 00000000..3bcee979 --- /dev/null +++ b/doc/artsbuilder/CMakeLists.txt @@ -0,0 +1,13 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( images ) +tde_create_handbook( DESTINATION artsbuilder ) diff --git a/doc/artsbuilder/images/CMakeLists.txt b/doc/artsbuilder/images/CMakeLists.txt new file mode 100644 index 00000000..fbddddd7 --- /dev/null +++ b/doc/artsbuilder/images/CMakeLists.txt @@ -0,0 +1,16 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +file( GLOB artsbuilder_images "*.png" ) +install( + FILES ${artsbuilder_images} + DESTINATION ${HTML_INSTALL_DIR}/en/artsbuilder/images +) diff --git a/doc/juk/CMakeLists.txt b/doc/juk/CMakeLists.txt new file mode 100644 index 00000000..054882f9 --- /dev/null +++ b/doc/juk/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_create_handbook( DESTINATION juk ) diff --git a/doc/kaboodle/CMakeLists.txt b/doc/kaboodle/CMakeLists.txt new file mode 100644 index 00000000..04958930 --- /dev/null +++ b/doc/kaboodle/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_create_handbook( DESTINATION kaboodle ) diff --git a/doc/kaudiocreator/CMakeLists.txt b/doc/kaudiocreator/CMakeLists.txt new file mode 100644 index 00000000..d5f945ce --- /dev/null +++ b/doc/kaudiocreator/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_create_handbook( DESTINATION kaudiocreator ) diff --git a/doc/kmix/CMakeLists.txt b/doc/kmix/CMakeLists.txt new file mode 100644 index 00000000..f3305250 --- /dev/null +++ b/doc/kmix/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_create_handbook( DESTINATION kmix ) diff --git a/doc/krec/CMakeLists.txt b/doc/krec/CMakeLists.txt new file mode 100644 index 00000000..afee3cb8 --- /dev/null +++ b/doc/krec/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_create_handbook( DESTINATION krec ) diff --git a/doc/kscd/CMakeLists.txt b/doc/kscd/CMakeLists.txt new file mode 100644 index 00000000..703138cb --- /dev/null +++ b/doc/kscd/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_create_handbook( DESTINATION kscd ) diff --git a/doc/noatun/CMakeLists.txt b/doc/noatun/CMakeLists.txt new file mode 100644 index 00000000..409fd311 --- /dev/null +++ b/doc/noatun/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_create_handbook( DESTINATION noatun ) diff --git a/doc/tdeioslave/CMakeLists.txt b/doc/tdeioslave/CMakeLists.txt new file mode 100644 index 00000000..e9bb894c --- /dev/null +++ b/doc/tdeioslave/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( audiocd ) diff --git a/doc/tdeioslave/audiocd/CMakeLists.txt b/doc/tdeioslave/audiocd/CMakeLists.txt new file mode 100644 index 00000000..a4b3d4a3 --- /dev/null +++ b/doc/tdeioslave/audiocd/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_create_handbook( DESTINATION tdeioslave/audiocd ) diff --git a/doc/tdemid/CMakeLists.txt b/doc/tdemid/CMakeLists.txt new file mode 100644 index 00000000..ca79f4b1 --- /dev/null +++ b/doc/tdemid/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_create_handbook( DESTINATION tdemid ) diff --git a/juk/CMakeLists.txt b/juk/CMakeLists.txt new file mode 100644 index 00000000..aed153f5 --- /dev/null +++ b/juk/CMakeLists.txt @@ -0,0 +1,132 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include( ConfigureChecks.cmake ) + +add_subdirectory( pics ) +tde_install_icons( ) + +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${AKODE_INCLUDE_DIRS} + ${ARTS_INCLUDE_DIRS} + ${GST_INCLUDE_DIRS} + ${TAGLIB_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${AKODE_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### juk (executable) ########################## + +tde_add_executable( juk AUTOMOC + SOURCES + advancedsearchdialog.cpp + actioncollection.cpp + akodeplayer.cpp + artsplayer.cpp + cache.cpp + categoryreaderinterface.cpp + collectionlist.cpp + coverdialog.cpp + coverdialogbase.ui + covericonview.cpp + coverinfo.cpp + covermanager.cpp + deletedialog.cpp + deletedialogbase.ui + directorylist.cpp + directorylistbase.ui + dynamicplaylist.cpp + exampleoptions.cpp + exampleoptionsbase.ui + folderplaylist.cpp + filehandle.cpp + filerenamer.cpp + filerenamerbase.ui + filerenameroptions.cpp + filerenameroptionsbase.ui + filerenamerconfigdlg.cpp + gstreamerplayer.cpp + webimagefetcher.cpp + webimagefetcherdialog.cpp + historyplaylist.cpp + juk.cpp + jukIface.skel + k3bexporter.cpp + keydialog.cpp + main.cpp + mediafiles.cpp + musicbrainzquery.cpp + nowplaying.cpp + playermanager.cpp + playlist.cpp + playlistbox.cpp + playlistcollection.cpp + playlistinterface.cpp + playlistitem.cpp + playlistsearch.cpp + playlistsplitter.cpp + searchplaylist.cpp + searchwidget.cpp + slideraction.cpp + sortedstringlist.cpp + splashscreen.cpp + statuslabel.cpp + stringshare.cpp + systemtray.cpp + tag.cpp + tageditor.cpp + tagguesser.cpp + tagguesserconfigdlg.cpp + tagguesserconfigdlgwidget.ui + tagrenameroptions.cpp + tagtransactionmanager.cpp + trackpickerdialog.cpp + trackpickerdialogbase.ui + tracksequenceiterator.cpp + tracksequencemanager.cpp + treeviewitemplaylist.cpp + upcomingplaylist.cpp + ktrm.cpp + viewmode.cpp + LINK + DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared tdehtml-shared tdetexteditor-shared + mcop kmedia2_idl soundserver_idl artsflow_idl artskde-shared ${ARTS_LIBRARIES} ${AKODE_LIBRARIES} + ${GST_LIBRARIES} ${TAGLIB_LIBRARIES} ${MB_LIBRARIES} m + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### tagguessertest (check program) ############ + +tde_add_check_executable( tagguessertest AUTOMOC + SOURCES + tagguessertest.cpp tagguesser.cpp + LINK + DCOP tdecore-shared tdeui-shared tdefx-shared tdeio-shared tdetexteditor-shared + mcop kmedia2_idl soundserver_idl artsflow_idl +) + + +##### other data ################################ + +install( FILES juk.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) +install( FILES jukui.rc jukui-rtl.rc DESTINATION ${DATA_INSTALL_DIR}/juk ) +install( FILES jukservicemenu.desktop DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus ) diff --git a/juk/ConfigureChecks.cmake b/juk/ConfigureChecks.cmake new file mode 100644 index 00000000..191f0554 --- /dev/null +++ b/juk/ConfigureChecks.cmake @@ -0,0 +1,39 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +if( WITH_GSTREAMER ) + pkg_search_module( GST gstreamer-1.0>=1.0.0 gstreamer-0.10>=0.10.0 gstreamer-0.8>=0.8.0 ) + if( NOT GST_FOUND ) + tde_message_fatal( "gstreamer is requested, but not found on your system" ) + endif( ) + set( HAVE_GSTREAMER 1 CACHE INTERNAL "" FORCE ) +endif( WITH_GSTREAMER ) + + +if( WITH_MUSICBRAINZ ) + check_include_file( tunepimp-0.5/tp_c.h HAVE_TUNEPIMP_H ) + if( NOT HAVE_TUNEPIMP_H ) + tde_message_fatal( "tunepimp is requested, but not found on your system" ) + endif( ) + check_library_exists( tunepimp tp_SetTRMCollisionThreshold "" HAVE_TUNEPIMP_5 ) + if( HAVE_TUNEPIMP_5 ) + tde_message_fatal( "tunepimp is requested, but found tunepimp5 that is not supported" ) + endif( ) + check_library_exists( tunepimp tp_SetFileNameEncoding "" HAVE_TUNEPIMP_4 ) + if( HAVE_TUNEPIMP_4 ) + set( HAVE_MUSICBRANINZ 4 CACHE INTERNAL "" FORCE ) + else( ) + set( HAVE_MUSICBRANINZ 1 CACHE INTERNAL "" FORCE ) + endif( ) + set( MUSICBRAINZ_LIBRARIES tunepimp ) +else( WITH_MUSICBRAINZ ) + set( HAVE_MUSICBRANINZ 0 CACHE INTERNAL "" FORCE ) +endif( WITH_MUSICBRAINZ ) diff --git a/juk/pics/CMakeLists.txt b/juk/pics/CMakeLists.txt new file mode 100644 index 00000000..43ac8c36 --- /dev/null +++ b/juk/pics/CMakeLists.txt @@ -0,0 +1,15 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( + FILES playing.png splash.png yahoo_credit.png + DESTINATION ${DATA_INSTALL_DIR}/juk/pics +) diff --git a/kaboodle/CMakeLists.txt b/kaboodle/CMakeLists.txt new file mode 100644 index 00000000..c7f8f811 --- /dev/null +++ b/kaboodle/CMakeLists.txt @@ -0,0 +1,87 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( actions ) +add_subdirectory( pics ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### kaboodle (library) ######################## + +tde_add_library( kaboodle STATIC_PIC AUTOMOC + SOURCES + conf.cpp + controls.cpp + engine.cpp + player.cpp + view.cpp + kaboodle_factory.cpp +) + + +##### libkaboodle (module) ###################### + +tde_add_kpart( libkaboodlepart AUTOMOC + SOURCES + ${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp + EMBED + kaboodle-static + LINK + tdeparts-shared + DCOP tdecore-shared tdeui-shared tdefx-shared tdeio-shared tdetexteditor-shared + mcop qtmcop kmedia2_idl soundserver_idl artsflow_idl artskde-shared tdemediaplayer-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + +file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp "" ) + + +##### kaboodle (executable) ##################### + +tde_add_executable( kaboodle AUTOMOC + SOURCES + main.cpp + kaboodleapp.cpp + userinterface.cpp + LINK + kaboodle-static tdeparts-shared + DCOP tdecore-shared tdeui-shared tdefx-shared tdeio-shared tdetexteditor-shared + mcop qtmcop kmedia2_idl soundserver_idl artsflow_idl artskde-shared tdemediaplayer-shared + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( + FILES kaboodle.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} +) +install( + FILES kaboodleui.rc kaboodlepartui.rc + DESTINATION ${DATA_INSTALL_DIR}/kaboodle +) +install( + FILES kaboodle_component.desktop kaboodleengine.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/kaboodle/actions/CMakeLists.txt b/kaboodle/actions/CMakeLists.txt new file mode 100644 index 00000000..fadc20f7 --- /dev/null +++ b/kaboodle/actions/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/kaboodle/icons ) diff --git a/kaboodle/pics/CMakeLists.txt b/kaboodle/pics/CMakeLists.txt new file mode 100644 index 00000000..76b06133 --- /dev/null +++ b/kaboodle/pics/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_install_icons( ) diff --git a/kappfinder-data/CMakeLists.txt b/kappfinder-data/CMakeLists.txt new file mode 100644 index 00000000..cd85238e --- /dev/null +++ b/kappfinder-data/CMakeLists.txt @@ -0,0 +1,43 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( + FILES + ams.desktop + amsynth.desktop + ardour.desktop + djplay.desktop + ecamegapedal.desktop + freebirth.desktop + freqtweak.desktop + galan.desktop + hydrogen.desktop + jack-rack.desktop + jamin.desktop + meterbridge.desktop + mixxx.desktop + muse.desktop + qjackctl.desktop + qsynth.desktop + vkeybd.desktop + zynaddsubfx.desktop + DESTINATION ${DATA_INSTALL_DIR}/kappfinder/apps/Multimedia +) + +install( + FILES tde-multimedia-music.directory + DESTINATION ${XDG_DIRECTORY_INSTALL_DIR} +) + +install( + FILES tde-multimedia-music.menu + DESTINATION ${XDG_MENU_INSTALL_DIR}/applications-merged +) diff --git a/kaudiocreator/CMakeLists.txt b/kaudiocreator/CMakeLists.txt new file mode 100644 index 00000000..bb1c5ffe --- /dev/null +++ b/kaudiocreator/CMakeLists.txt @@ -0,0 +1,75 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( icons ) +tde_install_icons( ) + +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/libkcddb + ${CMAKE_BINARY_DIR}/libkcddb + ${CMAKE_SOURCE_DIR}/kscd + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTSC_LIBRARY_DIRS} +) + + +##### kaudiocreator (executable) ################ + +tde_add_executable( kaudiocreator AUTOMOC + SOURCES + main.cpp kaudiocreator.cpp encoder.cpp + encoderconfigimp.cpp job.cpp jobqueimp.cpp ripper.cpp tracksimp.cpp + encoderedit.ui jobque.ui tracks.ui infodialog.ui wizard.ui general.ui + cdconfig.ui ripconfig.ui encoderoutput.ui encoderconfig.ui encodefile.ui + prefs.kcfgc encoder_prefs.kcfgc encodefileimp.cpp + LINK + DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared + tdeutils-shared tdehtml-shared tdetexteditor-shared + kcddb-shared kcompactdisc-static workman-static + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( + FILES kaudiocreator.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} +) +install( + FILES kaudiocreatorui.rc eventsrc + DESTINATION ${DATA_INSTALL_DIR}/kaudiocreator +) +install( + FILES kaudiocreator.kcfg kaudiocreator_encoders.kcfg + DESTINATION ${KCFG_INSTALL_DIR} +) +install( + FILES audiocd_extract.desktop + DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus +) +install( + FILES kaudiocreator-meta.upd kaudiocreator-libkcddb.upd + DESTINATION ${DATA_INSTALL_DIR}/tdeconf_update +) +install( + PROGRAMS upgrade-kaudiocreator-metadata.sh + DESTINATION ${DATA_INSTALL_DIR}/tdeconf_update +) diff --git a/kaudiocreator/icons/CMakeLists.txt b/kaudiocreator/icons/CMakeLists.txt new file mode 100644 index 00000000..a38b15c9 --- /dev/null +++ b/kaudiocreator/icons/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( FILES check.png DESTINATION ${DATA_INSTALL_DIR}/kaudiocreator/pics ) diff --git a/krec/CMakeLists.txt b/krec/CMakeLists.txt new file mode 100644 index 00000000..298d4877 --- /dev/null +++ b/krec/CMakeLists.txt @@ -0,0 +1,119 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_conditional_add_subdirectory( WITH_LAME mp3_export ) +tde_conditional_add_subdirectory( WITH_VORBIS ogg_export ) +add_subdirectory( pics ) +tde_install_icons( krec ) + +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/arts/gui/common + ${CMAKE_BINARY_DIR}/arts/midi + ${CMAKE_BINARY_DIR}/arts/modules/common + ${CMAKE_BINARY_DIR}/arts/modules/effects + ${CMAKE_BINARY_DIR}/arts/modules/synth + ${CMAKE_SOURCE_DIR}/arts/gui/kde + ${CMAKE_SOURCE_DIR}/arts/tools + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTSC_LIBRARY_DIRS} +) + + +##### krec_commont (library) #################### + +tde_add_library( krec_common STATIC_PIC AUTOMOC + SOURCES + krecglobal.cpp + krecexport_template.cpp + krecconfig_fileswidget.cpp +) + + +##### krec (tdeinit) ############################ + +tde_add_tdeinit_executable( krec AUTOMOC + SOURCES + krecnewproperties.cpp + krecfile.cpp + krecfileview.cpp + krecfileviewhelpers.cpp + krecfilewidgets.cpp + main.cpp + krecord.cpp + LINK + DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared + tdeutils-shared tdetexteditor-shared + mcop kmedia2_idl soundserver_idl artsflow_idl + artsmoduleseffects-shared artscontrolsupport-shared artsgui_kde-shared + krec_common-static ${DL_LIBRARIES} artskde-shared + ${ARTSC_LIBRARIES} pthread +) + + +##### kcm_krec (module) ######################### + +tde_add_kpart( kcm_krec AUTOMOC + SOURCES + krecconfigure.cpp + LINK + DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared + tdeutils-shared tdetexteditor-shared + mcop kmedia2_idl soundserver_idl artsflow_idl artsmoduleseffects-shared + krec_common-static + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### kcm_krec_files (module) ################### + +tde_add_kpart( kcm_krec_files AUTOMOC + SOURCES + krecconfig_files.cpp + LINK + DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared + tdeutils-shared tdetexteditor-shared + mcop kmedia2_idl soundserver_idl artsflow_idl artsmoduleseffects-shared + krec_common-static + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### libkrecexport_wave (module) ############### + +tde_add_kpart( libkrecexport_wave AUTOMOC + SOURCES + krecexport_wave.cpp + LINK + DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared + tdeutils-shared tdetexteditor-shared + mcop kmedia2_idl soundserver_idl artsflow_idl artsmoduleseffects-shared + krec_common-static + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES krec.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) +install( FILES krecui.rc DESTINATION ${DATA_INSTALL_DIR}/krec ) +install( FILES kcm_krec.desktop kcm_krec_files.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES tips DESTINATION ${DATA_INSTALL_DIR}/krec ) +install( FILES krec_exportitem.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} ) +install( FILES krec_exportwave.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) diff --git a/krec/krecexport_wave.cpp b/krec/krecexport_wave.cpp index 47fb0470..64e25649 100644 --- a/krec/krecexport_wave.cpp +++ b/krec/krecexport_wave.cpp @@ -97,17 +97,17 @@ kdDebug( 60005 ) << k_funcinfo << endl; // Basic 16b,2c,44kHz Wave-Header char riffHeader[] = { - 0x52, 0x49, 0x46, 0x46, // 0 "AIFF" - 0x00, 0x00, 0x00, 0x00, // 4 wavSize - 0x57, 0x41, 0x56, 0x45, // 8 "WAVE" - 0x66, 0x6d, 0x74, 0x20, // 12 "fmt " - 0x10, 0x00, 0x00, 0x00, // 16 - 0x01, 0x00, 0x02, 0x00, // 20 - 0x44, 0xac, 0x00, 0x00, // 24 - 0x10, 0xb1, 0x02, 0x00, // 28 - 0x04, 0x00, 0x10, 0x00, // 32 - 0x64, 0x61, 0x74, 0x61, // 36 "data" - 0x00, 0x00, 0x00, 0x00 // 40 byteCount + '\x52', '\x49', '\x46', '\x46', // 0 "AIFF" + '\x00', '\x00', '\x00', '\x00', // 4 wavSize + '\x57', '\x41', '\x56', '\x45', // 8 "WAVE" + '\x66', '\x6d', '\x74', '\x20', // 12 "fmt " + '\x10', '\x00', '\x00', '\x00', // 16 + '\x01', '\x00', '\x02', '\x00', // 20 + '\x44', '\xac', '\x00', '\x00', // 24 + '\x10', '\xb1', '\x02', '\x00', // 28 + '\x04', '\x00', '\x10', '\x00', // 32 + '\x64', '\x61', '\x74', '\x61', // 36 "data" + '\x00', '\x00', '\x00', '\x00' // 40 byteCount }; long wavSize = _file->size() - 8; diff --git a/krec/mp3_export/CMakeLists.txt b/krec/mp3_export/CMakeLists.txt new file mode 100644 index 00000000..13850c31 --- /dev/null +++ b/krec/mp3_export/CMakeLists.txt @@ -0,0 +1,50 @@ +################################################# +# +# (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_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/arts/gui/common + ${CMAKE_BINARY_DIR}/arts/midi + ${CMAKE_BINARY_DIR}/arts/modules/common + ${CMAKE_BINARY_DIR}/arts/modules/effects + ${CMAKE_BINARY_DIR}/arts/modules/synth + ${CMAKE_SOURCE_DIR}/arts/gui/kde + ${CMAKE_SOURCE_DIR}/arts/tools + ${CMAKE_SOURCE_DIR}/krec + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### libkrecexport_mp3 (module) ################ + +tde_add_kpart( libkrecexport_mp3 AUTOMOC + SOURCES + krecexport_mp3.cpp + LINK + DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared tdeutils-shared + mcop kmedia2_idl soundserver_idl artsflow_idl artsmoduleseffects-shared + krec_common-static ${LAME_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES krec_exportmp3.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) diff --git a/krec/ogg_export/CMakeLists.txt b/krec/ogg_export/CMakeLists.txt new file mode 100644 index 00000000..dc153def --- /dev/null +++ b/krec/ogg_export/CMakeLists.txt @@ -0,0 +1,50 @@ +################################################# +# +# (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_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/arts/gui/common + ${CMAKE_BINARY_DIR}/arts/midi + ${CMAKE_BINARY_DIR}/arts/modules/common + ${CMAKE_BINARY_DIR}/arts/modules/effects + ${CMAKE_BINARY_DIR}/arts/modules/synth + ${CMAKE_SOURCE_DIR}/arts/gui/kde + ${CMAKE_SOURCE_DIR}/arts/tools + ${CMAKE_SOURCE_DIR}/krec + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### libkrecexport_ogg (module) ################ + +tde_add_kpart( libkrecexport_ogg AUTOMOC + SOURCES + krecexport_ogg.cpp + LINK + DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared tdeutils-shared + mcop kmedia2_idl soundserver_idl artsflow_idl artsmoduleseffects-shared + krec_common-static ${OGG_LIBRARIES} ${VORBIS_LIBRARIES} ${VORBISENC_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES krec_exportogg.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) diff --git a/krec/pics/CMakeLists.txt b/krec/pics/CMakeLists.txt new file mode 100644 index 00000000..6a286d9b --- /dev/null +++ b/krec/pics/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/krec/icons ) diff --git a/kscd/CMakeLists.txt b/kscd/CMakeLists.txt new file mode 100644 index 00000000..d6f74be7 --- /dev/null +++ b/kscd/CMakeLists.txt @@ -0,0 +1,66 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include( ConfigureChecks.cmake ) + +add_subdirectory( libwm ) +tde_install_icons( cdsmall DESTINATION ${DATA_INSTALL_DIR}/kscd/icons ) +tde_install_icons( kscd ) + +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/libkcddb + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTSC_LIBRARY_DIRS} +) + + +##### kcompactdisc (library) #################### + +tde_add_library( kcompactdisc STATIC_PIC AUTOMOC + SOURCES kcompactdisc.cpp +) + + +##### kscd (executable) ######################### + +tde_add_executable( kscd AUTOMOC + SOURCES + panel.ui kscd.cpp kscd.skel ledlamp.cpp + docking.cpp bwlednum.cpp + configWidget.cpp configWidgetUI.ui prefs.kcfgc cddbdlg.cpp + LINK + DCOP-shared tdecore-shared tdeui-shared tdefx-shared + tdeio-shared tdeutils-shared tdetexteditor-shared + kcddb-shared kcompactdisc-static workman-static + ${CDROM_LIBRARIRES} ${CDAUDIO_LIBRARIES} ${FPE_LIBRARIES} + ${ALSA_LIBRARIES} + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( PROGRAMS workman2cddb.pl DESTINATION ${BIN_INSTALL_DIR} ) + +install( FILES kscd.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) +install( FILES xmcd.desktop DESTINATION ${MIME_INSTALL_DIR}/text ) +install( FILES kscd.kcfg DESTINATION ${KCFG_INSTALL_DIR} ) +install( FILES kscd.profile.xml DESTINATION ${DATA_INSTALL_DIR}/profiles ) +install( FILES audiocd_play.desktop DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus ) diff --git a/kscd/ConfigureChecks.cmake b/kscd/ConfigureChecks.cmake new file mode 100644 index 00000000..8047bed7 --- /dev/null +++ b/kscd/ConfigureChecks.cmake @@ -0,0 +1,55 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +if( "${CMAKE_SYSTEM_NAME}" MATCHES "IRIX" ) + # IRIX cdaudio + if( NOT CDAUDIO ) + message( STATUS "Checking for cdaudio library" ) + find_library( CDAUDIO cdaudio ) + if( CDAUDIO ) + message( STATUS "Checking for cdaudio library - found" ) + set( CDAUDIO_LIBRARIES "cdaudio;mediad;ds" ) + else( ) + message( STATUS "Checking for cdaudio library - not found" ) + endif( ) + endif( NOT CDAUDIO ) + + # Irix CDDA + if( NOT FPE ) + message( STATUS "Checking for fpe library" ) + find_library( FPE fpe ) + if( FPE ) + message( STATUS "Checking for fpe library - found" ) + set( FPE_LIBRARIES "fpe" ) + else( ) + message( STATUS "Checking for fpe library - not found" ) + endif( ) + endif( NOT FPE ) +endif( "${CMAKE_SYSTEM_NAME}" MATCHES "IRIX" ) + +# FreeBSD +if( "${CMAKE_SYSTEM_NAME}" MATCHES "FreeBSD" ) + if( NOT CDROM ) + message( STATUS "Checking for cdrom library" ) + find_library( CDROM cdrom ) + if( CDROM ) + message( STATUS "Checking for cdrom library - found" ) + set( CDROM_LIBRARIES "cdrom" ) + else( ) + message( STATUS "Checking for cdrom library - not found" ) + endif( CDROM ) + endif( NOT CDROM ) +endif( "${CMAKE_SYSTEM_NAME}" MATCHES "FreeBSD" ) + +# aRts +if( ARTS_FOUND ) + set( USE_ARTS 1 CACHE INTERNAL "" FORCE ) +endif( ARTS_FOUND ) diff --git a/kscd/libwm/CMakeLists.txt b/kscd/libwm/CMakeLists.txt new file mode 100644 index 00000000..e40ac76e --- /dev/null +++ b/kscd/libwm/CMakeLists.txt @@ -0,0 +1,38 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include( ConfigureChecks.cmake ) + +add_subdirectory( audio ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + + +##### workman (library) ######################### + +tde_add_library( workman STATIC_PIC + SOURCES + cddb.c cdinfo.c cdrom.c wm_helpers.c cdtext.c + database.c index.c scsi.c cdda.c plat_linux_cdda.c plat_sun_cdda.c + plat_aix.c plat_bsd386.c plat_freebsd.c plat_hpux.c plat_irix.c + plat_linux.c plat_svr4.c plat_ultrix.c plat_news.c plat_openbsd.c + plat_osf1.c plat_sun.c plat_scor5.c + drv_sony.c drv_toshiba.c + EMBED + workmanaudio-static + LINK + pthread +) diff --git a/kscd/libwm/ConfigureChecks.cmake b/kscd/libwm/ConfigureChecks.cmake new file mode 100644 index 00000000..31ce9815 --- /dev/null +++ b/kscd/libwm/ConfigureChecks.cmake @@ -0,0 +1,69 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +if( WITH_KSCD_CDDA AND NOT BUILD_CDDA ) + + if( "${CMAKE_SYSTEM_NAME}" MATCHES "Linux" ) + + check_include_file( pthread.h HAVE_PTHREAD_H ) + check_c_source_compiles( " +#ifndef __GNUC__ +#define __GNUC__ 1 +#endif +/* needed for vanilla kernel headers, which do provide __u64 only + for ansi */ +#undef __STRICT_ANSI__ +/* needed for non-ansi kernel headers */ +#define asm __asm__ +#define inline __inline__ +#include <linux/types.h> +#include <linux/cdrom.h> +#undef asm +#undef inline + +int main() { + #if defined(__linux__) + ioctl(1, CDROMREADAUDIO, 0); + #else + #error platform? + #endif +}" + BUILD_CDDA ) + if( NOT BUILD_CDDA ) + tde_message_fatal( "cdda support is requested, but not avaiable on your system" ) + endif( NOT BUILD_CDDA ) + + elseif( ${CMAKE_SYSTEM_NAME} MATCHES "SunOS" ) + + check_include_file( pthread.h HAVE_PTHREAD_H ) + check_c_source_compiles( " +#include <sys/types.h> +#include <sys/cdio.h> + +int main() { + #if defined(__sun) || defined(sun) + ioctl(1, CDROMCDDA, 0); + #else + #error platform? + #endif +}" + BUILD_CDDA ) + if( NOT BUILD_CDDA ) + tde_message_fatal( "cdda support is requested, but not avaiable on your system" ) + endif( NOT BUILD_CDDA ) + + else( ) + + message( STATUS "Checking cdda support - not available on this system type" ) + + endif( ) + +endif( WITH_KSCD_CDDA AND NOT BUILD_CDDA ) diff --git a/kscd/libwm/audio/CMakeLists.txt b/kscd/libwm/audio/CMakeLists.txt new file mode 100644 index 00000000..1fa51fab --- /dev/null +++ b/kscd/libwm/audio/CMakeLists.txt @@ -0,0 +1,32 @@ +################################################# +# +# (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_BINARY_DIR} + ${ARTSC_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTSC_LIBRARY_DIRS} +) + + +##### workmanaudio (library) #################### + +tde_add_library( workmanaudio STATIC_PIC + SOURCES + audio.c audio_alsa.c audio_arts.c audio_sun.c + LINK + ${ARTSC_LIBRARIES} +) diff --git a/libkcddb/CMakeLists.txt b/libkcddb/CMakeLists.txt new file mode 100644 index 00000000..c147f80a --- /dev/null +++ b/libkcddb/CMakeLists.txt @@ -0,0 +1,56 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( kcmcddb ) +add_subdirectory( test ) + +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR} + ${CMAKE_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### kcddb (library) ########################### + +tde_add_library( kcddb SHARED AUTOMOC + SOURCES + cache.cpp cdinfo.cpp config.cpp client.cpp cddb.cpp lookup.cpp + cddbplookup.cpp synccddbplookup.cpp asynccddbplookup.cpp httplookup.cpp + synchttplookup.cpp asynchttplookup.cpp smtpsubmit.cpp + asyncsmtpsubmit.cpp syncsmtpsubmit.cpp configbase.kcfgc + submit.cpp sites.cpp httpsubmit.cpp asynchttpsubmit.cpp + synchttpsubmit.cpp cdinfodialogbase.ui categories.cpp genres.cpp + cdinfoencodingwidget.cpp cdinfoencodingwidgetbase.ui + VERSION 1.0.0 + LINK + tdecore-shared tdeio-shared tdeui-shared + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### other data ################################ + +install( + FILES + cache.h cdinfo.h client.h config.h cddb.h + ${CMAKE_CURRENT_BINARY_DIR}/configbase.h + DESTINATION ${INCLUDE_INSTALL_DIR}/libkcddb +) + +install(FILES libkcddb.kcfg DESTINATION ${KCFG_INSTALL_DIR} ) diff --git a/libkcddb/kcmcddb/CMakeLists.txt b/libkcddb/kcmcddb/CMakeLists.txt new file mode 100644 index 00000000..d94fa800 --- /dev/null +++ b/libkcddb/kcmcddb/CMakeLists.txt @@ -0,0 +1,42 @@ +################################################# +# +# (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_CURRENT_BINARY_DIR}/.. + ${CMAKE_SOURCE_DIR} + ${CMAKE_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### kcm_cddb (module) ######################### + +tde_add_kpart( kcm_cddb AUTOMOC + SOURCES + cddbconfigwidgetbase.ui + cddbconfigwidget.cpp + kcmcddb.cpp + LINK + kcddb-shared tdeui-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES libkcddb.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) +install( FILES kcmcddb-emailsettings.upd DESTINATION ${DATA_INSTALL_DIR}/tdeconf_update ) diff --git a/libkcddb/test/CMakeLists.txt b/libkcddb/test/CMakeLists.txt new file mode 100644 index 00000000..6f7da4b1 --- /dev/null +++ b/libkcddb/test/CMakeLists.txt @@ -0,0 +1,89 @@ +################################################# +# +# (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_CURRENT_BINARY_DIR}/.. + ${CMAKE_SOURCE_DIR} + ${CMAKE_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### check programs ############################ + +tde_add_check_executable( asyncsmtpsubmittest AUTOMOC + SOURCES asyncsmtpsubmittest.cpp + LINK kcddb-shared + TEST +) + + +tde_add_check_executable( syncsmtpsubmittest AUTOMOC + SOURCES syncsmtpsubmittest.cpp + LINK kcddb-shared +) + + +tde_add_check_executable( asynchttpsubmittest AUTOMOC + SOURCES asynchttpsubmittest.cpp + LINK kcddb-shared + TEST +) + + +tde_add_check_executable( synchttpsubmittest AUTOMOC + SOURCES synchttpsubmittest.cpp + LINK kcddb-shared +) + + +tde_add_check_executable( asynchttplookuptest AUTOMOC + SOURCES asynchttplookuptest.cpp + LINK kcddb-shared + TEST +) + + +tde_add_check_executable( asynccddblookuptest AUTOMOC + SOURCES asynccddblookuptest.cpp + LINK kcddb-shared + TEST +) + + +tde_add_check_executable( synchttplookuptest AUTOMOC + SOURCES synchttplookuptest.cpp + LINK kcddb-shared +) + + +tde_add_check_executable( synccddblookuptest AUTOMOC + SOURCES synccddblookuptest.cpp + LINK kcddb-shared +) + + +tde_add_check_executable( utf8test AUTOMOC + SOURCES utf8test.cpp + LINK kcddb-shared +) + + +tde_add_check_executable( sitestest AUTOMOC + SOURCES sitestest.cpp + LINK kcddb-shared +) diff --git a/libkcddb/test/Makefile.am b/libkcddb/test/Makefile.am index ab814db4..320b5902 100644 --- a/libkcddb/test/Makefile.am +++ b/libkcddb/test/Makefile.am @@ -6,43 +6,52 @@ check_PROGRAMS = syncsmtpsubmittest asyncsmtpsubmittest asynchttplookuptest \ syncsmtpsubmittest_SOURCES = syncsmtpsubmittest.cpp syncsmtpsubmittest_LDFLAGS = $(all_libraries) -syncsmtpsubmittest_LDADD = $(top_builddir)/libkcddb/libkcddb.la +syncsmtpsubmittest_LDADD = $(top_builddir)/libkcddb/libkcddb.la \ + $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEIO) $(LIB_TDEUI) asyncsmtpsubmittest_SOURCES = asyncsmtpsubmittest.cpp asyncsmtpsubmittest_LDFLAGS = $(all_libraries) -asyncsmtpsubmittest_LDADD = $(top_builddir)/libkcddb/libkcddb.la +asyncsmtpsubmittest_LDADD = $(top_builddir)/libkcddb/libkcddb.la \ + $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEIO) $(LIB_TDEUI) asynchttplookuptest_SOURCES = asynchttplookuptest.cpp asynchttplookuptest_LDFLAGS = $(all_libraries) -asynchttplookuptest_LDADD = $(top_builddir)/libkcddb/libkcddb.la +asynchttplookuptest_LDADD = $(top_builddir)/libkcddb/libkcddb.la \ + $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEIO) $(LIB_TDEUI) asynccddblookuptest_SOURCES = asynccddblookuptest.cpp asynccddblookuptest_LDFLAGS = $(all_libraries) -asynccddblookuptest_LDADD = $(top_builddir)/libkcddb/libkcddb.la +asynccddblookuptest_LDADD = $(top_builddir)/libkcddb/libkcddb.la \ + $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEIO) $(LIB_TDEUI) synchttplookuptest_SOURCES = synchttplookuptest.cpp synchttplookuptest_LDFLAGS = $(all_libraries) -synchttplookuptest_LDADD = $(top_builddir)/libkcddb/libkcddb.la +synchttplookuptest_LDADD = $(top_builddir)/libkcddb/libkcddb.la \ + $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEIO) $(LIB_TDEUI) synccddblookuptest_SOURCES = synccddblookuptest.cpp synccddblookuptest_LDFLAGS = $(all_libraries) -synccddblookuptest_LDADD = $(top_builddir)/libkcddb/libkcddb.la +synccddblookuptest_LDADD = $(top_builddir)/libkcddb/libkcddb.la \ + $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEIO) $(LIB_TDEUI) synchttpsubmittest_SOURCES = synchttpsubmittest.cpp synchttpsubmittest_LDFLAGS = $(all_libraries) -synchttpsubmittest_LDADD = $(top_builddir)/libkcddb/libkcddb.la +synchttpsubmittest_LDADD = $(top_builddir)/libkcddb/libkcddb.la \ + $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEIO) $(LIB_TDEUI) asynchttpsubmittest_SOURCES = asynchttpsubmittest.cpp asynchttpsubmittest_LDFLAGS = $(all_libraries) -asynchttpsubmittest_LDADD = $(top_builddir)/libkcddb/libkcddb.la +asynchttpsubmittest_LDADD = $(top_builddir)/libkcddb/libkcddb.la \ + $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEIO) $(LIB_TDEUI) utf8test_SOURCES = utf8test.cpp utf8test_LDFLAGS = $(all_libraries) -utf8test_LDADD = $(top_builddir)/libkcddb/libkcddb.la +utf8test_LDADD = $(top_builddir)/libkcddb/libkcddb.la \ + $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEIO) $(LIB_TDEUI) sitestest_SOURCES = sitestest.cpp sitestest_LDFLAGS = $(all_libraries) -sitestest_LDADD = $(top_builddir)/libkcddb/libkcddb.la +sitestest_LDADD = $(top_builddir)/libkcddb/libkcddb.la \ + $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEIO) $(LIB_TDEUI) METASOURCES = AUTO - diff --git a/mpeglib/CMakeLists.txt b/mpeglib/CMakeLists.txt new file mode 100644 index 00000000..de137b3a --- /dev/null +++ b/mpeglib/CMakeLists.txt @@ -0,0 +1,18 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +set( MPEGLIB_VERSION "0.3.0" CACHE INTERNAL "" FORCE ) +set( MPEGLIB_SO_VERSION "0.0.3" CACHE INTERNAL "" FORCE ) + +include( ConfigureChecks.cmake ) + +add_subdirectory( example ) +add_subdirectory( lib ) diff --git a/mpeglib/ConfigureChecks.cmake b/mpeglib/ConfigureChecks.cmake new file mode 100644 index 00000000..254eb03d --- /dev/null +++ b/mpeglib/ConfigureChecks.cmake @@ -0,0 +1,52 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +if( NOT ATTRIBUTE_ALIGNED_MAX ) + foreach( ATTRIBUTE_ALIGNED_TEST 2 4 8 16 32 64 ) + check_c_source_compiles( + "int main() { static char c __attribute__ ((aligned(${ATTRIBUTE_ALIGNED_TEST}))) = 0; return c; }" + ATTRIBUTE_ALIGNED_MAX_${ATTRIBUTE_ALIGNED_TEST} + ) + if( ATTRIBUTE_ALIGNED_MAX_${ATTRIBUTE_ALIGNED_TEST} ) + set( ATTRIBUTE_ALIGNED_MAX ${ATTRIBUTE_ALIGNED_TEST} CACHE INTERNAL "" FORCE ) + else( ) + break( ) + endif( ) + endforeach( ) +endif( NOT ATTRIBUTE_ALIGNED_MAX ) + + +check_function_exists( strlcpy HAVE_STRLCPY ) +check_symbol_exists( strlcpy "string.h" HAVE_STRLCPY_PROTO ) + + +tde_save_and_set( CMAKE_REQUIRED_FLAGS "-include X11/Xlib.h" ) + +pkg_search_module( XEXT xext ) + +check_include_file( "X11/extensions/XShm.h" X11_SHARED_MEM ) + +check_include_file( "X11/extensions/xf86dga1.h" X11_DGA2 ) +if( X11_DGA2 ) + set( DGA_LIBRARIES Xxf86dga ) +endif( ) + +check_include_file( "X11/extensions/Xvlib.h" X11_XV ) +if( X11_XV ) + set( XV_LIBRARIES Xv ) +endif( ) + +check_include_file( "X11/extensions/xf86vmode.h" X11_XVIDMODE ) +if( X11_XVIDMODE ) + set( XVIDMODE_LIBRARIES Xxf86vm ) +endif( ) + +tde_restore( CMAKE_REQUIRED_FLAGS ) diff --git a/mpeglib/example/CMakeLists.txt b/mpeglib/example/CMakeLists.txt new file mode 100644 index 00000000..1c46cd94 --- /dev/null +++ b/mpeglib/example/CMakeLists.txt @@ -0,0 +1,16 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( cddaplay ) +add_subdirectory( mpgplay ) +add_subdirectory( splay ) +add_subdirectory( tplay ) +add_subdirectory( yaf ) diff --git a/mpeglib/example/cddaplay/CMakeLists.txt b/mpeglib/example/cddaplay/CMakeLists.txt new file mode 100644 index 00000000..1ffecb0e --- /dev/null +++ b/mpeglib/example/cddaplay/CMakeLists.txt @@ -0,0 +1,31 @@ +################################################# +# +# (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_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### cddaplay (executable) ##################### + +tde_add_executable( cddaplay + SOURCES cddaplay.cpp + LINK mpeg-shared +) diff --git a/mpeglib/example/mpgplay/CMakeLists.txt b/mpeglib/example/mpgplay/CMakeLists.txt new file mode 100644 index 00000000..7ef2188c --- /dev/null +++ b/mpeglib/example/mpgplay/CMakeLists.txt @@ -0,0 +1,31 @@ +################################################# +# +# (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_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### mpgplay (executable) ###################### + +tde_add_executable( mpgplay + SOURCES mpgplay.cpp + LINK mpeg-shared +) diff --git a/mpeglib/example/splay/CMakeLists.txt b/mpeglib/example/splay/CMakeLists.txt new file mode 100644 index 00000000..d7292f79 --- /dev/null +++ b/mpeglib/example/splay/CMakeLists.txt @@ -0,0 +1,39 @@ +################################################# +# +# (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_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### splay (executable) ######################## + +tde_add_executable( splay + SOURCES splay.cpp + LINK mpeg-shared +) + + +##### mp3framing (executable) ################### + +tde_add_executable( mp3framing + SOURCES mp3framing.cpp + LINK mpeg-shared +) diff --git a/mpeglib/example/tplay/CMakeLists.txt b/mpeglib/example/tplay/CMakeLists.txt new file mode 100644 index 00000000..06f25e99 --- /dev/null +++ b/mpeglib/example/tplay/CMakeLists.txt @@ -0,0 +1,31 @@ +################################################# +# +# (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_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### tplay (executable) ######################## + +tde_add_executable( tplay + SOURCES tplay.cpp + LINK mpeg-shared +) diff --git a/mpeglib/example/yaf/CMakeLists.txt b/mpeglib/example/yaf/CMakeLists.txt new file mode 100644 index 00000000..1991ff3e --- /dev/null +++ b/mpeglib/example/yaf/CMakeLists.txt @@ -0,0 +1,19 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( yafcdda ) +add_subdirectory( yafcore ) +add_subdirectory( yafmpgplay ) +add_subdirectory( yafsplay ) +add_subdirectory( yaftplay ) +add_subdirectory( yafvorbis ) +add_subdirectory( yafxplayer ) +add_subdirectory( yafyuv ) diff --git a/mpeglib/example/yaf/yafcdda/CMakeLists.txt b/mpeglib/example/yaf/yafcdda/CMakeLists.txt new file mode 100644 index 00000000..5579f599 --- /dev/null +++ b/mpeglib/example/yaf/yafcdda/CMakeLists.txt @@ -0,0 +1,32 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### yaf-cdda (executable) ##################### + +tde_add_executable( yaf-cdda + SOURCES cdda_control.cpp + LINK + yafcore-shared yafxplayer-shared + mpeg-shared + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/mpeglib/example/yaf/yafcore/CMakeLists.txt b/mpeglib/example/yaf/yafcore/CMakeLists.txt new file mode 100644 index 00000000..1e0abe1b --- /dev/null +++ b/mpeglib/example/yaf/yafcore/CMakeLists.txt @@ -0,0 +1,55 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### yafcore (library) ######################### + +tde_add_library( yafcore SHARED + SOURCES + buffer.cpp + lineStack.cpp + commandLine.cpp + parser.cpp + outputInterface.cpp + inputInterface.cpp + commandTable.cpp + commandTableYAF.cpp + runtimeTableYAF.cpp + inputDecoder.cpp + outputDecoder.cpp + yaf_control.cpp + multiReader.cpp + LINK + tdefakes-shared + mpeg-shared + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### other data ################################ + +install( + FILES + inputInterface.h outputInterface.h + buffer.h inputDecoder.h yaf_control.h + DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/util/yaf/yafcore +) diff --git a/mpeglib/example/yaf/yafcore/inputInterface.cpp b/mpeglib/example/yaf/yafcore/inputInterface.cpp index 455ddd40..c5beaeda 100644 --- a/mpeglib/example/yaf/yafcore/inputInterface.cpp +++ b/mpeglib/example/yaf/yafcore/inputInterface.cpp @@ -75,7 +75,11 @@ int InputInterface::write(int fd,const char* txt) { snprintf(loopback->getData(),300, "Command:41 Msg:%s",txt); } else { +#if defined(HAVE_STRLCPY) || defined(HAVE_STRLCPY_PROTO) strlcpy(loopback->getData(),txt, loopback->getSize()); +#else + strncpy(loopback->getData(),txt, loopback->getSize()); +#endif } len =loopback->len(); back=::write(fd,loopback->getData(),len); @@ -136,7 +140,11 @@ void InputInterface::makeValidLine(char* line) { "Command:%d Msg:%s",currentCommandNumber,line); } else { increaseCurrentCommandNumber(); +#if defined(HAVE_STRLCPY) || defined(HAVE_STRLCPY_PROTO) strlcpy(currentLine->getData(),line, currentLine->getSize()); +#else + strncpy(currentLine->getData(),line, currentLine->getSize()); +#endif } return; diff --git a/mpeglib/example/yaf/yafmpgplay/CMakeLists.txt b/mpeglib/example/yaf/yafmpgplay/CMakeLists.txt new file mode 100644 index 00000000..5692823d --- /dev/null +++ b/mpeglib/example/yaf/yafmpgplay/CMakeLists.txt @@ -0,0 +1,32 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### yaf-mpgplay (executable) ################## + +tde_add_executable( yaf-mpgplay + SOURCES mpg_control.cpp + LINK + yafcore-shared yafxplayer-shared + mpeg-shared + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/mpeglib/example/yaf/yafsplay/CMakeLists.txt b/mpeglib/example/yaf/yafsplay/CMakeLists.txt new file mode 100644 index 00000000..78509009 --- /dev/null +++ b/mpeglib/example/yaf/yafsplay/CMakeLists.txt @@ -0,0 +1,32 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### yaf-splay (executable) #################### + +tde_add_executable( yaf-splay + SOURCES splay_control.cpp + LINK + yafcore-shared yafxplayer-shared + mpeg-shared + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/mpeglib/example/yaf/yaftplay/CMakeLists.txt b/mpeglib/example/yaf/yaftplay/CMakeLists.txt new file mode 100644 index 00000000..eeb05ea8 --- /dev/null +++ b/mpeglib/example/yaf/yaftplay/CMakeLists.txt @@ -0,0 +1,32 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### yaf-tplay (executable) #################### + +tde_add_executable( yaf-tplay + SOURCES tplay_control.cpp + LINK + yafcore-shared yafxplayer-shared + mpeg-shared + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/mpeglib/example/yaf/yafvorbis/CMakeLists.txt b/mpeglib/example/yaf/yafvorbis/CMakeLists.txt new file mode 100644 index 00000000..bc223991 --- /dev/null +++ b/mpeglib/example/yaf/yafvorbis/CMakeLists.txt @@ -0,0 +1,32 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### yaf-vorbis (executable) ################### + +tde_add_executable( yaf-vorbis + SOURCES vorbis_control.cpp + LINK + yafcore-shared yafxplayer-shared + mpeg-shared + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/mpeglib/example/yaf/yafxplayer/CMakeLists.txt b/mpeglib/example/yaf/yafxplayer/CMakeLists.txt new file mode 100644 index 00000000..95f2c5b3 --- /dev/null +++ b/mpeglib/example/yaf/yafxplayer/CMakeLists.txt @@ -0,0 +1,53 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + +add_definitions( + -DDIRECT_INCLUDE +) + + +##### yafplayer (library) ####################### + +tde_add_library( yafxplayer SHARED + SOURCES + commandTableXPlayer.cpp + inputDecoderXPlayer.cpp + xplayer_control.cpp + runtimeTableXPlayer.cpp + inputDecoderYAF.cpp + yafOutputStream.cpp + LINK + yafcore-shared + mpeg-shared + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### other data ################################ + +install( + FILES + inputDecoderYAF.h + inputDecoderXPlayer.h + yafOutputStream.h + DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/util/yaf/yafxplayer +) diff --git a/mpeglib/example/yaf/yafyuv/CMakeLists.txt b/mpeglib/example/yaf/yafyuv/CMakeLists.txt new file mode 100644 index 00000000..37c6b622 --- /dev/null +++ b/mpeglib/example/yaf/yafyuv/CMakeLists.txt @@ -0,0 +1,32 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### yaf-yuv (executable) ###################### + +tde_add_executable( yaf-yuv + SOURCES yuv_control.cpp + LINK + yafcore-shared yafxplayer-shared + mpeg-shared + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/mpeglib/lib/CMakeLists.txt b/mpeglib/lib/CMakeLists.txt new file mode 100644 index 00000000..0cb4b49a --- /dev/null +++ b/mpeglib/lib/CMakeLists.txt @@ -0,0 +1,67 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( decoder ) +add_subdirectory( frame ) +add_subdirectory( input ) +add_subdirectory( mpegplay ) +add_subdirectory( mpgplayer ) +add_subdirectory( oggvorbis ) +add_subdirectory( output ) +add_subdirectory( splay ) +add_subdirectory( tplay ) +add_subdirectory( util ) +add_subdirectory( yuv ) + + +include_directories( + ${CMAKE_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### mpeg-lib (library) ######################## + +tde_add_library( mpeg SHARED + SOURCES dummy.cpp + RELEASE ${MPEGLIB_VERSION} + EMBED + mpeg_mpgplayer-static + mpeg_mpegplay-static + mpeg_splay-static + mpeg_oggvorbisbase-static + mpeg_tplay-static + mpeg_decoder-static + mpeg_output-static + mpeg_input-static + mpeg_util-static + mpeg_utilabstract-static + mpeg_utilaudio-static + mpeg_utilsimplefile-static + mpeg_utilrender-static + mpeg_utilrenderdither-static + mpeg_utilrenderdither2YUV-static + mpeg_utilrenderx11-static + mpeg_utilmmx-static + mpeg_frame-static + mpeg_yuvPlugin-static + LINK + mcop kmedia2_idl soundserver_idl artsflow_idl artsmodules-shared + X11 ${XEXT_LIBRARIES} m ${XV_LIBRARIES} ${DGA_LIBRARIES} ${XVIDMODE_LIBRARIES} + ${CDPARANOIA_LIBRARIES} ${VORBIS_LIBRARIES} ${VORBISFILE_LIBRARIES} pthread + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/mpeglib/lib/decoder/CMakeLists.txt b/mpeglib/lib/decoder/CMakeLists.txt new file mode 100644 index 00000000..eb1371a9 --- /dev/null +++ b/mpeglib/lib/decoder/CMakeLists.txt @@ -0,0 +1,45 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### mpeg_decoder (library) #################### + +tde_add_library( mpeg_decoder STATIC_PIC + SOURCES + decoderPlugin.cpp command.cpp + commandPipe.cpp nukePlugin.cpp + vorbisPlugin.cpp cddaPlugin.cpp + splayPlugin.cpp mpegPlugin.cpp + mpgPlugin.cpp tplayPlugin.cpp +) + + +##### other data ################################ + +install( + FILES + decoderPlugin.h command.h + commandPipe.h nukePlugin.h + vorbisPlugin.h cddaPlugin.h + splayPlugin.h mpegPlugin.h + mpgPlugin.h tplayPlugin.h + DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/decoder +) diff --git a/mpeglib/lib/frame/CMakeLists.txt b/mpeglib/lib/frame/CMakeLists.txt new file mode 100644 index 00000000..e8517950 --- /dev/null +++ b/mpeglib/lib/frame/CMakeLists.txt @@ -0,0 +1,44 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### mpeg_frame (library) ###################### + +tde_add_library( mpeg_frame STATIC_PIC + SOURCES + pcmFrame.cpp + audioFrame.cpp floatFrame.cpp frame.cpp + frameQueue.cpp IOFrameQueue.cpp + audioFrameQueue.cpp framer.cpp + rawDataBuffer.cpp rawFrame.cpp +) + + +##### other data ################################ + +install( + FILES + pcmFrame.h audioFrame.h + floatFrame.h frameQueue.h frame.h + IOFrameQueue.h audioFrameQueue.h + framer.h rawDataBuffer.h rawFrame.h + DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/frame +) diff --git a/mpeglib/lib/input/CMakeLists.txt b/mpeglib/lib/input/CMakeLists.txt new file mode 100644 index 00000000..37e1f539 --- /dev/null +++ b/mpeglib/lib/input/CMakeLists.txt @@ -0,0 +1,51 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### mpeg_input (library) ###################### + +tde_add_library( mpeg_input STATIC_PIC + SOURCES + inputStream.cpp fileInputStream.cpp + inputPlugin.cpp + cdromToc.cpp cdromRawAccess.cpp + cdromInputStream.cpp + bufferInputStream.cpp + simpleRingBuffer.cpp + cdromAccess.cpp inputDetector.cpp + httpInputStream.cpp + threadSafeInputStream.cpp + cddaInputStream.cpp + fileAccessWrapper.cpp +) + + +##### other data ################################ + +install( + FILES + inputStream.h fileInputStream.h + inputPlugin.h + cdromInputStream.h bufferInputStream.h + inputDetector.h httpInputStream.h + threadSafeInputStream.h cddaInputStream.h + DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/input +) diff --git a/mpeglib/lib/input/cdromRawAccess.cpp b/mpeglib/lib/input/cdromRawAccess.cpp index b0df4747..e23158f6 100644 --- a/mpeglib/lib/input/cdromRawAccess.cpp +++ b/mpeglib/lib/input/cdromRawAccess.cpp @@ -55,7 +55,7 @@ int CDRomRawAccess::open(const char* filename) { if (strlen(filename) <= 1) { filename="/dev/cdrom"; } - char* openfile=strchr(filename,'/'); + const char* openfile=strchr(filename,'/'); cout << "openfile:"<<openfile<<endl; cdfile=fopen(openfile, "rb"); lOpen=false; diff --git a/mpeglib/lib/input/inputDetector.cpp b/mpeglib/lib/input/inputDetector.cpp index 28bcad5c..56fae0e2 100644 --- a/mpeglib/lib/input/inputDetector.cpp +++ b/mpeglib/lib/input/inputDetector.cpp @@ -119,7 +119,7 @@ char* InputDetector::getExtension(const char* url) { return NULL; } char* back=NULL; - char* extStart=strrchr(url,'.'); + const char* extStart=strrchr(url,'.'); if (extStart != NULL) { cout << "extStart:"<<extStart<<endl; back=strdup(extStart); @@ -172,7 +172,7 @@ char* InputDetector::getFilename(const char* url) { if (url == NULL) { return NULL; } - char* startSlash=strrchr(url,'/'); + const char* startSlash=strrchr(url,'/'); if (startSlash == NULL) { return NULL; } diff --git a/mpeglib/lib/mpegplay/CMakeLists.txt b/mpeglib/lib/mpegplay/CMakeLists.txt new file mode 100644 index 00000000..2ae612bb --- /dev/null +++ b/mpeglib/lib/mpegplay/CMakeLists.txt @@ -0,0 +1,53 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### mpeg_mpegplay (library) ################### + +tde_add_library( mpeg_mpegplay STATIC_PIC + SOURCES + mpegVideoHeader.cpp mpegVideoStream.cpp + globals.cpp jrevdct.cpp + recon.cpp decoderClass.cpp + decoderTables.cpp motionVector.cpp + slice.cpp gop.cpp + mmxidct.cpp + mpegSystemHeader.cpp mpegSystemStream.cpp + picture.cpp mpegExtension.cpp + macroBlock.cpp + mpegVideoLength.cpp + mpegVideoBitWindow.cpp videoDecoder.cpp + copyFunctions_asm.cpp copyFunctions_mmx.cpp + mmxidct_asm.S copyFunctions.cpp + tsSystemStream.cpp psSystemStream.cpp + pesSystemStream.cpp +) + + +##### other data ################################ + +install( + FILES + mpegSystemStream.h mpegVideoLength.h + mpegSystemHeader.h tsSystemStream.h + psSystemStream.h pesSystemStream.h + DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/mpegutil +) diff --git a/mpeglib/lib/mpgplayer/CMakeLists.txt b/mpeglib/lib/mpgplayer/CMakeLists.txt new file mode 100644 index 00000000..4f5db11b --- /dev/null +++ b/mpeglib/lib/mpgplayer/CMakeLists.txt @@ -0,0 +1,35 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### mpeg_mpgplayer (library) ################## + +tde_add_library( mpeg_mpgplayer STATIC_PIC + SOURCES mpegStreamPlayer.cpp +) + + +##### other data ################################ + +install( + FILES mpegStreamPlayer.h + DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/mpegutil +) diff --git a/mpeglib/lib/oggvorbis/CMakeLists.txt b/mpeglib/lib/oggvorbis/CMakeLists.txt new file mode 100644 index 00000000..2921e299 --- /dev/null +++ b/mpeglib/lib/oggvorbis/CMakeLists.txt @@ -0,0 +1,38 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### mpeg_oggvorbisbase (library) ############## + +tde_add_library( mpeg_oggvorbisbase STATIC_PIC + SOURCES + ovFramer.cpp vorbisDecoder.cpp + oggFrame.cpp vorbisInfo.cpp +) + + +##### other data ################################ + +install( + FILES + ovFramer.h vorbisDecoder.h oggFrame.h vorbisInfo.h + DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/oggvorbis +) diff --git a/mpeglib/lib/output/CMakeLists.txt b/mpeglib/lib/output/CMakeLists.txt new file mode 100644 index 00000000..4b6fa20f --- /dev/null +++ b/mpeglib/lib/output/CMakeLists.txt @@ -0,0 +1,48 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### mpeg_output (library) ##################### + +tde_add_library( mpeg_output STATIC_PIC + SOURCES + outPlugin.cpp outputStream.cpp + dspX11OutputStream.cpp + windowOut.cpp + audioTime.cpp + audioData.cpp audioDataArray.cpp + avSyncer.cpp performance.cpp + artsOutputStream.cpp + pluginInfo.cpp yuvDumper.cpp + threadSafeOutputStream.cpp +) + + +##### other data ################################ + +install( + FILES + outputStream.h pluginInfo.h + outPlugin.h dspX11OutputStream.h + artsOutputStream.h audioTime.h + avSyncer.h threadSafeOutputStream.h + DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/output +) diff --git a/mpeglib/lib/splay/CMakeLists.txt b/mpeglib/lib/splay/CMakeLists.txt new file mode 100644 index 00000000..d299cd78 --- /dev/null +++ b/mpeglib/lib/splay/CMakeLists.txt @@ -0,0 +1,50 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### mpeg_splay (library) ###################### + +tde_add_library( mpeg_splay STATIC_PIC + SOURCES + mpegAudioHeader.cpp mpegAudioStream.cpp + huffmantable.cpp + mpeglayer1.cpp + mpeglayer2.cpp + mpeglayer3.cpp + mpegtable.cpp + mpegtoraw.cpp + dxHead.cpp + mpegAudioBitWindow.cpp huffmanlookup.cpp + splayDecoder.cpp + dump.cpp synth_filter.cpp + synthesis.cpp synth_Std.cpp synth_Down.cpp + mpegAudioFrame.cpp + mpegAudioInfo.cpp +) + + +##### other data ################################ + +install( + FILES + splayDecoder.h mpegAudioInfo.h mpegAudioFrame.h + DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/splay +) diff --git a/mpeglib/lib/tplay/CMakeLists.txt b/mpeglib/lib/tplay/CMakeLists.txt new file mode 100644 index 00000000..7a7cf2dd --- /dev/null +++ b/mpeglib/lib/tplay/CMakeLists.txt @@ -0,0 +1,28 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### mpeg_tplay (library) ###################### + +tde_add_library( mpeg_tplay STATIC_PIC + SOURCES + au.cpp tplayfunctions.cpp wav.cpp +) diff --git a/mpeglib/lib/util/CMakeLists.txt b/mpeglib/lib/util/CMakeLists.txt new file mode 100644 index 00000000..877688c1 --- /dev/null +++ b/mpeglib/lib/util/CMakeLists.txt @@ -0,0 +1,48 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( abstract ) +add_subdirectory( audio ) +add_subdirectory( file ) +add_subdirectory( mmx ) +add_subdirectory( render ) + + +include_directories( + ${CMAKE_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### mpeg_util (library) ####################### + +tde_add_library( mpeg_util STATIC_PIC + SOURCES + timeStamp.cpp + timeStampArray.cpp + dynBuffer.cpp syncClock.cpp + syncClockMPEG.cpp timeWrapper.cpp +) + + +##### other data ################################ + +install( + FILES + timeStamp.h dynBuffer.h + timeStampArray.h syncClock.h timeWrapper.h + DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/util +) diff --git a/mpeglib/lib/util/abstract/CMakeLists.txt b/mpeglib/lib/util/abstract/CMakeLists.txt new file mode 100644 index 00000000..38cdd152 --- /dev/null +++ b/mpeglib/lib/util/abstract/CMakeLists.txt @@ -0,0 +1,37 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### mpeg_utilabstract (library) ############### + +tde_add_library( mpeg_utilabstract STATIC_PIC + SOURCES + abs_thread_sdl.cpp threadQueue.cpp +) + + +##### other data ################################ + +install( + FILES + abs_thread.h threadQueue.h + DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/util/abstract +) diff --git a/mpeglib/lib/util/audio/CMakeLists.txt b/mpeglib/lib/util/audio/CMakeLists.txt new file mode 100644 index 00000000..829e37f6 --- /dev/null +++ b/mpeglib/lib/util/audio/CMakeLists.txt @@ -0,0 +1,28 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### mpeg_utilaudio (library) ################## + +tde_add_library( mpeg_utilaudio STATIC_PIC + SOURCES + audioIO.cpp dspWrapper.cpp +) diff --git a/mpeglib/lib/util/file/CMakeLists.txt b/mpeglib/lib/util/file/CMakeLists.txt new file mode 100644 index 00000000..3253cb9d --- /dev/null +++ b/mpeglib/lib/util/file/CMakeLists.txt @@ -0,0 +1,35 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### mpeg_utilsimplefile (library) ############# + +tde_add_library( mpeg_utilsimplefile STATIC_PIC + SOURCES fileAccess.cpp +) + + +##### other data ################################ + +install( + FILES fileAccess.h + DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/util/file +) diff --git a/mpeglib/lib/util/mmx/CMakeLists.txt b/mpeglib/lib/util/mmx/CMakeLists.txt new file mode 100644 index 00000000..1d3e5011 --- /dev/null +++ b/mpeglib/lib/util/mmx/CMakeLists.txt @@ -0,0 +1,40 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### mpeg_utilmmx (library) #################### + +tde_add_library( mpeg_utilmmx STATIC_PIC + SOURCES + cpu_accel.c mmx.c +) + +set_property( TARGET mpeg_utilmmx-static + APPEND PROPERTY COMPILE_DEFINITIONS PIC ) + + +##### other data ################################ + +install( + FILES + mmx.h mmx_asm.h mm_accel.h + DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/util/mmx +) diff --git a/mpeglib/lib/util/render/CMakeLists.txt b/mpeglib/lib/util/render/CMakeLists.txt new file mode 100644 index 00000000..2ed3b971 --- /dev/null +++ b/mpeglib/lib/util/render/CMakeLists.txt @@ -0,0 +1,45 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( dither ) +add_subdirectory( dither2YUV ) +add_subdirectory( sdl ) +add_subdirectory( x11 ) + + +include_directories( + ${CMAKE_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### mpeg_utilrender (library) ################# + +tde_add_library( mpeg_utilrender STATIC_PIC + SOURCES + yuvPicture.cpp imageBase.cpp + renderMachine.cpp surface.cpp + pictureArray.cpp +) + + +##### other data ################################ + +install( + FILES + yuvPicture.h pictureArray.h + DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/util/render +) diff --git a/mpeglib/lib/util/render/dither/CMakeLists.txt b/mpeglib/lib/util/render/dither/CMakeLists.txt new file mode 100644 index 00000000..e2520de1 --- /dev/null +++ b/mpeglib/lib/util/render/dither/CMakeLists.txt @@ -0,0 +1,33 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### mpeg_utilrenderdither (library) ########### + +tde_add_library( mpeg_utilrenderdither STATIC_PIC + SOURCES + ditherWrapper.cpp + dither8Bit.cpp + colorTable8Bit.cpp colorTableHighBit.cpp + dither16Bit.cpp dither32Bit.cpp + ditherRGB_flipped.cpp ditherRGB.cpp + ditherer_mmx16.cpp dither32mmx.cpp +) diff --git a/mpeglib/lib/util/render/dither2YUV/CMakeLists.txt b/mpeglib/lib/util/render/dither2YUV/CMakeLists.txt new file mode 100644 index 00000000..ea6ad820 --- /dev/null +++ b/mpeglib/lib/util/render/dither2YUV/CMakeLists.txt @@ -0,0 +1,29 @@ +################################################# +# +# (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_SOURCE_DIR}/.. + ${CMAKE_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### mpeg_utilrenderdither2YUV (library) ####### + +tde_add_library( mpeg_utilrenderdither2YUV STATIC_PIC + SOURCES + dither2YUV.cpp rgb2yuv16.cpp rgb2yuv32.cpp +) diff --git a/mpeglib/lib/util/render/sdl/CMakeLists.txt b/mpeglib/lib/util/render/sdl/CMakeLists.txt new file mode 100644 index 00000000..a6bfc4d0 --- /dev/null +++ b/mpeglib/lib/util/render/sdl/CMakeLists.txt @@ -0,0 +1,28 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### mpeg_utilrendersdl (library) ############## + +tde_add_library( mpeg_utilrendersdl STATIC_PIC + SOURCES + imageDeskSDL.cpp sdlSurface.cpp +) diff --git a/mpeglib/lib/util/render/x11/CMakeLists.txt b/mpeglib/lib/util/render/x11/CMakeLists.txt new file mode 100644 index 00000000..7c36e325 --- /dev/null +++ b/mpeglib/lib/util/render/x11/CMakeLists.txt @@ -0,0 +1,31 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### mpeg_utilrenderx11 (library) ############## + +tde_add_library( mpeg_utilrenderx11 STATIC_PIC + SOURCES + initDisplay.cpp + imageDeskX11.cpp + imageDGAFull.cpp imageXVDesk.cpp + x11Surface.cpp +) diff --git a/mpeglib/lib/yuv/CMakeLists.txt b/mpeglib/lib/yuv/CMakeLists.txt new file mode 100644 index 00000000..ba551fc1 --- /dev/null +++ b/mpeglib/lib/yuv/CMakeLists.txt @@ -0,0 +1,35 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### mpeg_yuvPlugin (library) ################## + +tde_add_library( mpeg_yuvPlugin STATIC_PIC + SOURCES yuvPlugin.cpp +) + + +##### other data ################################ + +install( + FILES yuvPlugin.h + DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/decoder +) diff --git a/mpeglib_artsplug/CMakeLists.txt b/mpeglib_artsplug/CMakeLists.txt new file mode 100644 index 00000000..61ad25d4 --- /dev/null +++ b/mpeglib_artsplug/CMakeLists.txt @@ -0,0 +1,109 @@ +################################################# +# +# (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} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### arts_mpeglib (library) #################### + +tde_add_library( arts_mpeglib SHARED + SOURCES + decoderBaseObject.cc + splayPlayObject.cc + 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.cc 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.cc + splayPlayObject_impl.cpp + VERSION 0.0.0 + LINK mpeg-shared ${ARTS_LIBRARIES} + DESTINATION ${LIB_INSTALL_DIR} +) + +add_custom_command( + OUTPUT + splayPlayObject.cc 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 +) diff --git a/noatun/CMakeLists.txt b/noatun/CMakeLists.txt new file mode 100644 index 00000000..df9f15b4 --- /dev/null +++ b/noatun/CMakeLists.txt @@ -0,0 +1,65 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( app ) +add_subdirectory( library ) +add_subdirectory( modules ) +add_subdirectory( pics ) +tde_install_icons( ) + + +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR}/library + ${CMAKE_BINARY_DIR} + ${ARTS_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR}/tdeio + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### noatun20update (executable) ############### + +tde_add_executable( noatun20update + SOURCES + noatun20update.cpp + LINK + DCOP-shared tdecore-shared tdeui-shared tdefx-shared + tdeio-shared tdetexteditor-shared + DESTINATION ${LIB_INSTALL_DIR}/tdeconf_update_bin +) + + +##### api ####################################### + +add_custom_target( noatun.api + COMMAND ${CMAKE_COMMAND} -E make_directory + ${CMAKE_CURRENT_BINARY_DIR}/apidocs/libnoatun + COMMAND ${CMAKE_COMMAND} -E create_symlink + ${TDE_HTML_DIR}/en/common + ${CMAKE_CURRENT_BINARY_DIR}/apidocs/common + COMMAND doxygen ${CMAKE_CURRENT_SOURCE_DIR}/noatun.api +) + + +##### other data ################################ + +install( FILES noatun.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) +install( FILES noatun.upd DESTINATION ${DATA_INSTALL_DIR}/tdeconf_update ) +install( + FILES + preset.dance preset.jazz preset.metal preset.trance preset.zero + DESTINATION ${DATA_INSTALL_DIR}/noatun/eq.preset +) diff --git a/noatun/app/CMakeLists.txt b/noatun/app/CMakeLists.txt new file mode 100644 index 00000000..ccdf0687 --- /dev/null +++ b/noatun/app/CMakeLists.txt @@ -0,0 +1,34 @@ +################################################# +# +# (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_SOURCE_DIR}/../library + ${CMAKE_BINARY_DIR} + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### noatun (tdeinit) ########################## + +tde_add_tdeinit_executable( noatun AUTOMOC + SOURCES + main.cpp + LINK + noatun-shared + mcop qtmcop kmedia2_idl soundserver_idl artsflow_idl +) diff --git a/noatun/library/CMakeLists.txt b/noatun/library/CMakeLists.txt new file mode 100644 index 00000000..69b9cdd0 --- /dev/null +++ b/noatun/library/CMakeLists.txt @@ -0,0 +1,117 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( noatun ) +add_subdirectory( noatunarts ) +add_subdirectory( noatuntags ) + +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/noatun + ${CMAKE_CURRENT_SOURCE_DIR}/noatunarts + ${CMAKE_SOURCE_DIR}/arts/gui/kde + ${CMAKE_SOURCE_DIR}/arts/gui/common + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR}/noatunarts + ${CMAKE_BINARY_DIR}/arts/gui/kde + ${CMAKE_BINARY_DIR}/arts/gui/common + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + +if( BUILD_ARTS ) + set( NOATUN_ARTS_LIBRARIES "artsgui-shared;artsgui_kde-shared;artsmodules-shared" ) +else( ) + set( NOATUN_WITHOUT_ARTS_EFFECTS 1 CACHE INTERNAL "" FORCE ) +endif( ) + + +##### noatun (library) ########################## + +tde_add_library( noatun SHARED AUTOMOC + SOURCES + pluginmodule.cpp cmodule.cpp downloader.cpp engine.cpp + playlist.cpp pref.cpp + player.cpp playlistsaver.cpp app.cpp + pluginloader.cpp plugin.cpp + noatunstdaction.cpp conversion.cpp + noatunui.cpp effectview.cpp + equalizerwidget.ui equalizerview.cpp equalizer.cpp + effects.cpp mimetypetree.cpp stereobuttonaction.cpp ksaver.cpp + video.cpp vequalizer.cpp spline.cpp titleproxy.cpp + META_INCLUDES + ${CMAKE_CURRENT_SOURCE_DIR}/noatun + VERSION 1.2.0 + LINK + DCOP-shared tdeio-shared artskde-shared ${DL_LIBRARIES} + ${NOATUN_ARTS_LIBRARIES} + mcop qtmcop kmedia2_idl soundserver_idl artsflow + noatunarts-shared + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### noatuncontrols (library) ################## + +tde_add_library( noatuncontrols SHARED AUTOMOC + SOURCES + controls.cpp scrollinglabel.cpp + META_INCLUDES + ${CMAKE_CURRENT_SOURCE_DIR}/noatun + VERSION 1.2.0 + LINK + tdecore-shared tdeui-shared ${DL_LIBRARIES} + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### gentable (executable) ##################### + +tde_add_executable( gentable AUTOMOC + SOURCES + gentable.cpp + LINK + ${TQT_LIBRARIES} +) + +add_custom_target( noatun-magictable ALL + DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/magictable +) + +add_custom_command( + OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/magictable + COMMAND gentable > magictable + DEPENDS gentable +) + + +##### other data ################################ + +install( + FILES + cmodule.h plugin_deps.h + equalizerview.h effectview.h + mimetypetree.h + ksaver.h + DESTINATION ${INCLUDE_INSTALL_DIR} +) + +install( + FILES ${CMAKE_CURRENT_BINARY_DIR}/magictable + DESTINATION ${DATA_INSTALL_DIR}/noatun +) diff --git a/noatun/library/effects.cpp b/noatun/library/effects.cpp index 6815a90a..2e4d6038 100644 --- a/noatun/library/effects.cpp +++ b/noatun/library/effects.cpp @@ -11,7 +11,9 @@ #include <config.h> -#define HAS_ARTSVERSION_H +#if !defined(NOATUN_WITHOUT_ARTS_EFFECTS) +# define HAS_ARTSVERSION_H +#endif #ifdef HAS_ARTSVERSION_H #include <artsgui.h> diff --git a/noatun/library/noatun/CMakeLists.txt b/noatun/library/noatun/CMakeLists.txt new file mode 100644 index 00000000..0194ce41 --- /dev/null +++ b/noatun/library/noatun/CMakeLists.txt @@ -0,0 +1,20 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( + FILES + effects.h playlist.h plugin.h + controls.h engine.h pref.h pluginloader.h + conversion.h equalizer.h stdaction.h scrollinglabel.h + downloader.h app.h player.h stereobuttonaction.h + playlistsaver.h video.h vequalizer.h + DESTINATION ${INCLUDE_INSTALL_DIR}/noatun +) diff --git a/noatun/library/noatunarts/CMakeLists.txt b/noatun/library/noatunarts/CMakeLists.txt new file mode 100644 index 00000000..fa0aa905 --- /dev/null +++ b/noatun/library/noatunarts/CMakeLists.txt @@ -0,0 +1,76 @@ +################################################# +# +# (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_BINARY_DIR} + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### noatunarts (library) ###################### + +tde_add_library( noatunarts SHARED AUTOMOC + SOURCES + noatunarts.cc fft.c Equalizer_impl.cpp + FFTScopes.cpp StereoEffectStack_impl.cpp + StereoVolumeControl_impl.cpp Session_impl.cpp + LINK + mpeg-shared ${ARTS_LIBRARIES} + mcop kmedia2_idl artsflow artsflow_idl soundserver_idl + DESTINATION ${LIB_INSTALL_DIR} +) + +add_custom_command( + OUTPUT + noatunarts.cc noatunarts.h + COMMAND ${ARTS_MCOPIDL_EXECUTABLE} -t + -I${ARTS_INCLUDEDIR} ${CMAKE_CURRENT_SOURCE_DIR}/noatunarts.idl + DEPENDS noatunarts.idl +) + + +##### other data ################################ + +install( + FILES ${CMAKE_CURRENT_BINARY_DIR}/noatunarts.h + DESTINATION ${INCLUDE_INSTALL_DIR}/noatun +) + +install( + FILES + Equalizer.mcopclass + FFTScopeStereo.mcopclass + StereoEffectStack.mcopclass + EqualizerSSE.mcopclass + RawScope.mcopclass + StereoVolumeControl.mcopclass + FFTScope.mcopclass + RawScopeStereo.mcopclass + StereoVolumeControlSSE.mcopclass + Session.mcopclass + Listener.mcopclass + DESTINATION ${LIB_INSTALL_DIR}/mcop/Noatun +) + +install( + FILES + ${CMAKE_CURRENT_BINARY_DIR}/noatunarts.mcoptype + ${CMAKE_CURRENT_BINARY_DIR}/noatunarts.mcopclass + DESTINATION ${LIB_INSTALL_DIR}/mcop +) diff --git a/noatun/library/noatuntags/CMakeLists.txt b/noatun/library/noatuntags/CMakeLists.txt new file mode 100644 index 00000000..e880ea02 --- /dev/null +++ b/noatun/library/noatuntags/CMakeLists.txt @@ -0,0 +1,40 @@ +################################################# +# +# (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_SOURCE_DIR}/../ + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### noatuntags (library) ###################### + +tde_add_library( noatuntags SHARED AUTOMOC + SOURCES + tags.cpp + VERSION 1.2.0 + LINK + noatun-shared + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES tags.h DESTINATION ${INCLUDE_INSTALL_DIR}/noatun ) diff --git a/noatun/modules/CMakeLists.txt b/noatun/modules/CMakeLists.txt new file mode 100644 index 00000000..ef9b402a --- /dev/null +++ b/noatun/modules/CMakeLists.txt @@ -0,0 +1,29 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_conditional_add_subdirectory( BUILD_ARTS artseffects ) +add_subdirectory( dcopiface ) +add_subdirectory( excellent ) +add_subdirectory( htmlexport ) +add_subdirectory( infrared ) +add_subdirectory( kaiman ) +add_subdirectory( keyz ) +tde_conditional_add_subdirectory( BUILD_ARTS kjofol-skin ) +add_subdirectory( marquis ) +add_subdirectory( metatag ) +add_subdirectory( monoscope ) +add_subdirectory( net ) +add_subdirectory( noatunui ) +add_subdirectory( simple ) +add_subdirectory( splitplaylist ) +add_subdirectory( systray ) +add_subdirectory( voiceprint ) +add_subdirectory( winskin ) diff --git a/noatun/modules/artseffects/CMakeLists.txt b/noatun/modules/artseffects/CMakeLists.txt new file mode 100644 index 00000000..90864c7d --- /dev/null +++ b/noatun/modules/artseffects/CMakeLists.txt @@ -0,0 +1,67 @@ +################################################# +# +# (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_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/arts/gui/common + ${CMAKE_BINARY_DIR}/arts/gui/common + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### libartseffects (module) ################### + +tde_add_kpart( libartseffects + SOURCES + artseffects.cc extrastereo_impl.cc + LINK + artsgui_idl-shared ${ARTS_LIBRARIES} + mcop kmedia2_idl artsflow artsflow_idl soundserver_idl + DESTINATION ${LIB_INSTALL_DIR} +) + +add_custom_command( + OUTPUT + artseffects.cc artseffects.h + COMMAND ${ARTS_MCOPIDL_EXECUTABLE} -t + -I${CMAKE_BINARY_DIR}/arts/gui/common + -I${CMAKE_SOURCE_DIR}/arts/gui/common + -I${ARTS_INCLUDEDIR} + ${CMAKE_CURRENT_SOURCE_DIR}/artseffects.idl + DEPENDS artseffects.idl +) + + +##### other data ################################ + +install( + FILES + ExtraStereo.mcopclass + VoiceRemoval.mcopclass + RawWriter.mcopclass + ExtraStereoGuiFactory.mcopclass + DESTINATION ${LIB_INSTALL_DIR}/mcop +) + +install( + FILES + ${CMAKE_CURRENT_BINARY_DIR}/artseffects.mcoptype + ${CMAKE_CURRENT_BINARY_DIR}/artseffects.mcopclass + DESTINATION ${LIB_INSTALL_DIR}/mcop +) diff --git a/noatun/modules/dcopiface/CMakeLists.txt b/noatun/modules/dcopiface/CMakeLists.txt new file mode 100644 index 00000000..8947fd00 --- /dev/null +++ b/noatun/modules/dcopiface/CMakeLists.txt @@ -0,0 +1,41 @@ +################################################# +# +# (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_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/noatun/library + ${CMAKE_BINARY_DIR}/noatun/library + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### noatun_dcopiface (module) ################# + +tde_add_kpart( noatun_dcopiface AUTOMOC + SOURCES + dcopiface.cpp dcopiface.skel + LINK + tdeio-shared noatun-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES dcopiface.plugin DESTINATION ${DATA_INSTALL_DIR}/noatun ) diff --git a/noatun/modules/excellent/CMakeLists.txt b/noatun/modules/excellent/CMakeLists.txt new file mode 100644 index 00000000..d4202bae --- /dev/null +++ b/noatun/modules/excellent/CMakeLists.txt @@ -0,0 +1,44 @@ +################################################# +# +# (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_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/noatun/library + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### noatun_excellent (module) ################# + +tde_add_kpart( noatun_excellent AUTOMOC + SOURCES + noatunui.cpp userinterface.cpp + LINK + tdeio-shared noatun-shared noatuncontrols-shared + mcop qtmcop kmedia2_idl soundserver_idl + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( + FILES + excellent.plugin excellentui.rc + DESTINATION ${DATA_INSTALL_DIR}/noatun +) diff --git a/noatun/modules/htmlexport/CMakeLists.txt b/noatun/modules/htmlexport/CMakeLists.txt new file mode 100644 index 00000000..f115ff96 --- /dev/null +++ b/noatun/modules/htmlexport/CMakeLists.txt @@ -0,0 +1,40 @@ +################################################# +# +# (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_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/noatun/library + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### noatun_htmlexport (module) ################ + +tde_add_kpart( noatun_htmlexport AUTOMOC + SOURCES + htmlexport.cpp + LINK + tdeio-shared noatun-shared + mcop qtmcop kmedia2_idl soundserver_idl + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES htmlexport.plugin DESTINATION ${DATA_INSTALL_DIR}/noatun ) diff --git a/noatun/modules/infrared/CMakeLists.txt b/noatun/modules/infrared/CMakeLists.txt new file mode 100644 index 00000000..c9cd6391 --- /dev/null +++ b/noatun/modules/infrared/CMakeLists.txt @@ -0,0 +1,40 @@ +################################################# +# +# (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_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/noatun/library + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### noatun_infrared (module) ################## + +tde_add_kpart( noatun_infrared AUTOMOC + SOURCES + infrared.cpp lirc.cpp irprefs.cpp + LINK + tdeio-shared noatun-shared + mcop qtmcop kmedia2_idl soundserver_idl + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES infrared.plugin DESTINATION ${DATA_INSTALL_DIR}/noatun ) diff --git a/noatun/modules/kaiman/CMakeLists.txt b/noatun/modules/kaiman/CMakeLists.txt new file mode 100644 index 00000000..7888f1b6 --- /dev/null +++ b/noatun/modules/kaiman/CMakeLists.txt @@ -0,0 +1,49 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( skins ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/noatun/library + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### noatun_kaiman (module) #################### + +tde_add_kpart( noatun_kaiman AUTOMOC + SOURCES + noatunui.cpp + style.cpp + userinterface.cpp + pref.cpp + LINK + tdeio-shared noatun-shared + mcop qtmcop kmedia2_idl soundserver_idl + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( + FILES + kaiman.plugin kaimanui.rc + DESTINATION ${DATA_INSTALL_DIR}/noatun +) diff --git a/noatun/modules/kaiman/skins/CMakeLists.txt b/noatun/modules/kaiman/skins/CMakeLists.txt new file mode 100644 index 00000000..54b9f5d6 --- /dev/null +++ b/noatun/modules/kaiman/skins/CMakeLists.txt @@ -0,0 +1,14 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( car-preset ) +add_subdirectory( circle ) +add_subdirectory( k9 ) diff --git a/noatun/modules/kaiman/skins/car-preset/CMakeLists.txt b/noatun/modules/kaiman/skins/car-preset/CMakeLists.txt new file mode 100644 index 00000000..8fa1ff8d --- /dev/null +++ b/noatun/modules/kaiman/skins/car-preset/CMakeLists.txt @@ -0,0 +1,21 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( + FILES + btn_p1.png btn_play.png digbig.png random.png + btn_p2.png btn_prev.png digmed.png repeat.png + btn_exit.png btn_p3.png btn_sml.png letters.png skindata + btn_iconify.png btn_p4.png btn_stop.png main.png status.png + btn_list.png btn_p5.png btn_voldn.png monoster.png volume.png + btn_next.png btn_p6.png btn_volup.png posbar.png + DESTINATION ${DATA_INSTALL_DIR}/noatun/skins/kaiman/car-preset +) diff --git a/noatun/modules/kaiman/skins/circle/CMakeLists.txt b/noatun/modules/kaiman/skins/circle/CMakeLists.txt new file mode 100644 index 00000000..2f4514bb --- /dev/null +++ b/noatun/modules/kaiman/skins/circle/CMakeLists.txt @@ -0,0 +1,23 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( + FILES + btn_exit.png btn_repeat.png btn_sm_stop.png + btn_iconify.png btn_shuffle.png btn_stop.png + back.png btn_list.png btn_sm_exit.png dig.png + back_mask.png btn_mode.png btn_sm_iconify.png digsml.png + back_sm.png btn_next.png btn_sm_mode.png letters.png + back_sm_mask.png btn_play.png btn_sm_next.png skindata + bar_pos.png btn_pref.png btn_sm_play.png + bar_vol.png btn_prev.png btn_sm_prev.png status.png + DESTINATION ${DATA_INSTALL_DIR}/noatun/skins/kaiman/circle +) diff --git a/noatun/modules/kaiman/skins/k9/CMakeLists.txt b/noatun/modules/kaiman/skins/k9/CMakeLists.txt new file mode 100644 index 00000000..4d72661e --- /dev/null +++ b/noatun/modules/kaiman/skins/k9/CMakeLists.txt @@ -0,0 +1,22 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( + FILES + README skindata conf.jpg conf.png eject.jpg icon.jpg icon.png + kill.jpg kill.png knine-nfont.jpg knine-nfont.png knine-nfont2.jpg + knine-nfont2.png knine-normal2.jpg knine-normal2.png knine-vfont.jpg + knine-vfont.png long2.jpg mask.png newtext.jpg newtext.png next.jpg + pause.jpg play.jpg pos_item.jpg repeat.jpg repeat.png reverse.jpg + shuffle.jpg shuffle.png small-k.jpg small-k.png square.jpg square.png + status.jpg status.png stop.jpg trans-pos.png trans-slide.png + DESTINATION ${DATA_INSTALL_DIR}/noatun/skins/kaiman/k9 +) diff --git a/noatun/modules/keyz/CMakeLists.txt b/noatun/modules/keyz/CMakeLists.txt new file mode 100644 index 00000000..0c4b3d23 --- /dev/null +++ b/noatun/modules/keyz/CMakeLists.txt @@ -0,0 +1,40 @@ +################################################# +# +# (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_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/noatun/library + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### noatun_keyz (module) ###################### + +tde_add_kpart( noatun_keyz AUTOMOC + SOURCES + keyz.cpp + LINK + tdeio-shared noatun-shared + mcop qtmcop kmedia2_idl soundserver_idl + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES keyz.plugin DESTINATION ${DATA_INSTALL_DIR}/noatun ) diff --git a/noatun/modules/kjofol-skin/CMakeLists.txt b/noatun/modules/kjofol-skin/CMakeLists.txt new file mode 100644 index 00000000..2eca2396 --- /dev/null +++ b/noatun/modules/kjofol-skin/CMakeLists.txt @@ -0,0 +1,57 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( skins ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/noatun/library + ${CMAKE_BINARY_DIR}/noatun/library + ${CMAKE_BINARY_DIR}/arts/gui/common + ${CMAKE_BINARY_DIR}/arts/midi + ${CMAKE_BINARY_DIR}/arts/modules + ${CMAKE_BINARY_DIR}/arts/modules/common + ${CMAKE_BINARY_DIR}/arts/modules/effects + ${CMAKE_BINARY_DIR}/arts/modules/mixers + ${CMAKE_BINARY_DIR}/arts/modules/synth + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR}/tdeio + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### noatun_kjofol (module) #################### + +tde_add_kpart( noatun_kjofol AUTOMOC + SOURCES + kjloader.cpp kjwidget.cpp kjbutton.cpp kjseeker.cpp + kjsliders.cpp kjfont.cpp kjtextdisplay.cpp + kjvis.cpp kjequalizer.cpp kjbackground.cpp + noatunui.cpp parser.cpp + kjprefs.cpp + kjskinselectorwidget.ui kjguisettingswidget.ui + LINK + tdeio-shared noatun-shared artsmodules-shared + mcop qtmcop kmedia2_idl soundserver_idl + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES kjofolui.plugin DESTINATION ${DATA_INSTALL_DIR}/noatun ) diff --git a/noatun/modules/kjofol-skin/skins/CMakeLists.txt b/noatun/modules/kjofol-skin/skins/CMakeLists.txt new file mode 100644 index 00000000..03c565ed --- /dev/null +++ b/noatun/modules/kjofol-skin/skins/CMakeLists.txt @@ -0,0 +1,15 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( HexoBronx ) +add_subdirectory( kjofol ) +add_subdirectory( phong ) +add_subdirectory( vibrocentric ) diff --git a/noatun/modules/kjofol-skin/skins/HexoBronx/CMakeLists.txt b/noatun/modules/kjofol-skin/skins/HexoBronx/CMakeLists.txt new file mode 100644 index 00000000..9417ad25 --- /dev/null +++ b/noatun/modules/kjofol-skin/skins/HexoBronx/CMakeLists.txt @@ -0,0 +1,18 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( + FILES + HexoBronx.rc README.txt active.png eckig_font.png + font.png inactive.png mask.png pitch.png splash.png time_font.png volume.png + volume_pitch_font.png + DESTINATION ${DATA_INSTALL_DIR}/noatun/skins/kjofol/HexoBronx +) diff --git a/noatun/modules/kjofol-skin/skins/kjofol/CMakeLists.txt b/noatun/modules/kjofol-skin/skins/kjofol/CMakeLists.txt new file mode 100644 index 00000000..271807dc --- /dev/null +++ b/noatun/modules/kjofol-skin/skins/kjofol/CMakeLists.txt @@ -0,0 +1,21 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( + FILES + kjofol.dck kjofol.pl kjofol.rc kjofol.wsh sgdock2.png + sgdock.png sgdocksk.png sgdockvp.png sgeq.png sg_num.png + sgpitch.png sgpitchp.png sgplist2.png sgplist.png sg.png + sgpres1.png sgpres2.png sgpres3.png sg_seek.bmp sg_seek.png + sg_text.png sgvolnum.png sgvol.png sgvolpos.png sgwshad2.png + sgwshad.png sgwshdsk.png sgwshvol.png sgwshvp.png + DESTINATION ${DATA_INSTALL_DIR}/noatun/skins/kjofol/kjofol +) diff --git a/noatun/modules/kjofol-skin/skins/phong/CMakeLists.txt b/noatun/modules/kjofol-skin/skins/phong/CMakeLists.txt new file mode 100644 index 00000000..f5151f62 --- /dev/null +++ b/noatun/modules/kjofol-skin/skins/phong/CMakeLists.txt @@ -0,0 +1,18 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( + FILES + p_eq.png p_numbers.png p_propos.png p_volpos.png phong.wsh + p_main.png p_playback.png p_text.png phong.dck phong_readme.txt + p_mainback.png p_playlist.png p_volbar.png phong.rc + DESTINATION ${DATA_INSTALL_DIR}/noatun/skins/kjofol/phong +) diff --git a/noatun/modules/kjofol-skin/skins/vibrocentric/CMakeLists.txt b/noatun/modules/kjofol-skin/skins/vibrocentric/CMakeLists.txt new file mode 100644 index 00000000..ec7cdf51 --- /dev/null +++ b/noatun/modules/kjofol-skin/skins/vibrocentric/CMakeLists.txt @@ -0,0 +1,18 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( + FILES + i_base2.png i_pl.png i_text.png vibrocentric.dck vibrocentric_readme.txt + i_eq.png i_pl2.png i_vol.png vibrocentric.rc i_base.png + i_font.png i_pro.png i_volpos.png vibrocentric.wsh + DESTINATION ${DATA_INSTALL_DIR}/noatun/skins/kjofol/vibrocentric +) diff --git a/noatun/modules/marquis/CMakeLists.txt b/noatun/modules/marquis/CMakeLists.txt new file mode 100644 index 00000000..39e68b66 --- /dev/null +++ b/noatun/modules/marquis/CMakeLists.txt @@ -0,0 +1,40 @@ +################################################# +# +# (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_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/noatun/library + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### noatun_marquis (module) ################### + +tde_add_kpart( noatun_marquis AUTOMOC + SOURCES + marquis.cpp plugin.cpp + LINK + tdeio-shared noatun-shared + mcop qtmcop kmedia2_idl soundserver_idl + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES marquis.plugin DESTINATION ${DATA_INSTALL_DIR}/noatun ) diff --git a/noatun/modules/metatag/CMakeLists.txt b/noatun/modules/metatag/CMakeLists.txt new file mode 100644 index 00000000..5d8ae5b2 --- /dev/null +++ b/noatun/modules/metatag/CMakeLists.txt @@ -0,0 +1,41 @@ +################################################# +# +# (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_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/noatun/library + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### noatun_metatag (module) ################### + +tde_add_kpart( noatun_metatag AUTOMOC + SOURCES + metatag.cpp edit.cpp + LINK + tdeio-shared noatun-shared noatuntags-shared + mcop qtmcop kmedia2_idl soundserver_idl + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES metatag.plugin DESTINATION ${DATA_INSTALL_DIR}/noatun ) diff --git a/noatun/modules/monoscope/CMakeLists.txt b/noatun/modules/monoscope/CMakeLists.txt new file mode 100644 index 00000000..942a4dc7 --- /dev/null +++ b/noatun/modules/monoscope/CMakeLists.txt @@ -0,0 +1,40 @@ +################################################# +# +# (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_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/noatun/library + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### noatun_monoscope (module) ################# + +tde_add_kpart( noatun_monoscope AUTOMOC + SOURCES + monoscope.cpp + LINK + tdeio-shared noatun-shared + mcop qtmcop kmedia2_idl soundserver_idl + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES monoscope.plugin DESTINATION ${DATA_INSTALL_DIR}/noatun ) diff --git a/noatun/modules/net/CMakeLists.txt b/noatun/modules/net/CMakeLists.txt new file mode 100644 index 00000000..662baa5f --- /dev/null +++ b/noatun/modules/net/CMakeLists.txt @@ -0,0 +1,40 @@ +################################################# +# +# (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_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/noatun/library + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### noatun_net (module) ####################### + +tde_add_kpart( noatun_net AUTOMOC + SOURCES + net.cpp + LINK + tdeio-shared noatun-shared + mcop qtmcop kmedia2_idl soundserver_idl + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES net.plugin DESTINATION ${DATA_INSTALL_DIR}/noatun ) diff --git a/noatun/modules/noatunui/CMakeLists.txt b/noatun/modules/noatunui/CMakeLists.txt new file mode 100644 index 00000000..1469f674 --- /dev/null +++ b/noatun/modules/noatunui/CMakeLists.txt @@ -0,0 +1,40 @@ +################################################# +# +# (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_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/noatun/library + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### noatun_ui (module) ######################## + +tde_add_kpart( noatun_ui AUTOMOC + SOURCES + noatunui.cpp userinterface.cpp + LINK + tdeio-shared noatun-shared noatuncontrols-shared + mcop qtmcop kmedia2_idl soundserver_idl + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES noatunui.plugin DESTINATION ${DATA_INSTALL_DIR}/noatun ) diff --git a/noatun/modules/simple/CMakeLists.txt b/noatun/modules/simple/CMakeLists.txt new file mode 100644 index 00000000..ddd6a0cb --- /dev/null +++ b/noatun/modules/simple/CMakeLists.txt @@ -0,0 +1,45 @@ +################################################# +# +# (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_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/noatun/library + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### noatunsimple (module) ##################### + +tde_add_kpart( noatunsimple AUTOMOC + SOURCES + propertiesdialog.ui noatunui.cpp userinterface.cpp + LINK + tdeio-shared noatun-shared noatuncontrols-shared + mcop qtmcop kmedia2_idl soundserver_idl artskde-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( + FILES + simple.plugin simpleui.rc + DESTINATION ${DATA_INSTALL_DIR}/noatun +) diff --git a/noatun/modules/splitplaylist/CMakeLists.txt b/noatun/modules/splitplaylist/CMakeLists.txt new file mode 100644 index 00000000..881ecbd6 --- /dev/null +++ b/noatun/modules/splitplaylist/CMakeLists.txt @@ -0,0 +1,44 @@ +################################################# +# +# (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_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/noatun/library + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### noatun_splitplaylist (module) ############# + +tde_add_kpart( noatun_splitplaylist AUTOMOC + SOURCES + splitplaylist.cpp playlist.cpp view.cpp find.cpp + LINK + tdeio-shared noatun-shared + mcop qtmcop kmedia2_idl soundserver_idl + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( + FILES + splitplaylist.plugin splui.rc + DESTINATION ${DATA_INSTALL_DIR}/noatun +) diff --git a/noatun/modules/systray/CMakeLists.txt b/noatun/modules/systray/CMakeLists.txt new file mode 100644 index 00000000..7ac17a47 --- /dev/null +++ b/noatun/modules/systray/CMakeLists.txt @@ -0,0 +1,45 @@ +################################################# +# +# (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_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/noatun/library + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### noatun_systray (module) ################### + +tde_add_kpart( noatun_systray AUTOMOC + SOURCES + systray.cpp noatunui.cpp kitsystemtray.cpp cmodule.cpp + yhconfig.kcfgc yhconfigwidget.ui + LINK + tdeio-shared noatun-shared + mcop qtmcop kmedia2_idl soundserver_idl + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( + FILES + systray.plugin systrayui.rc yhconfig.kcfg + DESTINATION ${DATA_INSTALL_DIR}/noatun +) diff --git a/noatun/modules/voiceprint/CMakeLists.txt b/noatun/modules/voiceprint/CMakeLists.txt new file mode 100644 index 00000000..4e060e09 --- /dev/null +++ b/noatun/modules/voiceprint/CMakeLists.txt @@ -0,0 +1,40 @@ +################################################# +# +# (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_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/noatun/library + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### noatun_voiceprint (module) ################ + +tde_add_kpart( noatun_voiceprint AUTOMOC + SOURCES + voiceprint.cpp prefs.cpp + LINK + tdeio-shared noatun-shared + mcop qtmcop kmedia2_idl soundserver_idl + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES voiceprint.plugin DESTINATION ${DATA_INSTALL_DIR}/noatun ) diff --git a/noatun/modules/winskin/CMakeLists.txt b/noatun/modules/winskin/CMakeLists.txt new file mode 100644 index 00000000..28ee1101 --- /dev/null +++ b/noatun/modules/winskin/CMakeLists.txt @@ -0,0 +1,72 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( mimetypes ) +add_subdirectory( skins ) +add_subdirectory( vis ) + +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/noatun/library + ${CMAKE_BINARY_DIR}/noatun/library + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR}/tdeio + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### noatun_winskin (module) ################### + +tde_add_kpart( noatun_winskin AUTOMOC + SOURCES + fileInfo.cpp + guiSpectrumAnalyser.cpp + plugin.cpp + waBalanceSlider.cpp + waButton.cpp + waClutterbar.cpp + waColor.cpp + waDigit.cpp + waInfo.cpp + waIndicator.cpp + waJumpSlider.cpp + waLabel.cpp + waMain.cpp + waRegion.cpp + waSkin.cpp + waSkinModel.cpp + waSlider.cpp + waStatus.cpp + waTitleBar.cpp + waVolumeSlider.cpp + waWidget.cpp + winSkinConfig.cpp + winSkinVis.cpp + waSkinManager.cpp + waSkinManager.skel + LINK + tdeio-shared noatun-shared winskinvis-shared + mcop qtmcop kmedia2_idl soundserver_idl + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES winskin.plugin DESTINATION ${DATA_INSTALL_DIR}/noatun ) diff --git a/noatun/modules/winskin/mimetypes/CMakeLists.txt b/noatun/modules/winskin/mimetypes/CMakeLists.txt new file mode 100644 index 00000000..35bdf88d --- /dev/null +++ b/noatun/modules/winskin/mimetypes/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( interface ) diff --git a/noatun/modules/winskin/mimetypes/interface/CMakeLists.txt b/noatun/modules/winskin/mimetypes/interface/CMakeLists.txt new file mode 100644 index 00000000..a9cc6098 --- /dev/null +++ b/noatun/modules/winskin/mimetypes/interface/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( FILES x-winamp-skin.desktop DESTINATION ${MIME_INSTALL_DIR}/interface ) diff --git a/noatun/modules/winskin/skins/CMakeLists.txt b/noatun/modules/winskin/skins/CMakeLists.txt new file mode 100644 index 00000000..f0369754 --- /dev/null +++ b/noatun/modules/winskin/skins/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( winamp ) diff --git a/noatun/modules/winskin/skins/winamp/CMakeLists.txt b/noatun/modules/winskin/skins/winamp/CMakeLists.txt new file mode 100644 index 00000000..00c08204 --- /dev/null +++ b/noatun/modules/winskin/skins/winamp/CMakeLists.txt @@ -0,0 +1,19 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( + FILES + BALANCE.BMP CBUTTONS.BMP FONT.BMP MAIN.BMP + MONOSTER.BMP NUMS_EX.BMP PLAYPAUS.BMP + POSBAR.BMP SHUFREP.BMP SPEC.BMP + TEXT.BMP TITLEBAR.BMP VISCOLOR.TXT VOLUME.BMP + DESTINATION ${DATA_INSTALL_DIR}/noatun/skins/winamp/Winamp +) diff --git a/noatun/modules/winskin/vis/CMakeLists.txt b/noatun/modules/winskin/vis/CMakeLists.txt new file mode 100644 index 00000000..25b86e8a --- /dev/null +++ b/noatun/modules/winskin/vis/CMakeLists.txt @@ -0,0 +1,64 @@ +################################################# +# +# (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_BINARY_DIR} + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### winskinvis (library) ###################### + +tde_add_library( winskinvis SHARED AUTOMOC + SOURCES + winskinvis.cc + winSkinFFT_impl.cpp realFFT.cpp + realFFTFilter.cpp visQueue.cpp + LINK + mcop kmedia2_idl artsflow artsflow_idl soundserver_idl + DESTINATION ${LIB_INSTALL_DIR} +) + +add_custom_command( + OUTPUT + winskinvis.cc winskinvis.h + COMMAND ${ARTS_MCOPIDL_EXECUTABLE} -t + -I${ARTS_INCLUDEDIR} ${CMAKE_CURRENT_SOURCE_DIR}/winskinvis.idl + DEPENDS winskinvis.idl +) + + +##### other data ################################ + +install( + FILES + ${CMAKE_CURRENT_BINARY_DIR}/winskinvis.mcoptype + ${CMAKE_CURRENT_BINARY_DIR}/winskinvis.mcopclass + DESTINATION ${LIB_INSTALL_DIR}/mcop +) +install( + FILES + WinSkinFFT.mcopclass + DESTINATION ${LIB_INSTALL_DIR}/mcop/Noatun +) +install( + FILES + ${CMAKE_CURRENT_BINARY_DIR}/winskinvis.h + DESTINATION ${INCLUDE_INSTALL_DIR}/noatun +) diff --git a/noatun/pics/CMakeLists.txt b/noatun/pics/CMakeLists.txt new file mode 100644 index 00000000..36afba72 --- /dev/null +++ b/noatun/pics/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/noatun/icons ) diff --git a/oggvorbis_artsplugin/CMakeLists.txt b/oggvorbis_artsplugin/CMakeLists.txt new file mode 100644 index 00000000..fbc2db3e --- /dev/null +++ b/oggvorbis_artsplugin/CMakeLists.txt @@ -0,0 +1,61 @@ +################################################# +# +# (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_BINARY_DIR} + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### liboggarts (module) ####################### + +tde_add_kpart( liboggarts AUTOMOC + SOURCES + oggarts.cc oggPlayObject_impl.cpp + VERSION 0.0.0 + LINK + mcop kmedia2_idl soundserver_idl artsflow artsflow_idl ${ARTS_LIBRARIES} + ${VORBIS_LIBRARIES} ${VORBISFILE_LIBRARIES} + DESTINATION ${LIB_INSTALL_DIR} +) + +add_custom_command( + OUTPUT + oggarts.cc oggarts.h + oggarts.mcoptype oggarts.mcopclass + COMMAND ${ARTS_MCOPIDL_EXECUTABLE} -t + -I${ARTS_INCLUDEDIR} ${CMAKE_CURRENT_SOURCE_DIR}/oggarts.idl + DEPENDS oggarts.idl +) + + +##### other data ################################ + +install( + FILES + ${CMAKE_CURRENT_BINARY_DIR}/oggarts.mcoptype + ${CMAKE_CURRENT_BINARY_DIR}/oggarts.mcopclass + DESTINATION ${LIB_INSTALL_DIR}/mcop +) + +install( + FILES + oggPlayObject.mcopclass + DESTINATION ${LIB_INSTALL_DIR}/mcop/Arts +) diff --git a/tdefile-plugins/CMakeLists.txt b/tdefile-plugins/CMakeLists.txt new file mode 100644 index 00000000..526e203e --- /dev/null +++ b/tdefile-plugins/CMakeLists.txt @@ -0,0 +1,22 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( au ) +add_subdirectory( avi ) +tde_conditional_add_subdirectory( WITH_TAGLIB flac ) +add_subdirectory( m3u ) +tde_conditional_add_subdirectory( WITH_TAGLIB mp3 ) +tde_conditional_add_subdirectory( HAVE_TAGLIB_MPC_H mpc ) +add_subdirectory( mpeg ) +tde_conditional_add_subdirectory( WITH_VORBIS ogg ) +add_subdirectory( sid ) +tde_conditional_add_subdirectory( WITH_THEORA theora ) +add_subdirectory( wav ) diff --git a/tdefile-plugins/au/CMakeLists.txt b/tdefile-plugins/au/CMakeLists.txt new file mode 100644 index 00000000..669e348a --- /dev/null +++ b/tdefile-plugins/au/CMakeLists.txt @@ -0,0 +1,38 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### tdefile_au (module) ####################### + +tde_add_kpart( tdefile_au AUTOMOC + SOURCES + tdefile_au.cpp + LINK + DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared + tdetexteditor-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES tdefile_au.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) diff --git a/tdefile-plugins/avi/CMakeLists.txt b/tdefile-plugins/avi/CMakeLists.txt new file mode 100644 index 00000000..9badedec --- /dev/null +++ b/tdefile-plugins/avi/CMakeLists.txt @@ -0,0 +1,38 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### tdefile_avi (module) ###################### + +tde_add_kpart( tdefile_avi AUTOMOC + SOURCES + tdefile_avi.cpp + LINK + DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared + tdetexteditor-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES tdefile_avi.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) diff --git a/tdefile-plugins/flac/CMakeLists.txt b/tdefile-plugins/flac/CMakeLists.txt new file mode 100644 index 00000000..d668adf2 --- /dev/null +++ b/tdefile-plugins/flac/CMakeLists.txt @@ -0,0 +1,39 @@ +################################################# +# +# (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_BINARY_DIR} + ${TAGLIB_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### tdefile_flac (module) ##################### + +tde_add_kpart( tdefile_flac AUTOMOC + SOURCES + tdefile_flac.cpp + LINK + DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared + tdetexteditor-shared ${TAGLIB_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES tdefile_flac.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) diff --git a/tdefile-plugins/m3u/CMakeLists.txt b/tdefile-plugins/m3u/CMakeLists.txt new file mode 100644 index 00000000..087194fa --- /dev/null +++ b/tdefile-plugins/m3u/CMakeLists.txt @@ -0,0 +1,38 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### tdefile_m3u (module) ###################### + +tde_add_kpart( tdefile_m3u AUTOMOC + SOURCES + tdefile_m3u.cpp + LINK + DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared + tdetexteditor-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES tdefile_m3u.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) diff --git a/tdefile-plugins/mp3/CMakeLists.txt b/tdefile-plugins/mp3/CMakeLists.txt new file mode 100644 index 00000000..b75b7ccb --- /dev/null +++ b/tdefile-plugins/mp3/CMakeLists.txt @@ -0,0 +1,39 @@ +################################################# +# +# (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_BINARY_DIR} + ${TAGLIB_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### tdefile_mp3 (module) ###################### + +tde_add_kpart( tdefile_mp3 AUTOMOC + SOURCES + tdefile_mp3.cpp + LINK + DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared + tdetexteditor-shared ${TAGLIB_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES tdefile_mp3.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) diff --git a/tdefile-plugins/mpc/CMakeLists.txt b/tdefile-plugins/mpc/CMakeLists.txt new file mode 100644 index 00000000..b9f7d764 --- /dev/null +++ b/tdefile-plugins/mpc/CMakeLists.txt @@ -0,0 +1,39 @@ +################################################# +# +# (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_BINARY_DIR} + ${TAGLIB_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### tdefile_mpc (module) ###################### + +tde_add_kpart( tdefile_mpc AUTOMOC + SOURCES + tdefile_mpc.cpp + LINK + DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared + tdetexteditor-shared ${TAGLIB_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES tdefile_mpc.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) diff --git a/tdefile-plugins/mpeg/CMakeLists.txt b/tdefile-plugins/mpeg/CMakeLists.txt new file mode 100644 index 00000000..45e73226 --- /dev/null +++ b/tdefile-plugins/mpeg/CMakeLists.txt @@ -0,0 +1,39 @@ +################################################# +# +# (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_BINARY_DIR} + ${TAGLIB_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### tdefile_mpeg (module) ##################### + +tde_add_kpart( tdefile_mpeg AUTOMOC + SOURCES + tdefile_mpeg.cpp + LINK + DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared + tdetexteditor-shared ${TAGLIB_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES tdefile_mpeg.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) diff --git a/tdefile-plugins/ogg/CMakeLists.txt b/tdefile-plugins/ogg/CMakeLists.txt new file mode 100644 index 00000000..e00a3ad9 --- /dev/null +++ b/tdefile-plugins/ogg/CMakeLists.txt @@ -0,0 +1,38 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### tdefile_ogg (module) ###################### + +tde_add_kpart( tdefile_ogg AUTOMOC + SOURCES + tdefile_ogg.cpp vcedit.c + LINK + DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared + tdetexteditor-shared ${OGG_LIBRARIES} ${VORBIS_LIBRARIES} ${VORBISFILE_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES tdefile_ogg.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) diff --git a/tdefile-plugins/sid/CMakeLists.txt b/tdefile-plugins/sid/CMakeLists.txt new file mode 100644 index 00000000..5802a35a --- /dev/null +++ b/tdefile-plugins/sid/CMakeLists.txt @@ -0,0 +1,38 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### tdefile_sid (module) ###################### + +tde_add_kpart( tdefile_sid AUTOMOC + SOURCES + tdefile_sid.cpp + LINK + DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared + tdetexteditor-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES tdefile_sid.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) diff --git a/tdefile-plugins/theora/CMakeLists.txt b/tdefile-plugins/theora/CMakeLists.txt new file mode 100644 index 00000000..ab088244 --- /dev/null +++ b/tdefile-plugins/theora/CMakeLists.txt @@ -0,0 +1,40 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include( ConfigureChecks.cmake ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### tdefile_theora (module) ################### + +tde_add_kpart( tdefile_theora AUTOMOC + SOURCES + tdefile_theora.cpp + LINK + DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared + tdetexteditor-shared ${OGG_LIBRARIES} ${VORBIS_LIBRARIES} ${THEORA_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES tdefile_theora.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) diff --git a/tdefile-plugins/theora/ConfigureChecks.cmake b/tdefile-plugins/theora/ConfigureChecks.cmake new file mode 100644 index 00000000..ee6af7e9 --- /dev/null +++ b/tdefile-plugins/theora/ConfigureChecks.cmake @@ -0,0 +1,17 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +if( WITH_THEORA ) + pkg_search_module( THEORA theora ) + if( NOT THEORA_FOUND ) + tde_message_fatal( "theora is requested, but not found on your system" ) + endif( ) +endif( WITH_THEORA ) diff --git a/tdefile-plugins/wav/CMakeLists.txt b/tdefile-plugins/wav/CMakeLists.txt new file mode 100644 index 00000000..30a95083 --- /dev/null +++ b/tdefile-plugins/wav/CMakeLists.txt @@ -0,0 +1,39 @@ +################################################# +# +# (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_BINARY_DIR} + ${TAGLIB_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### tdefile_wav (module) ###################### + +tde_add_kpart( tdefile_wav AUTOMOC + SOURCES + tdefile_wav.cpp + LINK + DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared + tdetexteditor-shared ${TAGLIB_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES tdefile_wav.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) diff --git a/tdeioslave/CMakeLists.txt b/tdeioslave/CMakeLists.txt new file mode 100644 index 00000000..ab415856 --- /dev/null +++ b/tdeioslave/CMakeLists.txt @@ -0,0 +1,17 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +if( WITH_CDPARANOIA ) + if( NOT BUILD_KSCD ) + tde_message_fatal( "tdeioslave-audiocd can not be built without building kscd" ) + endif( ) + add_subdirectory( audiocd ) +endif( WITH_CDPARANOIA ) diff --git a/tdeioslave/audiocd/CMakeLists.txt b/tdeioslave/audiocd/CMakeLists.txt new file mode 100644 index 00000000..03e0324f --- /dev/null +++ b/tdeioslave/audiocd/CMakeLists.txt @@ -0,0 +1,48 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( kcmaudiocd ) +add_subdirectory( plugins ) + + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/libkcddb + ${CMAKE_SOURCE_DIR}/libkcddb + ${CMAKE_SOURCE_DIR}/kscd + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTSC_LIBRARY_DIRS} +) + + +##### tdeio_audiocd (module) #################### + +tde_add_kpart( tdeio_audiocd + SOURCES + audiocd.cpp + LINK + tdeio-shared ${CDPARANOIA_LIBRARIES} + kcddb-shared kcompactdisc-static workman-static + audiocdplugins-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES audiocd.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES audiocd.upd DESTINATION ${DATA_INSTALL_DIR}/tdeconf_update ) +install( PROGRAMS upgrade-metadata.sh DESTINATION ${DATA_INSTALL_DIR}/tdeconf_update ) diff --git a/tdeioslave/audiocd/kcmaudiocd/CMakeLists.txt b/tdeioslave/audiocd/kcmaudiocd/CMakeLists.txt new file mode 100644 index 00000000..2fd3d9d8 --- /dev/null +++ b/tdeioslave/audiocd/kcmaudiocd/CMakeLists.txt @@ -0,0 +1,39 @@ +################################################# +# +# (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_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/../plugins + ${CMAKE_SOURCE_DIR}/libkcddb + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### kcm_audiocd (module) ###################### + +tde_add_kpart( kcm_audiocd AUTOMOC + SOURCES + audiocdconfig.ui kcmaudiocd.cpp + LINK + tdeui-shared audiocdplugins-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES audiocd.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) diff --git a/tdeioslave/audiocd/plugins/CMakeLists.txt b/tdeioslave/audiocd/plugins/CMakeLists.txt new file mode 100644 index 00000000..61625d94 --- /dev/null +++ b/tdeioslave/audiocd/plugins/CMakeLists.txt @@ -0,0 +1,45 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_conditional_add_subdirectory( WITH_FLAC flac ) +add_subdirectory( lame ) +tde_conditional_add_subdirectory( WITH_VORBIS vorbis ) +add_subdirectory( wav ) + + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/libkcddb + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### audiocdplugins (library) ################## + +tde_add_library( audiocdplugins SHARED + SOURCES audiocdencoder.cpp + VERSION 1.0.0 + LINK + tdecore-shared kcddb-shared + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES audiocdencoder.h DESTINATION ${INCLUDE_INSTALL_DIR} ) diff --git a/tdeioslave/audiocd/plugins/flac/CMakeLists.txt b/tdeioslave/audiocd/plugins/flac/CMakeLists.txt new file mode 100644 index 00000000..df68b820 --- /dev/null +++ b/tdeioslave/audiocd/plugins/flac/CMakeLists.txt @@ -0,0 +1,36 @@ +################################################# +# +# (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_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/.. + ${CMAKE_SOURCE_DIR}/libkcddb + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} + ${FLAC_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${FLAC_LIBRARY_DIRS} +) + + +##### libaudiocd_encoder_flac (module) ########## + +tde_add_kpart( libaudiocd_encoder_flac AUTOMOC + SOURCES + encoderflac.cpp + LINK + tdeio-shared audiocdplugins-shared ${FLAC_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/tdeioslave/audiocd/plugins/lame/CMakeLists.txt b/tdeioslave/audiocd/plugins/lame/CMakeLists.txt new file mode 100644 index 00000000..da6d458b --- /dev/null +++ b/tdeioslave/audiocd/plugins/lame/CMakeLists.txt @@ -0,0 +1,44 @@ +################################################# +# +# (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_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/.. + ${CMAKE_SOURCE_DIR}/libkcddb + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} + ${TAGLIB_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TAGLIB_LIBRARY_DIRS} +) + + +##### libaudiocd_encoder_lame (module) ########## + +tde_add_kpart( libaudiocd_encoder_lame AUTOMOC + SOURCES + audiocd_lame_encoder.kcfgc + encoderlame.cpp + encoderlameconfig.ui + collectingprocess.cpp + LINK + tdeio-shared audiocdplugins-shared ${TAGLIB_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES audiocd_lame_encoder.kcfg DESTINATION ${KCFG_INSTALL_DIR} ) diff --git a/tdeioslave/audiocd/plugins/lame/encoderlame.cpp b/tdeioslave/audiocd/plugins/lame/encoderlame.cpp index 8af27620..0b3787ad 100644 --- a/tdeioslave/audiocd/plugins/lame/encoderlame.cpp +++ b/tdeioslave/audiocd/plugins/lame/encoderlame.cpp @@ -18,7 +18,7 @@ #include <config.h> -#ifdef __OpenBSD__ +#if defined(__OpenBSD__) || defined(__FreeBSD__) #include <sys/types.h> #include <sys/endian.h> #else diff --git a/tdeioslave/audiocd/plugins/vorbis/CMakeLists.txt b/tdeioslave/audiocd/plugins/vorbis/CMakeLists.txt new file mode 100644 index 00000000..35032740 --- /dev/null +++ b/tdeioslave/audiocd/plugins/vorbis/CMakeLists.txt @@ -0,0 +1,44 @@ +################################################# +# +# (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_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/.. + ${CMAKE_SOURCE_DIR}/libkcddb + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} + ${TAGLIB_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TAGLIB_LIBRARY_DIRS} +) + + +##### libaudiocd_encoder_vorbis (module) ######## + +tde_add_kpart( libaudiocd_encoder_vorbis AUTOMOC + SOURCES + audiocd_vorbis_encoder.kcfgc + encodervorbis.cpp + encodervorbisconfig.ui + LINK + tdeio-shared audiocdplugins-shared + ${OGG_LIBRARIES} ${VORBIS_LIBRARIES} ${VORBISFILE_LIBRARIES} ${VORBISENC_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES audiocd_vorbis_encoder.kcfg DESTINATION ${KCFG_INSTALL_DIR} ) diff --git a/tdeioslave/audiocd/plugins/wav/CMakeLists.txt b/tdeioslave/audiocd/plugins/wav/CMakeLists.txt new file mode 100644 index 00000000..454ecb11 --- /dev/null +++ b/tdeioslave/audiocd/plugins/wav/CMakeLists.txt @@ -0,0 +1,35 @@ +################################################# +# +# (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_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/.. + ${CMAKE_SOURCE_DIR}/libkcddb + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### libaudiocd_encoder_wav (module) ########### + +tde_add_kpart( libaudiocd_encoder_wav AUTOMOC + SOURCES + encoderwav.cpp + encodercda.cpp + LINK + tdeio-shared audiocdplugins-shared ${CDPARANOIA_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/tdeioslave/audiocd/plugins/wav/encoderwav.cpp b/tdeioslave/audiocd/plugins/wav/encoderwav.cpp index 84a8586b..7bed1765 100644 --- a/tdeioslave/audiocd/plugins/wav/encoderwav.cpp +++ b/tdeioslave/audiocd/plugins/wav/encoderwav.cpp @@ -50,17 +50,17 @@ const char * EncoderWav::mimeType() const { long EncoderWav::readInit(long byteCount){ static char riffHeader[] = { - 0x52, 0x49, 0x46, 0x46, // 0 "AIFF" - 0x00, 0x00, 0x00, 0x00, // 4 wavSize - 0x57, 0x41, 0x56, 0x45, // 8 "WAVE" - 0x66, 0x6d, 0x74, 0x20, // 12 "fmt " - 0x10, 0x00, 0x00, 0x00, // 16 - 0x01, 0x00, 0x02, 0x00, // 20 - 0x44, 0xac, 0x00, 0x00, // 24 - 0x10, 0xb1, 0x02, 0x00, // 28 - 0x04, 0x00, 0x10, 0x00, // 32 - 0x64, 0x61, 0x74, 0x61, // 36 "data" - 0x00, 0x00, 0x00, 0x00 // 40 byteCount + '\x52', '\x49', '\x46', '\x46', // 0 "AIFF" + '\x00', '\x00', '\x00', '\x00', // 4 wavSize + '\x57', '\x41', '\x56', '\x45', // 8 "WAVE" + '\x66', '\x6d', '\x74', '\x20', // 12 "fmt " + '\x10', '\x00', '\x00', '\x00', // 16 + '\x01', '\x00', '\x02', '\x00', // 20 + '\x44', '\xac', '\x00', '\x00', // 24 + '\x10', '\xb1', '\x02', '\x00', // 28 + '\x04', '\x00', '\x10', '\x00', // 32 + '\x64', '\x61', '\x74', '\x61', // 36 "data" + '\x00', '\x00', '\x00', '\x00' // 40 byteCount }; TQ_INT32 wavSize(byteCount + 44 - 8); diff --git a/tdemid/CMakeLists.txt b/tdemid/CMakeLists.txt new file mode 100644 index 00000000..dfab0c5b --- /dev/null +++ b/tdemid/CMakeLists.txt @@ -0,0 +1,93 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( examples ) +add_subdirectory( maps ) +add_subdirectory( pics ) +tde_install_icons( tdemid ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### tdemidlib (library) ####################### + +tde_add_library( tdemidlib SHARED AUTOMOC + SOURCES + tdemidframe.cpp tdemidclient.cpp kdisptext.cpp + qslidertime.cpp klcdnumber.cpp ktrianglebutton.cpp + midicfgdlg.cpp collectdlg.cpp randomlist.cpp + channelview.cpp channel.cpp channel3d.cpp channel4d.cpp + channelcfgdlg.cpp instrname.cpp rhythmview.cpp + songlist.cpp slman.cpp tdemid_part.cpp tdemidIface.skel + VERSION 0.0.0 + LINK + DCOP-shared tdecore-shared tdeparts-shared tdeio-shared tdeui-shared tdemid-shared + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### libtdemidpart (module) #################### + +tde_add_kpart( libtdemidpart AUTOMOC + SOURCES + ${CMAKE_CURRENT_BINARY_DIR}/part_dummy.cpp + EMBED + tdemidlib-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + +file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/part_dummy.cpp "" ) + + +##### tdemid (executable) ####################### + +tde_add_executable( tdemid AUTOMOC + SOURCES + main.cpp + LINK + DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared tdetexteditor-shared + tdemidlib-shared + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### instrname.i18n (localization template) #### + +add_custom_target( instrname.i18n + COMMAND echo "/* This is an automatically generated file" > instrname.i18n + COMMAND echo " * DO NOT EDIT !!!" >> instrname.i18n + COMMAND echo " * To create this file run : make instrname.i18n " >> instrname.i18n + COMMAND echo " */" >> instrname.i18n + COMMAND echo "" >> instrname.i18n + COMMAND awk -f instrfilter.awk instrname.cpp >> instrname.i18n + DEPENDS instrname.cpp + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} +) + + +##### other data ################################ + +install( FILES tdemid.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) +install( FILES x-karaoke.desktop DESTINATION ${MIME_INSTALL_DIR}/audio ) +install( FILES tdemidui.rc DESTINATION ${DATA_INSTALL_DIR}/tdemid ) +install( FILES tdemid_partui.rc DESTINATION ${DATA_INSTALL_DIR}/tdemid ) +install( FILES audiomidi.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} ) +install( FILES std.sb drums.sb std.o3 drums.o3 DESTINATION ${DATA_INSTALL_DIR}/tdemid/fm ) +install( FILES keyboard.xpm button1.xpm button2.xpm DESTINATION ${DATA_INSTALL_DIR}/tdemid/icons ) diff --git a/tdemid/examples/CMakeLists.txt b/tdemid/examples/CMakeLists.txt new file mode 100644 index 00000000..128e334e --- /dev/null +++ b/tdemid/examples/CMakeLists.txt @@ -0,0 +1,19 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( + FILES + OFortuna.kar + DiesIrae.kar + Guantanamera.kar + MariaDeLasMercedes.kar + DESTINATION ${DATA_INSTALL_DIR}/tdemid +) diff --git a/tdemid/maps/CMakeLists.txt b/tdemid/maps/CMakeLists.txt new file mode 100644 index 00000000..345cb880 --- /dev/null +++ b/tdemid/maps/CMakeLists.txt @@ -0,0 +1,19 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( + FILES + gm.map + YamahaPSS790.map + YamahaPSR500.map + YamahaQY10.map + DESTINATION ${DATA_INSTALL_DIR}/tdemid/maps +) diff --git a/tdemid/pics/CMakeLists.txt b/tdemid/pics/CMakeLists.txt new file mode 100644 index 00000000..05ca4344 --- /dev/null +++ b/tdemid/pics/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/tdemid/icons ) diff --git a/xine_artsplugin/CMakeLists.txt b/xine_artsplugin/CMakeLists.txt new file mode 100644 index 00000000..1013d3a9 --- /dev/null +++ b/xine_artsplugin/CMakeLists.txt @@ -0,0 +1,62 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include( ConfigureChecks.cmake ) + +add_subdirectory( tools ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${ARTS_INCLUDE_DIRS} + ${XINE_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} + ${XINE_LIBRARY_DIRS} +) + + +##### arts_xine (library) ####################### + +tde_add_library( arts_xine SHARED AUTOMOC + SOURCES + xinePlayObject.cc + xinePlayObject_impl.cpp + audio_fifo_out.c + VERSION 0.0.0 + LINK + mcop kmedia2_idl soundserver_idl artsflow artsflow_idl + ${ARTS_LIBRARIES} ${XINE_LIBRARIES} ${XEXT_LIBRARIES} X11 pthread + DESTINATION ${LIB_INSTALL_DIR} +) + +add_custom_command( + OUTPUT + xinePlayObject.cc xinePlayObject.h + COMMAND ${ARTS_MCOPIDL_EXECUTABLE} + -I${ARTS_INCLUDEDIR} ${CMAKE_CURRENT_SOURCE_DIR}/xinePlayObject.idl + DEPENDS xinePlayObject.idl +) + + +##### other data ################################ + +install( + FILES + xineAudioPlayObject.mcopclass + xineVideoPlayObject.mcopclass + DESTINATION ${LIB_INSTALL_DIR}/mcop +) diff --git a/xine_artsplugin/ConfigureChecks.cmake b/xine_artsplugin/ConfigureChecks.cmake new file mode 100644 index 00000000..9a1c6c6e --- /dev/null +++ b/xine_artsplugin/ConfigureChecks.cmake @@ -0,0 +1,27 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_save_and_set( CMAKE_REQUIRED_FLAGS "-include X11/Xlib.h" ) +tde_save_and_set( CMAKE_REQUIRED_LIBRARIES "${XEXT_LIBRARIES}" ) +check_symbol_exists( XShmGetEventBase "X11/extensions/XShm.h" HAVE_XSHMGETEVENTBASE ) +tde_restore( CMAKE_REQUIRED_FLAGS ) +tde_restore( CMAKE_REQUIRED_LIBRARIES ) + +if( ${XINE_VERSION} VERSION_LESS "1.2" ) + tde_save_and_set( CMAKE_REQUIRED_LIBRARIES "xine" ) + check_function_exists( _x_ao_new_port HAVE_XINE_X_AO_NEW_PORT ) + if( HAVE_XINE_X_AO_NEW_PORT ) + set( ao_new_port "_x_ao_new_port" CACHE INTERNAL "" FORCE) + else() + check_function_exists( ao_new_port HAVE_XINE_AO_NEW_PORT ) + endif() + tde_restore( CMAKE_REQUIRED_LIBRARIES ) +endif( ${XINE_VERSION} VERSION_LESS "1.2" ) diff --git a/xine_artsplugin/tools/CMakeLists.txt b/xine_artsplugin/tools/CMakeLists.txt new file mode 100644 index 00000000..3e5e6fb1 --- /dev/null +++ b/xine_artsplugin/tools/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( thumbnail ) diff --git a/xine_artsplugin/tools/thumbnail/CMakeLists.txt b/xine_artsplugin/tools/thumbnail/CMakeLists.txt new file mode 100644 index 00000000..0517e975 --- /dev/null +++ b/xine_artsplugin/tools/thumbnail/CMakeLists.txt @@ -0,0 +1,49 @@ +################################################# +# +# (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_BINARY_DIR} + ${ARTS_INCLUDE_DIRS} + ${XINE_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} + ${XINE_LIBRARY_DIRS} +) + + +##### videothumbnail (module) ################### + +tde_add_kpart( videothumbnail AUTOMOC + SOURCES + videocreator.cpp videoscaler.cpp + LINK + tdecore-shared ${XINE_LIBRARIES} pthread + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( + FILES + sprocket-small.png + sprocket-medium.png + sprocket-large.png + DESTINATION ${DATA_INSTALL_DIR}/videothumbnail +) + +install( FILES videothumbnail.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) |