git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/amarok@1230244 283d02a7-25f6-0310-bc7c-ecb5cbfe19dav3.5.13-sru
parent
844e4d4e91
commit
75c0180e44
@ -0,0 +1,57 @@
|
||||
#################################################
|
||||
#
|
||||
# (C) 2010-2011 Serghei Amelian
|
||||
# serghei (DOT) amelian (AT) gmail.com
|
||||
#
|
||||
# Improvements and feedback are welcome
|
||||
#
|
||||
# This file is released under GPL >= 2
|
||||
#
|
||||
#################################################
|
||||
|
||||
include( ConfigureChecks.cmake )
|
||||
|
||||
add_subdirectory( daapreader )
|
||||
add_subdirectory( mongrel )
|
||||
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_BINARY_DIR}
|
||||
${CMAKE_BINARY_DIR}/amarok/src
|
||||
${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_daap-mediadevice.desktop
|
||||
DESTINATION ${SERVICES_INSTALL_DIR} )
|
||||
|
||||
install( PROGRAMS
|
||||
amarok_daapserver.rb
|
||||
DESTINATION ${BIN_INSTALL_DIR} )
|
||||
|
||||
install( FILES
|
||||
codes.rb
|
||||
DESTINATION ${DATA_INSTALL_DIR}/amarok/ruby_lib )
|
||||
|
||||
|
||||
##### libamarok_daap-mediadevice (module) #######
|
||||
|
||||
tde_add_kpart( libamarok_daap-mediadevice AUTOMOC
|
||||
SOURCES
|
||||
addhostbase.ui daapclient.cpp daapserver.cpp proxy.cpp
|
||||
LINK daapreader-static amarok-shared kdnssd-shared
|
||||
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||
DEPENDENCIES amarokcore-static
|
||||
)
|
@ -0,0 +1,39 @@
|
||||
#################################################
|
||||
#
|
||||
# (C) 2010-2011 Serghei Amelian
|
||||
# serghei (DOT) amelian (AT) gmail.com
|
||||
#
|
||||
# Improvements and feedback are welcome
|
||||
#
|
||||
# This file is released under GPL >= 2
|
||||
#
|
||||
#################################################
|
||||
|
||||
find_program( RUBY_EXECUTABLE "ruby" )
|
||||
if( NOT RUBY_EXECUTABLE )
|
||||
tde_message_fatal( "ruby is required, but was not found on your system" )
|
||||
endif( )
|
||||
|
||||
execute_process(
|
||||
COMMAND ${RUBY_EXECUTABLE} -rrbconfig -e "puts Config.expand( Config::MAKEFILE_CONFIG['archdir'] )"
|
||||
OUTPUT_VARIABLE RUBY_INCLUDE_DIR
|
||||
RESULT_VARIABLE _result
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE )
|
||||
if( _result )
|
||||
tde_message_fatal( "Unable to run ${RUBY_EXECUTABLE}!\n RUBY is correctly installed?" )
|
||||
endif( )
|
||||
|
||||
execute_process(
|
||||
COMMAND ${RUBY_EXECUTABLE} -rrbconfig -e "puts Config.expand( Config::MAKEFILE_CONFIG['LIBRUBYARG_SHARED'] )"
|
||||
OUTPUT_VARIABLE RUBY_LDFLAGS
|
||||
RESULT_VARIABLE _result
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE )
|
||||
if( _result )
|
||||
tde_message_fatal( "Unable to run ${RUBY_EXECUTABLE}!\n RUBY is correctly installed?" )
|
||||
endif( )
|
||||
|
||||
if( RUBY_INCLUDE_DIR AND RUBY_LDFLAGS )
|
||||
message( STATUS "Found RUBY: ${RUBY_EXECUTABLE}" )
|
||||
message( STATUS " RUBY_INCLUDE_DIR: ${RUBY_INCLUDE_DIR}" )
|
||||
message( STATUS " RUBY_LDFLAGS: ${RUBY_LDFLAGS}" )
|
||||
endif( )
|
@ -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
|
||||
#
|
||||
#################################################
|
||||
|
||||
add_subdirectory( authentication )
|
||||
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
${CMAKE_BINARY_DIR}
|
||||
${CMAKE_SOURCE_DIR}/amarok/src
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
|
||||
##### daapreader (static) #######################
|
||||
|
||||
tde_add_library( daapreader STATIC_PIC AUTOMOC
|
||||
SOURCES reader.cpp
|
||||
LINK authentication-static
|
||||
)
|
@ -0,0 +1,26 @@
|
||||
#################################################
|
||||
#
|
||||
# (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}
|
||||
)
|
||||
|
||||
|
||||
##### authentication (static) ###################
|
||||
|
||||
tde_add_library( authentication STATIC_PIC AUTOMOC
|
||||
SOURCES
|
||||
contentfetcher.cpp md5.c hasher.c
|
||||
)
|
@ -0,0 +1,13 @@
|
||||
#################################################
|
||||
#
|
||||
# (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( http11 )
|
||||
add_subdirectory( lib )
|
@ -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
|
||||
#
|
||||
#################################################
|
||||
|
||||
add_definitions(
|
||||
-Dinline=__inline__
|
||||
-Dasm=__asm__
|
||||
)
|
||||
|
||||
include_directories(
|
||||
${RUBY_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
##### other data ################################
|
||||
|
||||
install( FILES
|
||||
http11.rb
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ruby_lib )
|
||||
|
||||
|
||||
##### http11 (shared) ###########################
|
||||
|
||||
tde_add_library( http11 SHARED
|
||||
SOURCES
|
||||
http11.c http11_parser.c tst_cleanup.c tst_delete.c
|
||||
tst_grow_node_free_list.c tst_init.c tst_insert.c tst_search.c
|
||||
LINK ${RUBY_LDFLAGS}
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ruby_lib
|
||||
)
|
@ -0,0 +1,18 @@
|
||||
#################################################
|
||||
#
|
||||
# (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( mongrel )
|
||||
add_subdirectory( rubygems )
|
||||
add_subdirectory( rbconfig )
|
||||
|
||||
install( FILES
|
||||
gem_plugin.rb gemconfigure.rb mongrel.rb rubygems.rb
|
||||
DESTINATION ${DATA_INSTALL_DIR}/amarok/ruby_lib )
|
@ -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
|
||||
#
|
||||
#################################################
|
||||
|
||||
install( FILES
|
||||
cgi.rb command.rb configurator.rb debug.rb handlers.rb init.rb
|
||||
mime_types.yml stats.rb tcphack.rb
|
||||
DESTINATION ${DATA_INSTALL_DIR}/amarok/ruby_lib/mongrel )
|
@ -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
|
||||
#
|
||||
#################################################
|
||||
|
||||
install( FILES
|
||||
datadir.rb
|
||||
DESTINATION ${DATA_INSTALL_DIR}/amarok/ruby_lib/rbconfig )
|
@ -0,0 +1,19 @@
|
||||
#################################################
|
||||
#
|
||||
# (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
|
||||
._gem_commands.rb builder.rb cmd_manager.rb command.rb config_file.rb
|
||||
custom_require.rb dependency_list.rb doc_manager.rb format.rb
|
||||
gem_commands.rb gem_openssl.rb gem_runner.rb incremental_fetcher.rb
|
||||
installer.rb loadpath_manager.rb old_format.rb open-uri.rb package.rb
|
||||
remote_installer.rb rubygems_version.rb security.rb source_index.rb
|
||||
specification.rb timer.rb user_interaction.rb validator.rb version.rb
|
||||
DESTINATION ${DATA_INSTALL_DIR}/amarok/ruby_lib/rubygems )
|
@ -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
|
||||
#
|
||||
#################################################
|
||||
|
||||
include( ConfigureChecks.cmake )
|
||||
|
||||
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}
|
||||
)
|
||||
|
||||
|
||||
##### other data ################################
|
||||
|
||||
install( FILES
|
||||
amarok_ifp-mediadevice.desktop
|
||||
DESTINATION ${SERVICES_INSTALL_DIR} )
|
||||
|
||||
|
||||
##### libamarok_ifp-mediadevice (module) ########
|
||||
|
||||
tde_add_kpart( libamarok_ifp-mediadevice AUTOMOC
|
||||
SOURCES ifpmediadevice.cpp
|
||||
LINK amarok-shared kio-shared ${IFP_LIBRARY} ${USB_LIBRARIES}
|
||||
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||
)
|
@ -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
|
||||
#
|
||||
#################################################
|
||||
|
||||
# libifp
|
||||
check_include_file( ifp.h HAVE_IFP_H )
|
||||
if( HAVE_IFP_H )
|
||||
check_library_exists( ifp ifp_init "" HAVE_IFP )
|
||||
endif( )
|
||||
if( HAVE_IFP_H AND HAVE_IFP )
|
||||
set( IFP_LIBRARY ifp )
|
||||
else( )
|
||||
tde_message_fatal( "libifp is required, but was not found on your system" )
|
||||
endif( )
|
||||
|
||||
|
||||
# libusb
|
||||
pkg_search_module( USB libusb )
|
||||
if( NOT USB_FOUND )
|
||||
tde_message_fatal( "libusb is required, but was not found on your system" )
|
||||
endif( )
|
@ -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
|
||||
#
|
||||
#################################################
|
||||
|
||||
include( ConfigureChecks.cmake )
|
||||
|
||||
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}
|
||||
)
|
||||
|
||||
|
||||
##### other data ################################
|
||||
|
||||
install( FILES
|
||||
amarok_mtp-mediadevice.desktop
|
||||
DESTINATION ${SERVICES_INSTALL_DIR} )
|
||||
|
||||
|
||||
##### libamarok_mtp-mediadevice (module) ########
|
||||
|
||||
tde_add_kpart( libamarok_mtp-mediadevice AUTOMOC
|
||||
SOURCES mtpmediadevice.cpp
|
||||
LINK amarok-shared ${MTP_LIBRARIES}
|
||||
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||
)
|
@ -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
|
||||
#
|
||||
#################################################
|
||||
|
||||
# libmtp
|
||||
pkg_search_module( MTP libmtp )
|
||||
if( NOT MTP_FOUND )
|
||||
tde_message_fatal( "libmtp is required, but was not found on your system" )
|
||||
endif( )
|
@ -0,0 +1,41 @@
|
||||
#################################################
|
||||
#
|
||||
# (C) 2010-2011 Serghei Amelian
|
||||
# serghei (DOT) amelian (AT) gmail.com
|
||||
#
|
||||
# Improvements and feedback are welcome
|
||||
#
|
||||
# This file is released under GPL >= 2
|
||||
#
|
||||
#################################################
|
||||
|
||||
include( ConfigureChecks.cmake )
|
||||
|
||||
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}
|
||||
)
|
||||
|
||||
|
||||
##### other data ################################
|
||||
|
||||
install( FILES
|
||||
amarok_njb-mediadevice.desktop
|
||||
DESTINATION ${SERVICES_INSTALL_DIR} )
|
||||
|
||||
|
||||
##### libamarok_njb-mediadevice (module) ########
|
||||
|
||||
tde_add_kpart( libamarok_njb-mediadevice AUTOMOC
|
||||
SOURCES
|
||||
njbmediadevice.cpp playlist.cpp track.cpp
|
||||
LINK amarok-shared ${NJB_LIBRARIES}
|
||||
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||
)
|
@ -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
|
||||
#
|
||||
#################################################
|
||||
|
||||
# libnjb
|
||||
pkg_search_module( NJB libnjb )
|
||||
if( NOT NJB_FOUND )
|
||||
tde_message_fatal( "libnjb is required, but was not found on your system" )
|
||||
endif( )
|
@ -0,0 +1,43 @@
|
||||
#################################################
|
||||
#
|
||||
# (C) 2010-2011 Serghei Amelian
|
||||
# serghei (DOT) amelian (AT) gmail.com
|
||||
#
|
||||
# Improvements and feedback are welcome
|
||||
#
|
||||
# This file is released under GPL >= 2
|
||||
#
|
||||
#################################################
|
||||
|
||||
tde_message_fatal( "riokarma support is not buildable, it needs to link to karma-sharp.dll" )
|
||||
|
||||
include( ConfigureChecks.cmake )
|
||||
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
${CMAKE_BINARY_DIR}
|
||||
${CMAKE_SOURCE_DIR}/amarok/src
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
${KARMA_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
|
||||
##### other data ################################
|
||||
|
||||
install( FILES
|
||||
amarok_riokarma-mediadevice.desktop
|
||||
DESTINATION ${SERVICES_INSTALL_DIR} )
|
||||
|
||||
|
||||
##### libamarok_riokarma-mediadevice (module) ###
|
||||
|
||||
tde_add_kpart( libamarok_riokarma-mediadevice AUTOMOC
|
||||
SOURCES riokarmamediadevice.cpp
|
||||
LINK amarok-shared ${KARMA_LIBRARIES}
|
||||
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||
)
|
@ -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
|
||||
#
|
||||
#################################################
|
||||
|
||||
# libkarma
|
||||
pkg_search_module( KARMA karma-sharp )
|
||||
if( NOT KARMA_FOUND )
|
||||
tde_message_fatal( "libkarma is required, but was not found on your system" )
|
||||
endif( )
|
Loading…
Reference in new issue