summaryrefslogtreecommitdiffstats
path: root/noatun/library
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2017-03-26 15:58:46 +0200
committerSlávek Banko <slavek.banko@axis.cz>2017-03-26 15:58:46 +0200
commit8b12682035e2ae92a29a9ce12abc5fbcf38b1192 (patch)
tree1cc5c3fe9ef3b23557fc4e9e507fd0d23d007160 /noatun/library
parent250d713ff809fa943f614459009d1160e269dcef (diff)
downloadtdemultimedia-8b12682035e2ae92a29a9ce12abc5fbcf38b1192.tar.gz
tdemultimedia-8b12682035e2ae92a29a9ce12abc5fbcf38b1192.zip
Initial cmake conversion
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'noatun/library')
-rw-r--r--noatun/library/CMakeLists.txt117
-rw-r--r--noatun/library/effects.cpp4
-rw-r--r--noatun/library/noatun/CMakeLists.txt20
-rw-r--r--noatun/library/noatunarts/CMakeLists.txt76
-rw-r--r--noatun/library/noatuntags/CMakeLists.txt40
5 files changed, 256 insertions, 1 deletions
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 )