Browse Source

[applications/amarok] initial cmake support

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/amarok@1214485 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
samelian 12 years ago
parent
commit
c36e31eb1b
  1. 124
      CMakeLists.txt
  2. 173
      ConfigureChecks.cmake
  3. 12
      amarok/CMakeLists.txt
  4. 110
      amarok/src/CMakeLists.txt
  5. 35
      amarok/src/amarokcore/CMakeLists.txt
  6. 31
      amarok/src/analyzers/CMakeLists.txt
  7. 33
      amarok/src/collectionscanner/CMakeLists.txt
  8. 16
      amarok/src/data/CMakeLists.txt
  9. 14
      amarok/src/device/CMakeLists.txt
  10. 36
      amarok/src/device/massstorage/CMakeLists.txt
  11. 35
      amarok/src/device/nfs/CMakeLists.txt
  12. 35
      amarok/src/device/smb/CMakeLists.txt
  13. 15
      amarok/src/engine/CMakeLists.txt
  14. 35
      amarok/src/engine/void/CMakeLists.txt
  15. 42
      amarok/src/engine/xine/CMakeLists.txt
  16. 27
      amarok/src/images/CMakeLists.txt
  17. 12
      amarok/src/images/icons/CMakeLists.txt
  18. 40
      amarok/src/konquisidebar/CMakeLists.txt
  19. 28
      amarok/src/loader/CMakeLists.txt
  20. 36
      amarok/src/magnatunebrowser/CMakeLists.txt
  21. 20
      amarok/src/mediadevice/CMakeLists.txt
  22. 42
      amarok/src/mediadevice/generic/CMakeLists.txt
  23. 42
      amarok/src/mediadevice/ipod/CMakeLists.txt
  24. 40
      amarok/src/metadata/CMakeLists.txt
  25. 23
      amarok/src/metadata/aac/CMakeLists.txt
  26. 25
      amarok/src/metadata/asf/CMakeLists.txt
  27. 25
      amarok/src/metadata/audible/CMakeLists.txt
  28. 32
      amarok/src/metadata/m4a/CMakeLists.txt
  29. 26
      amarok/src/metadata/rmff/CMakeLists.txt
  30. 24
      amarok/src/metadata/wav/CMakeLists.txt
  31. 30
      amarok/src/plugin/CMakeLists.txt
  32. 20
      amarok/src/scripts/CMakeLists.txt
  33. 12
      amarok/src/scripts/common/CMakeLists.txt
  34. 14
      amarok/src/scripts/lyrics_astraweb/CMakeLists.txt
  35. 13
      amarok/src/scripts/lyrics_lyrc/CMakeLists.txt
  36. 18
      amarok/src/scripts/playlist2html/CMakeLists.txt
  37. 12
      amarok/src/scripts/ruby_debug/CMakeLists.txt
  38. 18
      amarok/src/scripts/score_default/CMakeLists.txt
  39. 18
      amarok/src/scripts/score_impulsive/CMakeLists.txt
  40. 14
      amarok/src/scripts/templates/CMakeLists.txt
  41. 22
      amarok/src/scripts/webcontrol/CMakeLists.txt
  42. 32
      amarok/src/statusbar/CMakeLists.txt
  43. 13
      amarok/src/themes/CMakeLists.txt
  44. 12
      amarok/src/themes/example/CMakeLists.txt
  45. 14
      amarok/src/themes/reinhardt/CMakeLists.txt
  46. 14
      amarok/src/themes/reinhardt/images/CMakeLists.txt
  47. 12
      amarok/src/vis/CMakeLists.txt
  48. 34
      amarok/src/vis/libvisual/CMakeLists.txt
  49. 16
      config.h.cmake

124
CMakeLists.txt

