diff options
Diffstat (limited to 'tdeioslave')
-rw-r--r-- | tdeioslave/CMakeLists.txt | 17 | ||||
-rw-r--r-- | tdeioslave/audiocd/CMakeLists.txt | 48 | ||||
-rw-r--r-- | tdeioslave/audiocd/kcmaudiocd/CMakeLists.txt | 39 | ||||
-rw-r--r-- | tdeioslave/audiocd/plugins/CMakeLists.txt | 45 | ||||
-rw-r--r-- | tdeioslave/audiocd/plugins/flac/CMakeLists.txt | 36 | ||||
-rw-r--r-- | tdeioslave/audiocd/plugins/lame/CMakeLists.txt | 44 | ||||
-rw-r--r-- | tdeioslave/audiocd/plugins/lame/encoderlame.cpp | 2 | ||||
-rw-r--r-- | tdeioslave/audiocd/plugins/vorbis/CMakeLists.txt | 44 | ||||
-rw-r--r-- | tdeioslave/audiocd/plugins/wav/CMakeLists.txt | 35 | ||||
-rw-r--r-- | tdeioslave/audiocd/plugins/wav/encoderwav.cpp | 22 |
10 files changed, 320 insertions, 12 deletions
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); |