diff options
author | Slávek Banko <[email protected]> | 2017-03-26 15:58:46 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2017-03-26 15:59:04 +0200 |
commit | efcdd889254fc98314dd48854d50e90aa21e53c0 (patch) | |
tree | 5dc7034c23a5a18ca31d90225137f5eeaec809c4 /krec | |
parent | 25709e498d5832125f5f584bd10e3c66d05ec5ee (diff) | |
download | tdemultimedia-efcdd889254fc98314dd48854d50e90aa21e53c0.tar.gz tdemultimedia-efcdd889254fc98314dd48854d50e90aa21e53c0.zip |
Initial cmake conversion
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit 8b12682035e2ae92a29a9ce12abc5fbcf38b1192)
Diffstat (limited to 'krec')
-rw-r--r-- | krec/CMakeLists.txt | 119 | ||||
-rw-r--r-- | krec/krecexport_wave.cpp | 22 | ||||
-rw-r--r-- | krec/mp3_export/CMakeLists.txt | 50 | ||||
-rw-r--r-- | krec/ogg_export/CMakeLists.txt | 50 | ||||
-rw-r--r-- | krec/pics/CMakeLists.txt | 12 |
5 files changed, 242 insertions, 11 deletions
diff --git a/krec/CMakeLists.txt b/krec/CMakeLists.txt new file mode 100644 index 00000000..298d4877 --- /dev/null +++ b/krec/CMakeLists.txt @@ -0,0 +1,119 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_conditional_add_subdirectory( WITH_LAME mp3_export ) +tde_conditional_add_subdirectory( WITH_VORBIS ogg_export ) +add_subdirectory( pics ) +tde_install_icons( krec ) + +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/arts/gui/common + ${CMAKE_BINARY_DIR}/arts/midi + ${CMAKE_BINARY_DIR}/arts/modules/common + ${CMAKE_BINARY_DIR}/arts/modules/effects + ${CMAKE_BINARY_DIR}/arts/modules/synth + ${CMAKE_SOURCE_DIR}/arts/gui/kde + ${CMAKE_SOURCE_DIR}/arts/tools + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTSC_LIBRARY_DIRS} +) + + +##### krec_commont (library) #################### + +tde_add_library( krec_common STATIC_PIC AUTOMOC + SOURCES + krecglobal.cpp + krecexport_template.cpp + krecconfig_fileswidget.cpp +) + + +##### krec (tdeinit) ############################ + +tde_add_tdeinit_executable( krec AUTOMOC + SOURCES + krecnewproperties.cpp + krecfile.cpp + krecfileview.cpp + krecfileviewhelpers.cpp + krecfilewidgets.cpp + main.cpp + krecord.cpp + LINK + DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared + tdeutils-shared tdetexteditor-shared + mcop kmedia2_idl soundserver_idl artsflow_idl + artsmoduleseffects-shared artscontrolsupport-shared artsgui_kde-shared + krec_common-static ${DL_LIBRARIES} artskde-shared + ${ARTSC_LIBRARIES} pthread +) + + +##### kcm_krec (module) ######################### + +tde_add_kpart( kcm_krec AUTOMOC + SOURCES + krecconfigure.cpp + LINK + DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared + tdeutils-shared tdetexteditor-shared + mcop kmedia2_idl soundserver_idl artsflow_idl artsmoduleseffects-shared + krec_common-static + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### kcm_krec_files (module) ################### + +tde_add_kpart( kcm_krec_files AUTOMOC + SOURCES + krecconfig_files.cpp + LINK + DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared + tdeutils-shared tdetexteditor-shared + mcop kmedia2_idl soundserver_idl artsflow_idl artsmoduleseffects-shared + krec_common-static + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### libkrecexport_wave (module) ############### + +tde_add_kpart( libkrecexport_wave AUTOMOC + SOURCES + krecexport_wave.cpp + LINK + DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared + tdeutils-shared tdetexteditor-shared + mcop kmedia2_idl soundserver_idl artsflow_idl artsmoduleseffects-shared + krec_common-static + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES krec.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) +install( FILES krecui.rc DESTINATION ${DATA_INSTALL_DIR}/krec ) +install( FILES kcm_krec.desktop kcm_krec_files.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES tips DESTINATION ${DATA_INSTALL_DIR}/krec ) +install( FILES krec_exportitem.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} ) +install( FILES krec_exportwave.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) diff --git a/krec/krecexport_wave.cpp b/krec/krecexport_wave.cpp index 47fb0470..64e25649 100644 --- a/krec/krecexport_wave.cpp +++ b/krec/krecexport_wave.cpp @@ -97,17 +97,17 @@ kdDebug( 60005 ) << k_funcinfo << endl; // Basic 16b,2c,44kHz Wave-Header char riffHeader[] = { - 0x52, 0x49, 0x46, 0x46, // 0 "AIFF" - 0x00, 0x00, 0x00, 0x00, // 4 wavSize - 0x57, 0x41, 0x56, 0x45, // 8 "WAVE" - 0x66, 0x6d, 0x74, 0x20, // 12 "fmt " - 0x10, 0x00, 0x00, 0x00, // 16 - 0x01, 0x00, 0x02, 0x00, // 20 - 0x44, 0xac, 0x00, 0x00, // 24 - 0x10, 0xb1, 0x02, 0x00, // 28 - 0x04, 0x00, 0x10, 0x00, // 32 - 0x64, 0x61, 0x74, 0x61, // 36 "data" - 0x00, 0x00, 0x00, 0x00 // 40 byteCount + '\x52', '\x49', '\x46', '\x46', // 0 "AIFF" + '\x00', '\x00', '\x00', '\x00', // 4 wavSize + '\x57', '\x41', '\x56', '\x45', // 8 "WAVE" + '\x66', '\x6d', '\x74', '\x20', // 12 "fmt " + '\x10', '\x00', '\x00', '\x00', // 16 + '\x01', '\x00', '\x02', '\x00', // 20 + '\x44', '\xac', '\x00', '\x00', // 24 + '\x10', '\xb1', '\x02', '\x00', // 28 + '\x04', '\x00', '\x10', '\x00', // 32 + '\x64', '\x61', '\x74', '\x61', // 36 "data" + '\x00', '\x00', '\x00', '\x00' // 40 byteCount }; long wavSize = _file->size() - 8; diff --git a/krec/mp3_export/CMakeLists.txt b/krec/mp3_export/CMakeLists.txt new file mode 100644 index 00000000..13850c31 --- /dev/null +++ b/krec/mp3_export/CMakeLists.txt @@ -0,0 +1,50 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/arts/gui/common + ${CMAKE_BINARY_DIR}/arts/midi + ${CMAKE_BINARY_DIR}/arts/modules/common + ${CMAKE_BINARY_DIR}/arts/modules/effects + ${CMAKE_BINARY_DIR}/arts/modules/synth + ${CMAKE_SOURCE_DIR}/arts/gui/kde + ${CMAKE_SOURCE_DIR}/arts/tools + ${CMAKE_SOURCE_DIR}/krec + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### libkrecexport_mp3 (module) ################ + +tde_add_kpart( libkrecexport_mp3 AUTOMOC + SOURCES + krecexport_mp3.cpp + LINK + DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared tdeutils-shared + mcop kmedia2_idl soundserver_idl artsflow_idl artsmoduleseffects-shared + krec_common-static ${LAME_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES krec_exportmp3.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) diff --git a/krec/ogg_export/CMakeLists.txt b/krec/ogg_export/CMakeLists.txt new file mode 100644 index 00000000..dc153def --- /dev/null +++ b/krec/ogg_export/CMakeLists.txt @@ -0,0 +1,50 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/arts/gui/common + ${CMAKE_BINARY_DIR}/arts/midi + ${CMAKE_BINARY_DIR}/arts/modules/common + ${CMAKE_BINARY_DIR}/arts/modules/effects + ${CMAKE_BINARY_DIR}/arts/modules/synth + ${CMAKE_SOURCE_DIR}/arts/gui/kde + ${CMAKE_SOURCE_DIR}/arts/tools + ${CMAKE_SOURCE_DIR}/krec + ${ARTS_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### libkrecexport_ogg (module) ################ + +tde_add_kpart( libkrecexport_ogg AUTOMOC + SOURCES + krecexport_ogg.cpp + LINK + DCOP-shared tdecore-shared tdeui-shared tdefx-shared tdeio-shared tdeutils-shared + mcop kmedia2_idl soundserver_idl artsflow_idl artsmoduleseffects-shared + krec_common-static ${OGG_LIBRARIES} ${VORBIS_LIBRARIES} ${VORBISENC_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES krec_exportogg.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) diff --git a/krec/pics/CMakeLists.txt b/krec/pics/CMakeLists.txt new file mode 100644 index 00000000..6a286d9b --- /dev/null +++ b/krec/pics/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/krec/icons ) |