summaryrefslogtreecommitdiffstats
path: root/juk
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 /juk
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 'juk')
-rw-r--r--juk/CMakeLists.txt132
-rw-r--r--juk/ConfigureChecks.cmake39
-rw-r--r--juk/pics/CMakeLists.txt15
3 files changed, 186 insertions, 0 deletions
diff --git a/juk/CMakeLists.txt b/juk/CMakeLists.txt
new file mode 100644
index 00000000..aed153f5
--- /dev/null
+++ b/juk/CMakeLists.txt
@@ -0,0 +1,132 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include( ConfigureChecks.cmake )
+
+add_subdirectory( pics )
+tde_install_icons( )
+
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${AKODE_INCLUDE_DIRS}
+ ${ARTS_INCLUDE_DIRS}
+ ${GST_INCLUDE_DIRS}
+ ${TAGLIB_INCLUDE_DIRS}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${AKODE_LIBRARY_DIRS}
+ ${ARTS_LIBRARY_DIRS}
+)
+
+
+##### juk (executable) ##########################
+
+tde_add_executable( juk AUTOMOC
+ SOURCES
+ advancedsearchdialog.cpp
+ actioncollection.cpp
+ akodeplayer.cpp
+ artsplayer.cpp
+ cache.cpp
+ categoryreaderinterface.cpp
+ collectionlist.cpp
+ coverdialog.cpp
+ coverdialogbase.ui
+ covericonview.cpp
+ coverinfo.cpp
+ covermanager.cpp
+ deletedialog.cpp
+ deletedialogbase.ui
+ directorylist.cpp
+ directorylistbase.ui
+ dynamicplaylist.cpp
+ exampleoptions.cpp
+ exampleoptionsbase.ui
+ folderplaylist.cpp
+ filehandle.cpp
+ filerenamer.cpp
+ filerenamerbase.ui
+ filerenameroptions.cpp
+ filerenameroptionsbase.ui
+ filerenamerconfigdlg.cpp
+ gstreamerplayer.cpp
+ webimagefetcher.cpp
+ webimagefetcherdialog.cpp
+ historyplaylist.cpp
+ juk.cpp
+ jukIface.skel
+ k3bexporter.cpp
+ keydialog.cpp
+ main.cpp
+ mediafiles.cpp
+ musicbrainzquery.cpp
+ nowplaying.cpp
+ playermanager.cpp
+ playlist.cpp
+ playlistbox.cpp
+ playlistcollection.cpp
+ playlistinterface.cpp
+ playlistitem.cpp
+ playlistsearch.cpp
+ playlistsplitter.cpp
+ searchplaylist.cpp
+ searchwidget.cpp
+ slideraction.cpp
+ sortedstringlist.cpp
+ splashscreen.cpp
+ statuslabel.cpp
+ stringshare.cpp
+ systemtray.cpp
+ tag.cpp
+ tageditor.cpp
+ tagguesser.cpp
+ tagguesserconfigdlg.cpp
+ tagguesserconfigdlgwidget.ui
+ tagrenameroptions.cpp
+ tagtransactionmanager.cpp
+ trackpickerdialog.cpp
+ trackpickerdialogbase.ui
+ tracksequenceiterator.cpp
+ tracksequencemanager.cpp
+ treeviewitemplaylist.cpp
+ upcomingplaylist.cpp
+ ktrm.cpp
+ viewmode.cpp
+ LINK
+ DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared tdehtml-shared tdetexteditor-shared
+ mcop kmedia2_idl soundserver_idl artsflow_idl artskde-shared ${ARTS_LIBRARIES} ${AKODE_LIBRARIES}
+ ${GST_LIBRARIES} ${TAGLIB_LIBRARIES} ${MB_LIBRARIES} m
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### tagguessertest (check program) ############
+
+tde_add_check_executable( tagguessertest AUTOMOC
+ SOURCES
+ tagguessertest.cpp tagguesser.cpp
+ LINK
+ DCOP tdecore-shared tdeui-shared tdefx-shared tdeio-shared tdetexteditor-shared
+ mcop kmedia2_idl soundserver_idl artsflow_idl
+)
+
+
+##### other data ################################
+
+install( FILES juk.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+install( FILES jukui.rc jukui-rtl.rc DESTINATION ${DATA_INSTALL_DIR}/juk )
+install( FILES jukservicemenu.desktop DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus )
diff --git a/juk/ConfigureChecks.cmake b/juk/ConfigureChecks.cmake
new file mode 100644
index 00000000..191f0554
--- /dev/null
+++ b/juk/ConfigureChecks.cmake
@@ -0,0 +1,39 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+if( WITH_GSTREAMER )
+ pkg_search_module( GST gstreamer-1.0>=1.0.0 gstreamer-0.10>=0.10.0 gstreamer-0.8>=0.8.0 )
+ if( NOT GST_FOUND )
+ tde_message_fatal( "gstreamer is requested, but not found on your system" )
+ endif( )
+ set( HAVE_GSTREAMER 1 CACHE INTERNAL "" FORCE )
+endif( WITH_GSTREAMER )
+
+
+if( WITH_MUSICBRAINZ )
+ check_include_file( tunepimp-0.5/tp_c.h HAVE_TUNEPIMP_H )
+ if( NOT HAVE_TUNEPIMP_H )
+ tde_message_fatal( "tunepimp is requested, but not found on your system" )
+ endif( )
+ check_library_exists( tunepimp tp_SetTRMCollisionThreshold "" HAVE_TUNEPIMP_5 )
+ if( HAVE_TUNEPIMP_5 )
+ tde_message_fatal( "tunepimp is requested, but found tunepimp5 that is not supported" )
+ endif( )
+ check_library_exists( tunepimp tp_SetFileNameEncoding "" HAVE_TUNEPIMP_4 )
+ if( HAVE_TUNEPIMP_4 )
+ set( HAVE_MUSICBRANINZ 4 CACHE INTERNAL "" FORCE )
+ else( )
+ set( HAVE_MUSICBRANINZ 1 CACHE INTERNAL "" FORCE )
+ endif( )
+ set( MUSICBRAINZ_LIBRARIES tunepimp )
+else( WITH_MUSICBRAINZ )
+ set( HAVE_MUSICBRANINZ 0 CACHE INTERNAL "" FORCE )
+endif( WITH_MUSICBRAINZ )
diff --git a/juk/pics/CMakeLists.txt b/juk/pics/CMakeLists.txt
new file mode 100644
index 00000000..43ac8c36
--- /dev/null
+++ b/juk/pics/CMakeLists.txt
@@ -0,0 +1,15 @@
+#################################################
+#
+# (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 playing.png splash.png yahoo_credit.png
+ DESTINATION ${DATA_INSTALL_DIR}/juk/pics
+)