Initial cmake conversion

pull/1/head
Alexander Golubev 7 years ago committed by Slávek Banko
parent e084ed4c7d
commit 737e53d58c

@ -0,0 +1,169 @@
#################################################
#
# (C) 2016 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
cmake_minimum_required( VERSION 2.8 )
##### general package setup #####################
project( k3b )
##### include essential cmake modules ###########
include( FindPkgConfig )
include( CheckIncludeFile )
include( CheckLibraryExists )
include( CheckSymbolExists )
# EXAMPLE:
# include( CheckTypeSize )
# include( CheckCSourceCompiles )
# include( CheckCXXSourceCompiles )
##### 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_ALL_OPTIONS "Enable all sane supported options" OFF )
option( WITH_LIBDVDREAD "Enable support for libdvdread" ${WITH_ALL_OPTIONS} )
option( WITH_MUSICBRAINZ "Enable Musicbrainz support" ${WITH_ALL_OPTIONS} )
option( WITH_SYSTEM_LIBSAMPLERATE
"Use system libsamplerate instead of bundled one" ON )
option( WITH_HAL "Enable hal support" OFF )
option( WITH_DEBUG "Enable extra debug" OFF )
# sound output plugins
option( WITH_ALSA "Enable alsa support" ${WITH_ALL_OPTIONS} )
option( WITH_ARTS "Enable arts sound daemon support" ${WITH_ALL_OPTIONS} )
# decoder plugins
option( WITH_FFMPEG "Enable support for decoding with ffmpeg" ${WITH_ALL_OPTIONS} )
option( WITH_FFMPEG_ALL_CODECS "Enable support for all codecs provided by ffmpeg" OFF )
option( WITH_FLAC "Enable support for decoding flac files" ${WITH_ALL_OPTIONS} )
option( WITH_SNDFILE "Enable support for decoding via libsndfile" ${WITH_ALL_OPTIONS} )
option( WITH_TAGLIB "Enable support for taglib" ${WITH_ALL_OPTIONS} )
option( WITH_MAD "Enable support for decoding mp3 via libmad" ${WITH_ALL_OPTIONS} )
option( WITH_MUSEPACK "Enable support for decoding via musepack (mpcdec)" OFF )
option( WITH_VORBIS "Enable support for en/decoding ogg via vorbis" ${WITH_ALL_OPTIONS} )
# Note: WITH_VORBIS enables both decoding and encoding
# Note: wave plugin build unconditionally due to it doesn't have any external deps
# Note: k3b requires some acient version of musepack
# encoder plugins
option( WITH_LAME "Enable support for mp3 encoding via lame" ${WITH_ALL_OPTIONS} )
# see WITH_VORBIS
# Note: external and sox plugins are enabled by default due to they don't have
# any additional build-time deps
# Note: permanently disabled options:
# resmgr - it seams to be completly outdated
# cdrecord-suid-root - commented out in source code anyway
# cam library - freebsd stuff should be added by somebody with bsd
# experience
##### options comments ##########################
# WITH_LIBDVDREAD if disabled removes dvd reaping functionality
# requires libdvdread: http://dvdnav.mplayerhq.hu/
# WITH_MUSICBRAINZ if enabled adds support for musicbrainz service for
# query metadata about audio cds
# requires media-libs/musicbrainz library: http://musicbrainz.org/doc/libmusicbrainz
# WITH_SYSTEM_LIBSAMPLERATE if disabled the bundled version of libsamplerate
# is used and staticaly linked into the k3b
# requires media-libs/libsamplerate: http://www.mega-nerd.com/SRC/
# WITH_HAL if enabled use of hal daemon instead of libtdehw for
# device management
# depricated
# WITH_DEBUG if enabled extra debug output is provided
# WITH_ALSA if enabled build the alsa output driver; it's a good
# idea to enable it on a linux othervice sound playback
# may fallback to arts
# WITH_ARTS if disabled disables fuctionality to play audio (files
# or CDs, not sure exactly)
# requires arts (an optional part of TDE)
# WITH_FFMPEG if enabled build an ffmpeg decoding plugin
# requires ffmpeg
# WITH_FFMPEG_ALL_CODECS
# affects ffmpeg plugin
# if enabled makes ffmpeg to decode all formats is
# supports; this is untested and may result in some
# bugs: e.g. display of wrong length
# WITH_FLAC if enabled build flac decoding plugin
# requires media-sound/flac: http://flac.sourceforge.net
# WITH_LAME if enabled build mp3 encoding file via lame
# requires media-sound/lame: http://lame.sourceforge.net/
# WITH_TAGLIB if enabled provides support for tags in mp3 and flac
# requires media-libs/taglib: https://taglib.github.io/
# note: make sence if either WITH_FLAC or WITH_LIBMAD is set
# WITH_SNDFILE if enabled build libsndfile encoding plugin
# requires media-libs/libsndfile: http://www.mega-nerd.com/libsndfile
# WITH_MAD if enabled build mp3 decoding plugin
# requires media-libs/libmad: http://mad.sourceforge.net
# WITH_MUSEPACK if enabled build musepack decoding plugin
# requires musepack (libmpcdec): http://www.musepack.net
# WARNING k3b requires some acient version of musepack
# WITH_VORBIS if enabled build ogg encoding/decoding plugin
# requires media-libs/libvorbis: http://xiph.org/vorbis
##### user requested modules ####################
option( BUILD_K3BSETUP "Build K3bSetup2 TDEControl module" OFF )
option( BUILD_DOC "Build documentation" ON )
# option( BUILD_TRANSLATIONS "Build translations" ON )
# Note: probably modern linux systems don't need BUILD_K3BSETUP; so it's
# disabled by default
##### configure checks ##########################
include( ConfigureChecks.cmake )
###### global compiler settings #################
add_definitions(
-DHAVE_CONFIG_H
)
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
##### k3b directories ###########################
add_subdirectory( libk3b )
add_subdirectory( libk3bdevice )
add_subdirectory( plugins )
add_subdirectory( src )
add_subdirectory( tdefile-plugins )
add_subdirectory( tdeioslaves )
tde_conditional_add_subdirectory( BUILD_K3BSETUP k3bsetup )
tde_conditional_add_subdirectory( BUILD_DOC doc )
##### write configure files #####################
configure_file( config.h.cmake config.h @ONLY )

