diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2017-03-26 15:58:46 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2017-03-26 15:59:04 +0200 |
commit | efcdd889254fc98314dd48854d50e90aa21e53c0 (patch) | |
tree | 5dc7034c23a5a18ca31d90225137f5eeaec809c4 /mpeglib/example | |
parent | 25709e498d5832125f5f584bd10e3c66d05ec5ee (diff) | |
download | tdemultimedia-efcdd889254fc98314dd48854d50e90aa21e53c0.tar.gz tdemultimedia-efcdd889254fc98314dd48854d50e90aa21e53c0.zip |
Initial cmake conversion
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 8b12682035e2ae92a29a9ce12abc5fbcf38b1192)
Diffstat (limited to 'mpeglib/example')
-rw-r--r-- | mpeglib/example/CMakeLists.txt | 16 | ||||
-rw-r--r-- | mpeglib/example/cddaplay/CMakeLists.txt | 31 | ||||
-rw-r--r-- | mpeglib/example/mpgplay/CMakeLists.txt | 31 | ||||
-rw-r--r-- | mpeglib/example/splay/CMakeLists.txt | 39 | ||||
-rw-r--r-- | mpeglib/example/tplay/CMakeLists.txt | 31 | ||||
-rw-r--r-- | mpeglib/example/yaf/CMakeLists.txt | 19 | ||||
-rw-r--r-- | mpeglib/example/yaf/yafcdda/CMakeLists.txt | 32 | ||||
-rw-r--r-- | mpeglib/example/yaf/yafcore/CMakeLists.txt | 55 | ||||
-rw-r--r-- | mpeglib/example/yaf/yafcore/inputInterface.cpp | 8 | ||||
-rw-r--r-- | mpeglib/example/yaf/yafmpgplay/CMakeLists.txt | 32 | ||||
-rw-r--r-- | mpeglib/example/yaf/yafsplay/CMakeLists.txt | 32 | ||||
-rw-r--r-- | mpeglib/example/yaf/yaftplay/CMakeLists.txt | 32 | ||||
-rw-r--r-- | mpeglib/example/yaf/yafvorbis/CMakeLists.txt | 32 | ||||
-rw-r--r-- | mpeglib/example/yaf/yafxplayer/CMakeLists.txt | 53 | ||||
-rw-r--r-- | mpeglib/example/yaf/yafyuv/CMakeLists.txt | 32 |
15 files changed, 475 insertions, 0 deletions
diff --git a/mpeglib/example/CMakeLists.txt b/mpeglib/example/CMakeLists.txt new file mode 100644 index 00000000..1c46cd94 --- /dev/null +++ b/mpeglib/example/CMakeLists.txt @@ -0,0 +1,16 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( cddaplay ) +add_subdirectory( mpgplay ) +add_subdirectory( splay ) +add_subdirectory( tplay ) +add_subdirectory( yaf ) diff --git a/mpeglib/example/cddaplay/CMakeLists.txt b/mpeglib/example/cddaplay/CMakeLists.txt new file mode 100644 index 00000000..1ffecb0e --- /dev/null +++ b/mpeglib/example/cddaplay/CMakeLists.txt @@ -0,0 +1,31 @@ +################################################# +# +# (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} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### cddaplay (executable) ##################### + +tde_add_executable( cddaplay + SOURCES cddaplay.cpp + LINK mpeg-shared +) diff --git a/mpeglib/example/mpgplay/CMakeLists.txt b/mpeglib/example/mpgplay/CMakeLists.txt new file mode 100644 index 00000000..7ef2188c --- /dev/null +++ b/mpeglib/example/mpgplay/CMakeLists.txt @@ -0,0 +1,31 @@ +################################################# +# +# (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} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### mpgplay (executable) ###################### + +tde_add_executable( mpgplay + SOURCES mpgplay.cpp + LINK mpeg-shared +) diff --git a/mpeglib/example/splay/CMakeLists.txt b/mpeglib/example/splay/CMakeLists.txt new file mode 100644 index 00000000..d7292f79 --- /dev/null +++ b/mpeglib/example/splay/CMakeLists.txt @@ -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 +# +################################################# + +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### splay (executable) ######################## + +tde_add_executable( splay + SOURCES splay.cpp + LINK mpeg-shared +) + + +##### mp3framing (executable) ################### + +tde_add_executable( mp3framing + SOURCES mp3framing.cpp + LINK mpeg-shared +) diff --git a/mpeglib/example/tplay/CMakeLists.txt b/mpeglib/example/tplay/CMakeLists.txt new file mode 100644 index 00000000..06f25e99 --- /dev/null +++ b/mpeglib/example/tplay/CMakeLists.txt @@ -0,0 +1,31 @@ +################################################# +# +# (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} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### tplay (executable) ######################## + +tde_add_executable( tplay + SOURCES tplay.cpp + LINK mpeg-shared +) diff --git a/mpeglib/example/yaf/CMakeLists.txt b/mpeglib/example/yaf/CMakeLists.txt new file mode 100644 index 00000000..1991ff3e --- /dev/null +++ b/mpeglib/example/yaf/CMakeLists.txt @@ -0,0 +1,19 @@ +################################################# +# +# (C) 2017 Slávek Banko +# slavek (DOT) banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( yafcdda ) +add_subdirectory( yafcore ) +add_subdirectory( yafmpgplay ) +add_subdirectory( yafsplay ) +add_subdirectory( yaftplay ) +add_subdirectory( yafvorbis ) +add_subdirectory( yafxplayer ) +add_subdirectory( yafyuv ) diff --git a/mpeglib/example/yaf/yafcdda/CMakeLists.txt b/mpeglib/example/yaf/yafcdda/CMakeLists.txt new file mode 100644 index 00000000..5579f599 --- /dev/null +++ b/mpeglib/example/yaf/yafcdda/CMakeLists.txt @@ -0,0 +1,32 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### yaf-cdda (executable) ##################### + +tde_add_executable( yaf-cdda + SOURCES cdda_control.cpp + LINK + yafcore-shared yafxplayer-shared + mpeg-shared + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/mpeglib/example/yaf/yafcore/CMakeLists.txt b/mpeglib/example/yaf/yafcore/CMakeLists.txt new file mode 100644 index 00000000..1e0abe1b --- /dev/null +++ b/mpeglib/example/yaf/yafcore/CMakeLists.txt @@ -0,0 +1,55 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### yafcore (library) ######################### + +tde_add_library( yafcore SHARED + SOURCES + buffer.cpp + lineStack.cpp + commandLine.cpp + parser.cpp + outputInterface.cpp + inputInterface.cpp + commandTable.cpp + commandTableYAF.cpp + runtimeTableYAF.cpp + inputDecoder.cpp + outputDecoder.cpp + yaf_control.cpp + multiReader.cpp + LINK + tdefakes-shared + mpeg-shared + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### other data ################################ + +install( + FILES + inputInterface.h outputInterface.h + buffer.h inputDecoder.h yaf_control.h + DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/util/yaf/yafcore +) diff --git a/mpeglib/example/yaf/yafcore/inputInterface.cpp b/mpeglib/example/yaf/yafcore/inputInterface.cpp index 455ddd40..c5beaeda 100644 --- a/mpeglib/example/yaf/yafcore/inputInterface.cpp +++ b/mpeglib/example/yaf/yafcore/inputInterface.cpp @@ -75,7 +75,11 @@ int InputInterface::write(int fd,const char* txt) { snprintf(loopback->getData(),300, "Command:41 Msg:%s",txt); } else { +#if defined(HAVE_STRLCPY) || defined(HAVE_STRLCPY_PROTO) strlcpy(loopback->getData(),txt, loopback->getSize()); +#else + strncpy(loopback->getData(),txt, loopback->getSize()); +#endif } len =loopback->len(); back=::write(fd,loopback->getData(),len); @@ -136,7 +140,11 @@ void InputInterface::makeValidLine(char* line) { "Command:%d Msg:%s",currentCommandNumber,line); } else { increaseCurrentCommandNumber(); +#if defined(HAVE_STRLCPY) || defined(HAVE_STRLCPY_PROTO) strlcpy(currentLine->getData(),line, currentLine->getSize()); +#else + strncpy(currentLine->getData(),line, currentLine->getSize()); +#endif } return; diff --git a/mpeglib/example/yaf/yafmpgplay/CMakeLists.txt b/mpeglib/example/yaf/yafmpgplay/CMakeLists.txt new file mode 100644 index 00000000..5692823d --- /dev/null +++ b/mpeglib/example/yaf/yafmpgplay/CMakeLists.txt @@ -0,0 +1,32 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### yaf-mpgplay (executable) ################## + +tde_add_executable( yaf-mpgplay + SOURCES mpg_control.cpp + LINK + yafcore-shared yafxplayer-shared + mpeg-shared + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/mpeglib/example/yaf/yafsplay/CMakeLists.txt b/mpeglib/example/yaf/yafsplay/CMakeLists.txt new file mode 100644 index 00000000..78509009 --- /dev/null +++ b/mpeglib/example/yaf/yafsplay/CMakeLists.txt @@ -0,0 +1,32 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### yaf-splay (executable) #################### + +tde_add_executable( yaf-splay + SOURCES splay_control.cpp + LINK + yafcore-shared yafxplayer-shared + mpeg-shared + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/mpeglib/example/yaf/yaftplay/CMakeLists.txt b/mpeglib/example/yaf/yaftplay/CMakeLists.txt new file mode 100644 index 00000000..eeb05ea8 --- /dev/null +++ b/mpeglib/example/yaf/yaftplay/CMakeLists.txt @@ -0,0 +1,32 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### yaf-tplay (executable) #################### + +tde_add_executable( yaf-tplay + SOURCES tplay_control.cpp + LINK + yafcore-shared yafxplayer-shared + mpeg-shared + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/mpeglib/example/yaf/yafvorbis/CMakeLists.txt b/mpeglib/example/yaf/yafvorbis/CMakeLists.txt new file mode 100644 index 00000000..bc223991 --- /dev/null +++ b/mpeglib/example/yaf/yafvorbis/CMakeLists.txt @@ -0,0 +1,32 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### yaf-vorbis (executable) ################### + +tde_add_executable( yaf-vorbis + SOURCES vorbis_control.cpp + LINK + yafcore-shared yafxplayer-shared + mpeg-shared + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/mpeglib/example/yaf/yafxplayer/CMakeLists.txt b/mpeglib/example/yaf/yafxplayer/CMakeLists.txt new file mode 100644 index 00000000..95f2c5b3 --- /dev/null +++ b/mpeglib/example/yaf/yafxplayer/CMakeLists.txt @@ -0,0 +1,53 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + +add_definitions( + -DDIRECT_INCLUDE +) + + +##### yafplayer (library) ####################### + +tde_add_library( yafxplayer SHARED + SOURCES + commandTableXPlayer.cpp + inputDecoderXPlayer.cpp + xplayer_control.cpp + runtimeTableXPlayer.cpp + inputDecoderYAF.cpp + yafOutputStream.cpp + LINK + yafcore-shared + mpeg-shared + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### other data ################################ + +install( + FILES + inputDecoderYAF.h + inputDecoderXPlayer.h + yafOutputStream.h + DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/util/yaf/yafxplayer +) diff --git a/mpeglib/example/yaf/yafyuv/CMakeLists.txt b/mpeglib/example/yaf/yafyuv/CMakeLists.txt new file mode 100644 index 00000000..37c6b622 --- /dev/null +++ b/mpeglib/example/yaf/yafyuv/CMakeLists.txt @@ -0,0 +1,32 @@ +################################################# +# +# (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_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### yaf-yuv (executable) ###################### + +tde_add_executable( yaf-yuv + SOURCES yuv_control.cpp + LINK + yafcore-shared yafxplayer-shared + mpeg-shared + DESTINATION ${BIN_INSTALL_DIR} +) |