@ -1,51 +1,75 @@
project(extragear-multimedia)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake/modules )
# search packages used by KDE
find_package(KDE4 REQUIRED)
include (KDE4Defaults)
include (MacroLibrary)
include(MacroOptionalAddSubdirectory)
find_package(RUBY)
find_package(KdeMultimedia)
find_package(OpenGL)
find_package(Xine)
# are these two really required ?
if (APPLE)
find_package(Carbon REQUIRED)
endif (APPLE)
set(TAGLIB_MIN_VERSION "1.5")
find_package(Taglib)
#amarok needs to be before add_definitions, since it builds
#some qt-only software
if(TAGLIB_FOUND AND RUBY_EXECUTABLE AND RUBY_INCLUDE_PATH)
macro_optional_add_subdirectory(amarok)
endif(TAGLIB_FOUND AND RUBY_EXECUTABLE AND RUBY_INCLUDE_PATH)
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES})
include (ConfigureChecks.cmake)
if(TAGLIB_FOUND)
include_directories (${TAGLIB_INCLUDES})
endif(TAGLIB_FOUND)
if(KDEMULTIMEDIA_FOUND)
macro_optional_add_subdirectory(k3b)
macro_optional_add_subdirectory(kaudiocreator)
endif(KDEMULTIMEDIA_FOUND)
macro_optional_add_subdirectory(kaffeine)
macro_optional_add_subdirectory(kmid)
macro_optional_add_subdirectory(kplayer)
macro_optional_add_subdirectory(kmplayer)
macro_optional_add_subdirectory(doc)
if(QT_QTOPENGL_FOUND AND OPENGL_FOUND AND XINE_FOUND)
macro_optional_add_subdirectory(kaffeinegl)
endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND AND XINE_FOUND)
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
cmake_minimum_required( VERSION 2.6 )
##### general package setup #####################
project( amarok )
##### include essential cmake modules ###########
include( CheckCXXSourceCompiles )
include( CheckFunctionExists )
include( CheckIncludeFileCXX )
include( CheckStructHasMember )
include( CheckSymbolExists )
include( CheckTypeSize )
include( FindPkgConfig )
##### include our cmake modules #################
set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
include( TDEMacros )
##### setup install paths #######################
include( TDESetupPaths )
tde_setup_paths( )
##### optional stuff ############################
option( WITH_LIBVISUAL "Enable libvisual support" OFF )
option( WITH_KONQSIDEBAR "Enable konqsidebar plugin" OFF )
option( WITH_XINE "Enable xine-engine support" OFF )
option( WITH_LIBGPOD "Enable iPod support from libgpod" OFF )
##### configure checks ##########################
include( ConfigureChecks.cmake )
###### global compiler settings #################
add_definitions(
-DHAVE_CONFIG_H
${TQT_CFLAGS_OTHER}
)
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include tqt.h" )
set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
##### source directories ########################
add_subdirectory( amarok )
##### write configure files #####################
configure_file( config.h.cmake config.h @ONLY )

173
ConfigureChecks.cmake