@ -0,0 +1,239 @@
#################################################
#
# (C) 2016 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
##### check for gcc visibility support #########
# FIXME
# This should check for [T]Qt3 visibility support
if( WITH_GCC_VISIBILITY )
if( NOT UNIX )
tde_message_fatal(FATAL_ERROR "\ngcc visibility support was requested, but your system is not *NIX" )
endif( NOT UNIX )
set( __KDE_HAVE_GCC_VISIBILITY 1 )
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
endif( WITH_GCC_VISIBILITY )
tde_setup_architecture_flags( )
# Check system configuration
check_include_file ( "iconv.h" HAVE_ICONV_H )
check_include_file ( "endian.h" HAVE_ENDIAN_H )
check_include_file ( "sys/endian.h" HAVE_SYS_ENDIAN_H )
check_include_file ( "sys/statvfs.h" HAVE_SYS_STATVFS_H )
check_include_file ( "sys/vfs.h" HAVE_SYS_VFS_H )
check_include_file ( "byteswap.h" HAVE_BYTESWAP_H )
check_include_file ( "stdint.h" HAVE_STDINT_H )
check_symbol_exists ( lrint "math.h" HAVE_LRINT )
check_symbol_exists ( lrintf "math.h" HAVE_LRINTF )
check_symbol_exists ( stat64 "sys/types.h;sys/stat.h;unistd.h" HAVE_STAT64 )
##### k3bsetup ##################################
if ( WITH_K3BSETUP )
set ( HAVE_K3BSETUP 1 )
endif ( )
##### k3b_debug #################################
if ( WITH_DEBUG )
set ( K3B_DEBUG 1 )
endif ( )
##### libdvdread ################################
if ( WITH_LIBDVDREAD )
pkg_search_module ( LIBDVDREAD dvdread REQUIRED )
if ( LIBDVDREAD_FOUND )
set ( HAVE_LIBDVDREAD 1 )
else ( )
tde_message_fatal( "libdvdread is required, but was not found on your system" )
endif ( )
endif ( )
##### musicbrainz ###############################
if ( WITH_MUSICBRAINZ )
pkg_search_module ( MUSICBRAINZ libmusicbrainz )
if ( MUSICBRAINZ_FOUND )
set ( HAVE_MUSICBRAINZ 1 )
else ( )
tde_message_fatal( "musicbrainz is required, but was not found on your system" )
endif ( )
endif ( )
##### libsamplerate #############################
if ( WITH_SYSTEM_LIBSAMPLERATE )
pkg_search_module ( LIBSAMPLERATE samplerate )
if ( LIBSAMPLERATE_FOUND )
set ( HAVE_LIBSAMPLERATE 1 )
else ( )
tde_message_fatal( "libsamplerate is required, but was not found on your system" )
endif ( )
endif ( )
##### hal #######################################
if( WITH_HAL )
pkg_search_module( HAL hal )
if( HAL_FOUND )
set ( HAVE_HAL 1 )
else ( )
tde_message_fatal( "hal is required, but was not found on your system" )
endif( )
endif( )
##### arts ######################################
if( WITH_ARTS )
pkg_search_module( ARTS arts )
if( NOT ARTS_FOUND )
tde_message_fatal( "aRts is requested, but was not found on your system" )
endif( )
endif( )
##### check for ALSA ############################
if( WITH_ALSA )
find_package( ALSA )
if( NOT ALSA_FOUND )
message(FATAL_ERROR "\nALSA support is requested, but was not found on your system" )
endif( NOT ALSA_FOUND )
endif( WITH_ALSA )
##### ffmpeg ####################################
if( WITH_FFMPEG )
pkg_search_module( LIBAVCODEC libavcodec )
pkg_search_module( LIBAVFORMAT libavformat )
pkg_search_module( LIBAVUTIL libavutil )
# TODO chech if avutil required on all systems
if( NOT LIBAVCODEC_FOUND )
tde_message_fatal( "ffmpeg is requested, but libavcodec was not found on your system" )
elseif( NOT LIBAVFORMAT_FOUND )
tde_message_fatal( "ffmpeg is requested, but libavformat was not found on your system" )
else( )
if( WITH_FFMPEG_ALL_CODECS )
set( K3B_FFMPEG_ALL_CODECS 1 )
endif( )
endif( )
endif( )
##### flac ######################################
if( WITH_FLAC )
pkg_search_module( FLAC flac++ )
if( NOT FLAC_FOUND )
tde_message_fatal( "flac is requested, but was not found on your system" )
endif( )
endif( )
##### sndfile ###################################
if( WITH_SNDFILE )
pkg_search_module( SNDFILE sndfile )
if( NOT SNDFILE_FOUND )
tde_message_fatal( "sndfile is requested, but was not found on your system" )
endif( )
endif( )
##### taglib ####################################
if( WITH_TAGLIB )
pkg_search_module( TAGLIB taglib )
if( NOT TAGLIB_FOUND )
tde_message_fatal( "taglib is requested, but was not found on your system" )
endif( )
endif( )
##### mad #######################################
if( WITH_MAD )
pkg_search_module( MAD mad )
if( NOT MAD_FOUND )
tde_message_fatal( "mad is requested, but was not found on your system" )
endif( )
endif( )
##### musepack ##################################
if( WITH_MUSEPACK )
check_library_exists ( mpcdec mpc_decoder_setup "" MPCDEC_FOUND )
# check common include locations
foreach ( _mpc_dir "mpc" "musepack" "mpcdec" )
check_include_file( "${_mpc_dir}/mpcdec.h" ${_mpc_dir}_MPCDEC_H_FOUND )
if ( ${${_mpc_dir}_MPCDEC_H_FOUND} )
set( MPCDEC_HEADER_FILE "<${_mpc_dir}/mpcdec.h>" CACHE INTERNAL
"mpcdec.h header file with an upper level directory")
break( )
endif( )
endforeach( )
if( NOT MPCDEC_FOUND OR NOT MPCDEC_HEADER_FILE )
tde_message_fatal( "musepack is requested, but mpcdec was not found on your system" )
endif( )
endif( )
##### vorbis ####################################
if( WITH_VORBIS )
pkg_search_module( VORBIS vorbis )
pkg_search_module( VORBISFILE vorbisfile )
pkg_search_module( VORBISENC vorbisenc )
pkg_search_module( OGG ogg )
if( NOT VORBIS_FOUND )
tde_message_fatal( "vorbis is requested, but was not found on your system" )
elseif( NOT VORBISFILE_FOUND OR NOT VORBISENC_FOUND OR NOT OGG_FOUND )
tde_message_fatal( "vorbis is requested, but some of it's essential parts wasn't found on your system" )
endif( )
endif( )
##### lame ######################################
if( WITH_LAME )
check_library_exists ( mp3lame lame_init "" LAME_FOUND )
check_include_file( "lame/lame.h" LAME_H_FOUND )
if( NOT LAME_FOUND OR NOT LAME_H_FOUND )
tde_message_fatal( "lame is requested, but was not found on your system" )
endif( )
endif( )
# # gettext
# if( BUILD_TRANSLATIONS )
# include( FindGettext )
# if( GETTEXT_FOUND )
# set( MSGFMT_EXECUTABLE ${GETTEXT_MSGFMT_EXECUTABLE}
# CACHE FILEPATH "path to msgfmt executable" )
# endif( GETTEXT_FOUND )
#
# if( NOT MSGFMT_EXECUTABLE )
# tde_message_fatal( "msgfmt is required but was not found on your system." )
# endif( NOT MSGFMT_EXECUTABLE )
# endif( BUILD_TRANSLATIONS )
# required stuff
find_package( TQt )
find_package( TDE )

