summaryrefslogtreecommitdiffstats
path: root/plugins/decoder
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/decoder')
-rw-r--r--plugins/decoder/CMakeLists.txt18
-rw-r--r--plugins/decoder/ffmpeg/CMakeLists.txt48
-rw-r--r--plugins/decoder/flac/CMakeLists.txt46
-rw-r--r--plugins/decoder/libsndfile/CMakeLists.txt43
-rw-r--r--plugins/decoder/mp3/CMakeLists.txt43
-rw-r--r--plugins/decoder/musepack/CMakeLists.txt45
-rw-r--r--plugins/decoder/ogg/CMakeLists.txt46
-rw-r--r--plugins/decoder/wave/CMakeLists.txt41
8 files changed, 330 insertions, 0 deletions
diff --git a/plugins/decoder/CMakeLists.txt b/plugins/decoder/CMakeLists.txt
new file mode 100644
index 0000000..70fbb0a
--- /dev/null
+++ b/plugins/decoder/CMakeLists.txt
@@ -0,0 +1,18 @@
+#################################################
+#
+# (C) 2016 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( wave )
+tde_conditional_add_subdirectory( WITH_FFMPEG ffmpeg )
+tde_conditional_add_subdirectory( WITH_FLAC flac )
+tde_conditional_add_subdirectory( WITH_SNDFILE libsndfile )
+tde_conditional_add_subdirectory( WITH_MAD mp3 )
+tde_conditional_add_subdirectory( WITH_MUSEPACK musepack )
+tde_conditional_add_subdirectory( WITH_VORBIS ogg )
diff --git a/plugins/decoder/ffmpeg/CMakeLists.txt b/plugins/decoder/ffmpeg/CMakeLists.txt
new file mode 100644
index 0000000..008d04d
--- /dev/null
+++ b/plugins/decoder/ffmpeg/CMakeLists.txt
@@ -0,0 +1,48 @@
+#################################################
+#
+# (C) 2016 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# 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}/libk3b/core
+ ${CMAKE_SOURCE_DIR}/libk3b/plugin
+ ${CMAKE_SOURCE_DIR}/libk3bdevice
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${LIBAVCODEC_LIBRARY_DIRS}
+ ${LIBAVFORMAT_LIBRARY_DIRS}
+ ${LIBAVUTIL_LIBRARY_DIRS}
+)
+
+add_definitions(
+ -D__STDC_CONSTANT_MACROS
+)
+
+##### libk3bffmpegdecoder (kpart) ###############
+
+tde_add_kpart( libk3bffmpegdecoder AUTOMOC
+ SOURCES k3bffmpegdecoder.cpp k3bffmpegwrapper.cpp
+ LINK tdecore-shared k3b-shared k3bdevice-shared ${LIBAVFORMAT_LIBRARIES}
+ ${LIBAVCODEC_LIBRARIES} ${LIBAVUTIL_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES k3bffmpegdecoder.plugin
+ DESTINATION ${DATA_INSTALL_DIR}/k3b/plugins
+)
diff --git a/plugins/decoder/flac/CMakeLists.txt b/plugins/decoder/flac/CMakeLists.txt
new file mode 100644
index 0000000..75eea0d
--- /dev/null
+++ b/plugins/decoder/flac/CMakeLists.txt
@@ -0,0 +1,46 @@
+#################################################
+#
+# (C) 2016 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# 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}/libk3b/core
+ ${CMAKE_SOURCE_DIR}/libk3b/plugin
+ ${CMAKE_SOURCE_DIR}/libk3bdevice
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${FLAC_LIBRARY_DIRS}
+)
+
+if( ${FLAC_VERSION} VERSION_GREATER "1.1.1" )
+ add_definitions( -DFLAC_NEWER_THAN_1_1_1=1 )
+endif( )
+
+##### libk3bflacdecoder (kpart) #################
+
+tde_add_kpart( libk3bflacdecoder AUTOMOC
+ SOURCES k3bflacdecoder.cpp
+ LINK tdecore-shared k3b-shared k3bdevice-shared
+ ${FLAC_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES k3bflacdecoder.plugin
+ DESTINATION ${DATA_INSTALL_DIR}/k3b/plugins
+)
diff --git a/plugins/decoder/libsndfile/CMakeLists.txt b/plugins/decoder/libsndfile/CMakeLists.txt
new file mode 100644
index 0000000..fa387c0
--- /dev/null
+++ b/plugins/decoder/libsndfile/CMakeLists.txt
@@ -0,0 +1,43 @@
+#################################################
+#
+# (C) 2016 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# 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}/libk3b/core
+ ${CMAKE_SOURCE_DIR}/libk3b/plugin
+ ${CMAKE_SOURCE_DIR}/libk3bdevice
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${SNDFILE_LIBRARY_DIRS}
+)
+
+
+##### libk3blibsndfiledecoder (kpart) ###########
+
+tde_add_kpart( libk3blibsndfiledecoder AUTOMOC
+ SOURCES k3blibsndfiledecoder.cpp
+ LINK tdecore-shared k3b-shared k3bdevice-shared
+ ${SNDFILE_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES k3blibsndfiledecoder.plugin
+ DESTINATION ${DATA_INSTALL_DIR}/k3b/plugins
+)
diff --git a/plugins/decoder/mp3/CMakeLists.txt b/plugins/decoder/mp3/CMakeLists.txt
new file mode 100644
index 0000000..2c31bae
--- /dev/null
+++ b/plugins/decoder/mp3/CMakeLists.txt
@@ -0,0 +1,43 @@
+#################################################
+#
+# (C) 2016 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# 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}/libk3b/core
+ ${CMAKE_SOURCE_DIR}/libk3b/plugin
+ ${CMAKE_SOURCE_DIR}/libk3bdevice
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${MAD_LIBRARY_DIRS}
+)
+
+
+##### libk3bmaddecoder (kpart) ##################
+
+tde_add_kpart( libk3bmaddecoder AUTOMOC
+ SOURCES k3bmad.cpp k3bmaddecoder.cpp
+ LINK tdecore-shared k3b-shared k3bdevice-shared
+ ${MAD_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES k3bmaddecoder.plugin
+ DESTINATION ${DATA_INSTALL_DIR}/k3b/plugins
+)
diff --git a/plugins/decoder/musepack/CMakeLists.txt b/plugins/decoder/musepack/CMakeLists.txt
new file mode 100644
index 0000000..95fb7ae
--- /dev/null
+++ b/plugins/decoder/musepack/CMakeLists.txt
@@ -0,0 +1,45 @@
+#################################################
+#
+# (C) 2016 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# 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}/libk3b/core
+ ${CMAKE_SOURCE_DIR}/libk3b/plugin
+ ${CMAKE_SOURCE_DIR}/libk3bdevice
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+add_definitions (
+ "-DMPC_HEADER_FILE=${MPCDEC_HEADER_FILE}"
+)
+
+##### libk3bmpcdecoder (kpart) ##################
+
+tde_add_kpart( libk3bmpcdecoder AUTOMOC
+ SOURCES k3bmpcdecoder.cpp k3bmpcwrapper.cpp
+ LINK tdecore-shared k3b-shared k3bdevice-shared
+ mpcdec
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES k3bmpcdecoder.plugin
+ DESTINATION ${DATA_INSTALL_DIR}/k3b/plugins
+)
diff --git a/plugins/decoder/ogg/CMakeLists.txt b/plugins/decoder/ogg/CMakeLists.txt
new file mode 100644
index 0000000..d240d82
--- /dev/null
+++ b/plugins/decoder/ogg/CMakeLists.txt
@@ -0,0 +1,46 @@
+#################################################
+#
+# (C) 2016 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# 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}/libk3b/core
+ ${CMAKE_SOURCE_DIR}/libk3b/plugin
+ ${CMAKE_SOURCE_DIR}/libk3bdevice
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${VORBIS_LIBRARY_DIRS}
+ ${VORBISFILE_LIBRARY_DIRS}
+ ${OGG_LIBRARY_DIRS}
+)
+
+
+
+##### libk3boggvorbisdecoder (kpart) ############
+
+tde_add_kpart( libk3boggvorbisdecoder AUTOMOC
+ SOURCES k3boggvorbisdecoder.cpp
+ LINK tdecore-shared k3b-shared k3bdevice-shared
+ ${VORBIS_LIBRARIES} ${VORBISFILE_LIBRARIES} ${OGG_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES k3boggvorbisdecoder.plugin
+ DESTINATION ${DATA_INSTALL_DIR}/k3b/plugins
+)
diff --git a/plugins/decoder/wave/CMakeLists.txt b/plugins/decoder/wave/CMakeLists.txt
new file mode 100644
index 0000000..570cf4e
--- /dev/null
+++ b/plugins/decoder/wave/CMakeLists.txt
@@ -0,0 +1,41 @@
+#################################################
+#
+# (C) 2016 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# 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}/libk3b/core
+ ${CMAKE_SOURCE_DIR}/libk3b/plugin
+ ${CMAKE_SOURCE_DIR}/libk3bdevice
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### libk3bwavedecoder (kpart) #################
+
+tde_add_kpart( libk3bwavedecoder AUTOMOC
+ SOURCES k3bwavedecoder.cpp
+ LINK tdecore-shared k3b-shared k3bdevice-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES k3bwavedecoder.plugin
+ DESTINATION ${DATA_INSTALL_DIR}/k3b/plugins
+)