summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2012-06-12 03:55:44 +0200
committerSlávek Banko <slavek.banko@axis.cz>2012-06-12 04:05:07 +0200
commit6a07d4f7c8a6f061a30d26315bb8bd74f5072ece (patch)
treece75fd95352252bd449c13b2d0a4a8c43c79bb56
parent6b522cd955caa45581b48fcbc04d4324690c3964 (diff)
downloadamarok-6a07d4f7c8a6f061a30d26315bb8bd74f5072ece.tar.gz
amarok-6a07d4f7c8a6f061a30d26315bb8bd74f5072ece.zip
Add akode support to CMake
Thanks to Francois Andriot for the patch! (cherry picked from commit b303359398c0f5114a99bee40dfb655bb9e8dc50)
-rw-r--r--CMakeLists.txt1
-rw-r--r--ConfigureChecks.cmake12
-rw-r--r--amarok/src/engine/CMakeLists.txt1
-rw-r--r--amarok/src/engine/akode/CMakeLists.txt37
4 files changed, 51 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d77666b0..7c826764 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -47,6 +47,7 @@ option( WITH_LIBVISUAL "Enable libvisual support" OFF )
option( WITH_KONQSIDEBAR "Enable konqsidebar plugin" OFF )
option( WITH_XINE "Enable xine-engine support" OFF )
option( WITH_YAUAP "Enable yauap-engine support" OFF )
+option( WITH_AKODE "Enable akode-engine support" OFF )
option( WITH_IPOD "Enable iPod support from libgpod" OFF )
option( WITH_IFP "Enable ifp support" OFF )
option( WITH_NJB "Enable njb support" OFF )
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index b2af5f89..c85adb4f 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -139,6 +139,18 @@ if( WITH_XINE )
endif( )
endif( )
+# akode-engine
+if( WITH_AKODE )
+ pkg_search_module( AKODE akode )
+ if( AKODE_FOUND )
+ if( ${AKODE_VERSION} VERSION_LESS "2.0.0" )
+ tde_message_fatal( "your akode version is too old; at least 2.0.0 is required" )
+ endif( )
+ else( )
+ tde_message_fatal( "akode is requested, but was not found on your system" )
+ endif( )
+endif( )
+
# iPod
if( WITH_IPOD )
diff --git a/amarok/src/engine/CMakeLists.txt b/amarok/src/engine/CMakeLists.txt
index 448d6899..a769092a 100644
--- a/amarok/src/engine/CMakeLists.txt
+++ b/amarok/src/engine/CMakeLists.txt
@@ -14,3 +14,4 @@
add_subdirectory( void )
tde_conditional_add_subdirectory( WITH_XINE xine )
tde_conditional_add_subdirectory( WITH_YAUAP yauap )
+tde_conditional_add_subdirectory( WITH_AKODE akode )
diff --git a/amarok/src/engine/akode/CMakeLists.txt b/amarok/src/engine/akode/CMakeLists.txt
new file mode 100644
index 00000000..2fc9c453
--- /dev/null
+++ b/amarok/src/engine/akode/CMakeLists.txt
@@ -0,0 +1,37 @@
+#################################################
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/amarok/src/amarokcore
+ ${CMAKE_SOURCE_DIR}/amarok/src
+ ${CMAKE_SOURCE_DIR}/amarok/src/engine/akode
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${AKODE_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES amarok_aKode-engine.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### libamarok_aKode-engine (module) ############
+
+tde_add_kpart( libamarok_aKode-engine AUTOMOC
+ SOURCES
+ akode-scope.cpp akode-engine.cpp
+ LINK amarok-shared ${AKODE_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)