@ -0,0 +1,31 @@
#cmakedefine VERSION "@VERSION@"
// User specified build options
#cmakedefine HAVE_K3BSETUP
#cmakedefine K3B_DEBUG
#cmakedefine HAVE_LIBDVDREAD
#cmakedefine HAVE_LIBSAMPLERATE
#cmakedefine HAVE_MUSICBRAINZ
#cmakedefine WITH_ARTS
#cmakedefine HAVE_HAL
#cmakedefine K3B_FFMPEG_ALL_CODECS
// System configuration
#cmakedefine HAVE_ICONV_H
#cmakedefine HAVE_ENDIAN_H
#cmakedefine HAVE_SYS_ENDIAN_H
#cmakedefine HAVE_SYS_STATVFS_H
#cmakedefine HAVE_SYS_VFS_H
#cmakedefine HAVE_BYTESWAP_H
#cmakedefine HAVE_STDINT_H
#cmakedefine HAVE_LRINT
#cmakedefine HAVE_LRINTF
#cmakedefine HAVE_STAT64
// Don't define HAVE_RESMGR due to it seems to be totally outdated
// #cmakedefine HAVE_RESMGR

@ -0,0 +1,7 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
add_subdirectory( tdeioslave )
##### documentation #############################
tde_create_handbook( DESTINATION k3b )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
add_subdirectory( en )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
add_subdirectory( videodvd )

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION tdeioslave/videodvd )