@ -1,34 +1,139 @@
include(CheckIncludeFile)
include(CheckIncludeFiles)
include(CheckSymbolExists)
include(CheckFunctionExists)
include(CheckLibraryExists)
include(CheckPrototypeExists)
include(CheckTypeSize)
include(MacroBoolTo01)
# The FindKDE4.cmake module sets _KDE4_PLATFORM_DEFINITIONS with
# definitions like _GNU_SOURCE that are needed on each platform.
set(CMAKE_REQUIRED_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS})
#check for libz using the cmake supplied FindZLIB.cmake
macro_bool_to_01(ZLIB_FOUND HAVE_LIBZ)
macro_bool_to_01(JPEG_FOUND HAVE_LIBJPEG)
macro_bool_to_01(PNG_FOUND HAVE_LIBPNG)
macro_bool_to_01(CARBON_FOUND HAVE_CARBON)
macro_bool_to_01(NJB_FOUND HAVE_LIBNJB)
macro_bool_to_01(IFP_FOUND HAVE_IFP)
macro_bool_to_01(LIBVISUAL_FOUND HAVE_LIBVISUAL)
macro_bool_to_01(MTP_FOUND HAVE_MTP)
#now check for dlfcn.h using the cmake supplied CHECK_include_FILE() macro
# If definitions like -D_GNU_SOURCE are needed for these checks they
# should be added to _KDE4_PLATFORM_DEFINITIONS when it is originally
# defined outside this file. Here we include these definitions in
# CMAKE_REQUIRED_DEFINITIONS so they will be included in the build of
# checks below.
set(CMAKE_REQUIRED_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS})
if (WIN32)
set(CMAKE_REQUIRED_LIBRARIES ${KDEWIN32_LIBRARIES} )
set(CMAKE_REQUIRED_INCLUDES ${KDEWIN32_INCLUDES} )
endif (WIN32)
#################################################
#
# (C) 2010 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
check_type_size( "int" SIZEOF_INT BUILTIN_TYPES_ONLY )
check_type_size( "long" SIZEOF_LONG BUILTIN_TYPES_ONLY )
check_include_file( stdint.h HAVE_STDINT_H )
check_include_file( systems.h HAVE_SYSTEMS_H )
check_include_file( linux/inotify.h HAVE_INOTIFY )
check_function_exists( statvfs HAVE_STATVFS )
# fabsf
tde_save( CMAKE_REQUIRED_LIBRARIES )
set( CMAKE_REQUIRED_LIBRARIES m )
check_function_exists( fabsf HAVE_FABSF )
tde_restore( CMAKE_REQUIRED_LIBRARIES )
# taglib
pkg_search_module( TAGLIB taglib )
if( TAGLIB_FOUND )
if( ${TAGLIB_VERSION} VERSION_LESS "1.5" )
tde_message_fatal( "taglib version must be at least 1.5" )
else( )
set( TAGLIB_15 1 )
endif( )
else( )
tde_message_fatal( "taglib are required, but not found on your system" )
endif( )
# sqlite3
pkg_search_module( SQLITE sqlite3 )
if( NOT SQLITE_FOUND )
tde_message_fatal( "sqlite3 are required, but not found on your system" )
endif( )
# libvisual
if( WITH_LIBVISUAL )
pkg_search_module( SDL sdl )
if( NOT SDL_FOUND )
tde_message_fatal( "SDL are required, but not found on your system" )
endif( )
pkg_search_module( LIBVISUAL libvisual-0.4 )
if( LIBVISUAL_FOUND )
if( ${LIBVISUAL_VERSION} VERSION_LESS "0.4.0" )
tde_message_fatal( "libvisual version must be at least 0.4.0" )
endif( )
else( )
tde_message_fatal( "libvisual are requested, but not found on your system" )
endif( )
set( HAVE_LIBVISUAL 1 )
endif( )
# xine-engine
if( WITH_XINE )
pkg_search_module( XINE libxine )
if( XINE_FOUND )
if( ${XINE_VERSION} VERSION_LESS "1.0.2" )
tde_message_fatal( "your xine version is too old; at least 1.0.2 is required" )
endif( )
else( )
tde_message_fatal( "xine are requested, but not found on your system" )
endif( )
endif( )
# iPod
if( WITH_LIBGPOD )
tde_message_fatal( "iPod support is outdated, cannot be compiled against newer libgpod" )
pkg_search_module( LIBGPOD libgpod-1.0 )
if( LIBGPOD_FOUND )
if( ${LIBGPOD_VERSION} VERSION_LESS "0.4.2" )
tde_message_fatal( "your libgpod version is too old; at least 0.4.2 is required" )
elseif( NOT ${LIBGPOD_VERSION} VERSION_LESS "0.6.0" )
set( HAVE_LIBGPOD_060 1 )
endif( )
else( )
tde_message_fatal( "libgpod-1.0 are requested, but not found on your system" )
endif( )
tde_save( CMAKE_REQUIRED_INCLUDES )
set( CMAKE_REQUIRED_INCLUDES ${LIBGPOD_INCLUDE_DIRS} )
check_struct_has_member( "struct _Itdb_Track" mediatype "gpod/itdb.h" HAVE_ITDB_MEDIATYPE )
tde_restore( CMAKE_REQUIRED_INCLUDES )
endif( )
# common required stuff
find_package( Qt )
find_package( TQt )
find_package( TDE )
# check for Qt with OpenGL support
tde_save( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES )
set( CMAKE_REQUIRED_INCLUDES ${QT_INCLUDE_DIRS} )
set( CMAKE_REQUIRED_LIBRARIES -L${QT_LIBRARY_DIRS} ${QT_LIBRARIES} )
check_cxx_source_compiles("
#include <qgl.h>
int main(int, char**) { (void)new QGLWidget((QWidget*)0, \"qgl\"); return 0; } "
HAVE_QGLWIDGET )
tde_restore( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES )
# konqsidebarplugin.h
if( WITH_KONQSIDEBAR )
tde_save( CMAKE_REQUIRED_DEFINITIONS CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES CMAKE_REQUIRED_LIBRARIES )
set( CMAKE_REQUIRED_DEFINITIONS ${TQT_CFLAGS_OTHER} )
set( CMAKE_REQUIRED_INCLUDES ${TDE_INCLUDE_DIR};${TQT_INCLUDE_DIRS} )
set( CMAKE_REQUIRED_FLAGS "-include tqt.h" )
set( CMAKE_REQUIRED_LIBRARIES -L${QT_LIBRARY_DIRS} ${QT_LIBRARIES} )
check_cxx_source_compiles("
#include <konqsidebarplugin.h>
int main(int, char**) { return 0; } "
HAVE_KONQSIDEBARPLUGIN_H )
tde_restore( CMAKE_REQUIRED_DEFINITIONS CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES CMAKE_REQUIRED_LIBRARIES )
if( NOT HAVE_KONQSIDEBARPLUGIN_H )
tde_message_fatal( "konqsidebarplugin.h are requested, but not found on your system" )
endif( )
endif( )

12
amarok/CMakeLists.txt

@ -0,0 +1,12 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory( src )

110
amarok/src/CMakeLists.txt

@ -0,0 +1,110 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory( amarokcore )
add_subdirectory( magnatunebrowser )
add_subdirectory( analyzers )
add_subdirectory( data )
add_subdirectory( plugin )
add_subdirectory( images )
add_subdirectory( loader )
add_subdirectory( scripts )
add_subdirectory( themes )
add_subdirectory( vis )
add_subdirectory( metadata )
tde_conditional_add_subdirectory( WITH_KONQSIDEBAR konquisidebar )
add_subdirectory( statusbar )
add_subdirectory( engine )
add_subdirectory( mediadevice )
add_subdirectory( device )
add_subdirectory( collectionscanner )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/amarok/src/amarokcore
${CMAKE_BINARY_DIR}/amarok/src/magnatunebrowser
${CMAKE_SOURCE_DIR}/amarok/src/amarokcore
${CMAKE_SOURCE_DIR}/amarok/src/analyzers
${CMAKE_SOURCE_DIR}/amarok/src/statusbar
${CMAKE_SOURCE_DIR}/amarok/src/plugin
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${TAGLIB_INCLUDE_DIRS}
${SQLITE_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
tde_install_icons( )
install( PROGRAMS amarok_proxy.rb DESTINATION ${BIN_INSTALL_DIR} )
install( FILES amarokui.rc DESTINATION ${DATA_INSTALL_DIR}/amarok )
install( FILES amarokrc DESTINATION ${CONFIG_INSTALL_DIR} )
install( FILES amarok.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( FILES amarok_plugin.desktop amarok_codecinstall.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} )
install( FILES amarok_addaspodcast.desktop amarok_append.desktop amarok_play_audiocd.desktop DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus )
install( FILES amarok.profile.xml DESTINATION ${DATA_INSTALL_DIR}/profiles )
install( FILES amarokitpc.protocol amaroklastfm.protocol amarokpcast.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
##### amarokapp (executable) ####################
tde_add_executable( amarokapp
SOURCES main.cpp
LINK amarok-shared
DESTINATION ${BIN_INSTALL_DIR}
)
##### amarok (shared) ###########################
tde_add_library( amarok SHARED AUTOMOC
SOURCES
Options1.ui Options1.ui.h Options2.ui Options4.ui Options5.ui
Options7.ui Options8.ui actionclasses.cpp app.cpp atomicstring.cpp
atomicurl.cpp browserbar.cpp clicklineedit.cpp collectionbrowser.cpp
collectiondb.cpp columnlist.cpp configdialog.cpp contextbrowser.cpp
coverfetcher.cpp covermanager.cpp cuefile.cpp dbsetup.ui dbsetup.ui.h
deletedialog.cpp deletedialogbase.ui deviceconfiguredialog.cpp
devicemanager.cpp directorylist.cpp dynamicmode.cpp enginebase.cpp
enginecontroller.cpp engineobserver.cpp equalizergraph.cpp
equalizerpresetmanager.cpp equalizersetup.cpp expression.cpp fht.cpp
filebrowser.cpp firstrunwizard.ui hintlineedit.cpp htmlview.cpp
iconloader.cpp k3bexporter.cpp kbookmarkhandler.cpp ktrm.cpp
lastfm.cpp mediabrowser.cpp mediadevicemanager.cpp medium.cpp
mediumpluginmanager.cpp metabundle.cpp metabundlesaver.cpp moodbar.cpp
mountpointmanager.cpp multitabbar.cpp mydiroperator.cpp newdynamic.ui
organizecollectiondialog.ui osd.cpp pixmapviewer.cpp playerwindow.cpp
playlist.cpp playlistbrowser.cpp playlistbrowseritem.cpp playlistitem.cpp
playlistloader.cpp playlistselection.cpp playlistwindow.cpp
pluginmanager.cpp podcastsettings.cpp podcastsettingsbase.ui
prettypopupmenu.cpp queuemanager.cpp refreshimages.cpp
scancontroller.cpp scriptmanager.cpp scriptmanagerbase.ui
scrobbler.cpp sliderwidget.cpp smartplaylisteditor.cpp socketserver.cpp
starmanager.cpp statistics.cpp systray.cpp tagdialog.cpp tagdialogbase.ui
tagguesser.cpp tagguesserconfigdialog.ui threadmanager.cpp tooltip.cpp
trackpickerdialog.cpp trackpickerdialogbase.ui tracktooltip.cpp
transferdialog.cpp xmlloader.cpp xspfplaylist.cpp editfilterdialog.cpp
VERSION 0.0.0
EMBED
amarokcore-static magnatunebrowser-static analyzers-static plugin-static
metadata-static statusbar-static
LINK
khtml-shared knewstuff-shared
GL ${TAGLIB_LIBRARIES} ${SQLITE_LIBRARIES} pthread
DESTINATION ${LIB_INSTALL_DIR}
)

35
amarok/src/amarokcore/CMakeLists.txt

@ -0,0 +1,35 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/amarok/src
${CMAKE_SOURCE_DIR}/amarok/src/statusbar
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${TAGLIB_INCLUDE_DIRS}
)
##### other data ################################
install( FILES amarok.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
##### amarokcore (static) #######################
tde_add_library( amarokcore STATIC_PIC AUTOMOC
SOURCES
amarokdcopiface.skel amarokdcophandler.cpp
amarokconfig.kcfgc crashhandler.cpp
)

31
amarok/src/analyzers/CMakeLists.txt

@ -0,0 +1,31 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# 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
${CMAKE_BINARY_DIR}/amarok/src/amarokcore
${CMAKE_SOURCE_DIR}/amarok/src
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
##### analyzers (static) ########################
tde_add_library( analyzers STATIC_PIC AUTOMOC
SOURCES
analyzerbase.cpp analyzerfactory.cpp baranalyzer.cpp
blockanalyzer.cpp glanalyzer.cpp glanalyzer2.cpp
glanalyzer3.cpp sonogram.cpp turbine.cpp boomanalyzer.cpp
DEPENDENCIES amarokcore-static
)

33
amarok/src/collectionscanner/CMakeLists.txt

@ -0,0 +1,33 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/amarok/src
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### amarokcollectionscanner (executable) ######
tde_add_executable( amarokcollectionscanner AUTOMOC
SOURCES
main.cpp collectionscannerdcopiface.skel
collectionscannerdcophandler.cpp collectionscanner.cpp
LINK amarok-shared
DESTINATION ${BIN_INSTALL_DIR}
)

16
amarok/src/data/CMakeLists.txt

@ -0,0 +1,16 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES
Cool-Streams.xml Amarok_1.4_Welcome.ogg ball.png
dot.png equalizer_presets.xml firstrun.m3u
grid.png wirl1.png wirl2.png magnatune_logo.png
DESTINATION ${DATA_INSTALL_DIR}/amarok/data )

14
amarok/src/device/CMakeLists.txt

@ -0,0 +1,14 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory( massstorage )
add_subdirectory( nfs )
add_subdirectory( smb )

36
amarok/src/device/massstorage/CMakeLists.txt

@ -0,0 +1,36 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/amarok/src
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES amarok_massstorage-device.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
##### libamarok_massstorage-device (module) #####
tde_add_kpart( libamarok_massstorage-device
SOURCES
massstoragedevicehandler.cpp
LINK amarok-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

35
amarok/src/device/nfs/CMakeLists.txt

@ -0,0 +1,35 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/amarok/src
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES amarok_nfs-device.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
##### libamarok_nfs-device (module) #############
tde_add_kpart( libamarok_nfs-device
SOURCES nfsdevicehandler.cpp
LINK amarok-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

35
amarok/src/device/smb/CMakeLists.txt

@ -0,0 +1,35 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/amarok/src
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES amarok_smb-device.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
##### libamarok_smb-device (module) #############
tde_add_kpart( libamarok_smb-device
SOURCES smbdevicehandler.cpp
LINK amarok-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

15
amarok/src/engine/CMakeLists.txt

@ -0,0 +1,15 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
# FIXME: we need to port other engines either
add_subdirectory( void )
tde_conditional_add_subdirectory( WITH_XINE xine )

35
amarok/src/engine/void/CMakeLists.txt

@ -0,0 +1,35 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/amarok/src
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES amarok_void-engine_plugin.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
##### libamarok_void-engine_plugin (module) #####
tde_add_kpart( libamarok_void-engine_plugin
SOURCES void-engine.cpp
LINK amarok-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

42
amarok/src/engine/xine/CMakeLists.txt

@ -0,0 +1,42 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# 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/amarokcore
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${XINE_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES amarok_xine-engine.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES xinecfg.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
##### libamarok_xine-engine (module) ############
tde_add_kpart( libamarok_xine-engine AUTOMOC
SOURCES
xine-scope.c xinecfg.kcfgc xine-engine.cpp
xineconfigbase.ui xine-config.cpp
LINK amarok-shared ${XINE_LIBRARIES}
DESTINATION ${PLUGIN_INSTALL_DIR}
)

27
amarok/src/images/CMakeLists.txt

@ -0,0 +1,27 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory( icons )
install( FILES
amarok_cut.png amarok_rocks.jpg b_next.png b_pause.png b_play.png
b_prev.png b_stop.png back_stars_grey.png currenttrack_bar_left.png
currenttrack_bar_mid.png currenttrack_bar_right.png currenttrack_play.png
currenttrack_pause.png currenttrack_stop.png currenttrack_stop_small.png
currenttrack_repeat.png currenttrack_repeat_small.png
eq_active2.png eq_inactive2.png lastfm.png loading1.png loading2.png
menu_sidepixmap.png more_albums.png musicbrainz.png nocover.png
pl_active2.png pl_inactive2.png shadow_albumcover.png sbinner_stars.png
smallstar.png splash_screen.jpg star.png time_minus.png time_plus.png
vol_speaker.png volumeslider-gradient.png volumeslider-handle.png
volumeslider-handle_glow.png volumeslider-inset.png wizard_compact.png
wizard_xmms.png xine_logo.png
DESTINATION ${DATA_INSTALL_DIR}/amarok/images )

12
amarok/src/images/icons/CMakeLists.txt

@ -0,0 +1,12 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/amarok/icons )

40
amarok/src/konquisidebar/CMakeLists.txt

@ -0,0 +1,40 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
tde_import( konqueror )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES amarok.desktop DESTINATION ${DATA_INSTALL_DIR}/konqsidebartng/add )
install( FILES amarok.desktop DESTINATION ${DATA_INSTALL_DIR}/konqsidebartng/kicker_entries )
install( FILES amarok.desktop DESTINATION ${DATA_INSTALL_DIR}/konqsidebartng/entries )
##### konqsidebar_universalamarok (module) ######
tde_add_kpart( konqsidebar_universalamarok AUTOMOC
SOURCES
universalamarok.cpp
${CMAKE_SOURCE_DIR}/amarok/src/amarokcore/amarokdcopiface.stub
LINK konqsidebarplugin-shared khtml-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

28
amarok/src/loader/CMakeLists.txt

@ -0,0 +1,28 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### amarok (executable) #######################
tde_add_executable( amarok
SOURCES loader.cpp
LINK kdeui-shared
DESTINATION ${BIN_INSTALL_DIR}
)

36
amarok/src/magnatunebrowser/CMakeLists.txt

@ -0,0 +1,36 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# 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/amarokcore
${CMAKE_SOURCE_DIR}/amarok/src/statusbar
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
##### magnatunebrowser (static) #################
tde_add_library( magnatunebrowser STATIC_PIC AUTOMOC
SOURCES
magnatuneartistinfobox.cpp magnatunebrowser.cpp
magnatunedownloaddialogbase.ui magnatunedownloaddialog.cpp
magnatunepurchasedialogbase.ui magnatunepurchasedialog.cpp
magnatunepurchasehandler.cpp magnatunetypes.cpp magnatunexmlparser.cpp
magnatunedatabasehandler.cpp magnatunelistviewitems.cpp
magnatunelistview.cpp magnatuneredownloaddialog.cpp
magnatuneredownloadhandler.cpp magnatunedownloadinfo.cpp
magnatunealbumdownloader.cpp magnatuneredownloaddialogbase.ui
)

20
amarok/src/mediadevice/CMakeLists.txt

@ -0,0 +1,20 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
# FIXME optional devices are not ported yet
add_subdirectory( generic )
tde_conditional_add_subdirectory( WITH_LIBGPOD ipod )
tde_conditional_add_subdirectory( WITH_IFP ifp )
tde_conditional_add_subdirectory( WITH_LIBNJB njb )
tde_conditional_add_subdirectory( WITH_LIBMTP mtp )
tde_conditional_add_subdirectory( WITH_LIBKARMA riokarma )
tde_conditional_add_subdirectory( WITH_DAAP daap )

42
amarok/src/mediadevice/generic/CMakeLists.txt

@ -0,0 +1,42 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/amarok/src/amarokcore
${CMAKE_SOURCE_DIR}/amarok/src
${CMAKE_SOURCE_DIR}/amarok/src/amarokcore
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES amarok_generic-mediadevice.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
##### libamarok_generic-mediadevice (module) ####
tde_add_kpart( libamarok_generic-mediadevice AUTOMOC
SOURCES
genericmediadeviceconfigdialog.ui
genericmediadevice.cpp
LINK amarok-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
DEPENDENCIES amarokcore-static
)

42
amarok/src/mediadevice/ipod/CMakeLists.txt

@ -0,0 +1,42 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
#${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/amarok/src
${CMAKE_SOURCE_DIR}/amarok/src
#${CMAKE_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${LIBGPOD_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)