@ -0,0 +1,47 @@
#################################################
#
# (C) 2016 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/libk3b/core
${CMAKE_SOURCE_DIR}/libk3b/tools
${CMAKE_SOURCE_DIR}/libk3bdevice
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### kcm_k3bsetup2 (kpart) #####################
tde_add_kpart( kcm_k3bsetup2 AUTOMOC
SOURCES base_k3bsetup2.ui k3bsetup2.cpp
LINK k3b-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### k3bsetup ##################################
install( PROGRAMS k3bsetup
DESTINATION ${BIN_INSTALL_DIR}
)
##### other data ################################
install( FILES k3bsetup2.desktop
DESTINATION ${APPS_INSTALL_DIR}/Settings/System
)

@ -0,0 +1,62 @@
#################################################
#
# (C) 2016 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory( core )
add_subdirectory( plugin )
add_subdirectory( tools )
add_subdirectory( projects )
add_subdirectory( cddb )
add_subdirectory( jobs )
# add_subdirectory( scripts ) # the directory sciped in autotools either
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### k3b (shared) ##############################
if ( WITH_LIBDVDREAD )
add_subdirectory( videodvd )
set ( VIDEODVDRIP_LIBRARIES videodvdrip-static)
endif ( )
# Note: Due to embending into static libraries doesn't work correctly we have
# to embend all the substuff here.
# From plugin
if ( NOT WITH_SYSTEM_LIBSAMPLERATE )
list ( APPEND SUBLIBRARIES samplerate-static )
endif ( )
# From tools
list ( APPEND SUBLIBRARIES isofs-static )
# From projects
list ( APPEND SUBLIBRARIES data-static dvd-static mixed-static vcd-static
videodvd-static movix-static movixdvd-static audio-static mpeginfo-static )
tde_add_library( k3b SHARED AUTOMOC
SOURCES dummy.cpp
VERSION 3.0.0
EMBED k3bcore-static cddb-static k3bproject-static k3btools-static
jobs-static k3bplugin-static ${VIDEODVDRIP_LIBRARIES} ${SUBLIBRARIES}
LINK dl tdeio-shared tdeui-shared k3bdevice-shared
DESTINATION ${LIB_INSTALL_DIR}
)

@ -0,0 +1,36 @@
#################################################
#
# (C) 2016 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/libk3b/core
${CMAKE_SOURCE_DIR}/libk3bdevice
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
add_definitions(
)
##### cddb (static) #############################
tde_add_library( cddb STATIC_PIC AUTOMOC
SOURCES k3bcddbquery.cpp k3bcddb.cpp k3bcddbresult.cpp k3bcddbhttpquery.cpp
k3bcddbpquery.cpp k3bcddblocalquery.cpp k3bcddbsubmit.cpp
k3bcddblocalsubmit.cpp k3bcddbmultientriesdialog.cpp
)

@ -0,0 +1,35 @@
#################################################
#
# (C) 2016 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/libk3bdevice
${CMAKE_SOURCE_DIR}/libk3b/tools
${CMAKE_SOURCE_DIR}/libk3b/plugin
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### k3bcore (static) ##########################
tde_add_library( k3bcore STATIC_PIC AUTOMOC
SOURCES k3bcore.cpp k3bglobals.cpp k3bdefaultexternalprograms.cpp
k3bexternalbinmanager.cpp k3bversion.cpp k3bprocess.cpp k3bjob.cpp
k3bthread.cpp k3bthreadjob.cpp k3bglobalsettings.cpp
k3bsimplejobhandler.cpp
)

@ -0,0 +1,47 @@
#################################################
#
# (C) 2016 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/libk3b/core
${CMAKE_SOURCE_DIR}/libk3b/plugin
${CMAKE_SOURCE_DIR}/libk3b/jobs
${CMAKE_SOURCE_DIR}/libk3b/projects
${CMAKE_SOURCE_DIR}/libk3b/projects/audiocd
${CMAKE_SOURCE_DIR}/libk3b/tools
${CMAKE_SOURCE_DIR}/libk3b/cddb
${CMAKE_SOURCE_DIR}/libk3b/videodvd
${CMAKE_SOURCE_DIR}/libk3bdevice
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### jobs (static) #############################
if ( WITH_LIBDVDREAD )
set ( VIDEODVDRIP_SOURCES k3bvideodvdtitletranscodingjob.cpp
k3bvideodvdtitledetectclippingjob.cpp )
endif ( )
tde_add_library( jobs STATIC_PIC AUTOMOC
SOURCES k3bdatatrackreader.cpp k3breadcdreader.cpp k3bcdcopyjob.cpp
k3bclonejob.cpp k3baudiosessionreadingjob.cpp k3bdvdcopyjob.cpp
k3baudiocuefilewritingjob.cpp k3bbinimagewritingjob.cpp
k3biso9660imagewritingjob.cpp k3bdvdformattingjob.cpp k3bblankingjob.cpp
k3bclonetocreader.cpp k3bverificationjob.cpp ${VIDEODVDRIP_SOURCES}
)

@ -0,0 +1,48 @@
#################################################
#
# (C) 2016 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/libk3b
${CMAKE_SOURCE_DIR}/libk3b/core
${CMAKE_SOURCE_DIR}/libk3bdevice
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
if ( WITH_SYSTEM_LIBSAMPLERATE )
include_directories ( ${LIBSAMPLERATE_INCLUDE_DIRS} )
link_directories ( ${LIBSAMPLERATE_LIBRARY_DIRS} )
else ( )
add_subdirectory( libsamplerate )
include_directories( libsamplerate )
set ( LIBSUMPLERATE_LIBRARIES samplerate-static )
endif ( )
##### k3bplugin (static) ########################
list( APPEND k3bplugin_SOURCES k3bplugin.cpp k3bpluginconfigwidget.cpp k3bpluginmanager.cpp
k3baudiodecoder.cpp k3baudioencoder.cpp k3baudioclient.cpp
k3baudioserver.cpp )
# We have to manually moc the file due to there is no corresponding source
tde_moc( k3bplugin_SOURCES k3bprojectplugin.h )
tde_add_library( k3bplugin STATIC_PIC AUTOMOC
SOURCES ${k3bplugin_SOURCES}
LINK ${LIBSAMPLERATE_LIBRARIES}
)

@ -24,8 +24,6 @@
*/
class LIBK3B_EXPORT K3bAudioOutputPlugin : public K3bPlugin
{
Q_OBJECT
public:
virtual ~K3bAudioOutputPlugin() {

@ -0,0 +1,29 @@
#################################################
#
# (C) 2016 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### samplerate (static) #######################
tde_add_library( samplerate STATIC_PIC AUTOMOC
SOURCES samplerate.c src_sinc.c src_zoh.c src_linear.c
)

@ -0,0 +1,52 @@
#################################################
#
# (C) 2016 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory( datacd )
add_subdirectory( audiocd )
add_subdirectory( mixedcd )
add_subdirectory( movixcd )
add_subdirectory( videocd )
add_subdirectory( datadvd )
add_subdirectory( movixdvd )
add_subdirectory( videodvd )
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/libk3b/core
${CMAKE_SOURCE_DIR}/libk3b/tools
${CMAKE_SOURCE_DIR}/libk3bdevice
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/datacd
${CMAKE_CURRENT_SOURCE_DIR}/audiocd
${CMAKE_CURRENT_SOURCE_DIR}/mixedcd
${CMAKE_CURRENT_SOURCE_DIR}/movixcd
${CMAKE_CURRENT_SOURCE_DIR}/videocd
${CMAKE_CURRENT_SOURCE_DIR}/datadvd
${CMAKE_CURRENT_SOURCE_DIR}/movixdvd
${CMAKE_CURRENT_SOURCE_DIR}/videodvd
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### k3bproject (static) #######################
tde_add_library( k3bproject STATIC_PIC AUTOMOC
SOURCES k3babstractwriter.cpp k3bgrowisofswriter.cpp k3bgrowisofshandler.cpp
k3bdoc.cpp k3bcdrdaowriter.cpp k3bcdrecordwriter.cpp k3binffilewriter.cpp
k3btocfilewriter.cpp k3bimagefilereader.cpp k3bcuefileparser.cpp
k3bpipebuffer.cpp
)

@ -0,0 +1,39 @@
#################################################
#
# (C) 2016 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/libk3b/projects
${CMAKE_SOURCE_DIR}/libk3b/core
${CMAKE_SOURCE_DIR}/libk3b/plugin
${CMAKE_SOURCE_DIR}/libk3b/cddb
${CMAKE_SOURCE_DIR}/libk3bdevice
${CMAKE_SOURCE_DIR}/libk3b/tools
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### audio (static) ############################
tde_add_library( audio STATIC_PIC AUTOMOC
SOURCES k3baudiojob.cpp k3baudiotrack.cpp k3baudiodoc.cpp k3baudiofile.cpp
k3baudiozerodata.cpp k3baudiodatasource.cpp k3baudionormalizejob.cpp
k3baudiojobtempdata.cpp k3baudioimager.cpp k3baudiomaxspeedjob.cpp
k3baudiocdtracksource.cpp k3baudiocdtrackdrag.cpp
k3baudiodatasourceiterator.cpp
)

@ -0,0 +1,38 @@
#################################################
#
# (C) 2016 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/libk3b/core
${CMAKE_SOURCE_DIR}/libk3b/plugin
${CMAKE_SOURCE_DIR}/libk3b/jobs
${CMAKE_SOURCE_DIR}/libk3b/projects
${CMAKE_SOURCE_DIR}/libk3b/tools
${CMAKE_SOURCE_DIR}/libk3bdevice
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### data (static) #############################
tde_add_library( data STATIC_PIC AUTOMOC
SOURCES k3bdatajob.cpp k3bdatadoc.cpp k3bdataitem.cpp k3bdiritem.cpp
k3bfileitem.cpp k3bisoimager.cpp k3bmsinfofetcher.cpp k3bbootitem.cpp
k3bisooptions.cpp k3bfilecompilationsizehandler.cpp
k3bsessionimportitem.cpp k3bmkisofshandler.cpp k3bdatapreparationjob.cpp
)

@ -0,0 +1,35 @@
#################################################
#
# (C) 2016 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/libk3b/core
${CMAKE_SOURCE_DIR}/libk3b/projects/datacd
${CMAKE_SOURCE_DIR}/libk3b/projects
${CMAKE_SOURCE_DIR}/libk3b/tools
${CMAKE_SOURCE_DIR}/libk3b/jobs
${CMAKE_SOURCE_DIR}/libk3bdevice
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### dvd (static) ##############################
tde_add_library( dvd STATIC_PIC AUTOMOC
SOURCES k3bdvddoc.cpp k3bdvdjob.cpp k3bdvdbooktypejob.cpp
)

@ -0,0 +1,35 @@
#################################################
#
# (C) 2016 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/libk3b/core
${CMAKE_SOURCE_DIR}/libk3b/plugin
${CMAKE_SOURCE_DIR}/libk3b/projects
${CMAKE_SOURCE_DIR}/libk3b/projects/datacd
${CMAKE_SOURCE_DIR}/libk3b/projects/audiocd
${CMAKE_SOURCE_DIR}/libk3b/tools
${CMAKE_SOURCE_DIR}/libk3bdevice
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### mixed (static) ############################
tde_add_library( mixed STATIC_PIC AUTOMOC
SOURCES k3bmixeddoc.cpp k3bmixedjob.cpp
)

@ -0,0 +1,37 @@
#################################################
#
# (C) 2016 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/libk3b/core
${CMAKE_SOURCE_DIR}/libk3b/plugin
${CMAKE_SOURCE_DIR}/libk3b/jobs
${CMAKE_SOURCE_DIR}/libk3b/projects
${CMAKE_SOURCE_DIR}/libk3b/projects/datacd
${CMAKE_SOURCE_DIR}/libk3b/tools
${CMAKE_SOURCE_DIR}/libk3bdevice
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### movix (static) ############################
tde_add_library( movix STATIC_PIC AUTOMOC
SOURCES k3bmovixprogram.cpp k3bmovixdoc.cpp k3bmovixjob.cpp
k3bmovixfileitem.cpp k3bmovixdocpreparer.cpp
)

<
@ -0,0 +1,36 @@
#################################################
#
# (C) 2016 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2