From d4a1613e9f119ae68c695ab60f8d9856d1a54a52 Mon Sep 17 00:00:00 2001 From: gregory guy Date: Thu, 27 Jun 2019 16:35:25 +0200 Subject: Conversion to the cmake building system. Add includes to UI files to resolve FTBFS. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: gregory guy Signed-off-by: Slávek Banko --- blinken/CMakeLists.txt | 13 + blinken/fonts/CMakeLists.txt | 4 + blinken/icons/CMakeLists.txt | 1 + blinken/images/CMakeLists.txt | 6 + blinken/images/graphics_sources.tar.gz | Bin 23571 -> 0 bytes blinken/images/graphics_sources/README | 7 + blinken/images/graphics_sources/final_blank.svg | 189 +++++++++ blinken/images/graphics_sources/final_buttons.svg | 487 ++++++++++++++++++++++ blinken/sounds/CMakeLists.txt | 6 + blinken/src/CMakeLists.txt | 51 +++ 10 files changed, 764 insertions(+) create mode 100644 blinken/CMakeLists.txt create mode 100644 blinken/fonts/CMakeLists.txt create mode 100644 blinken/icons/CMakeLists.txt create mode 100644 blinken/images/CMakeLists.txt delete mode 100644 blinken/images/graphics_sources.tar.gz create mode 100644 blinken/images/graphics_sources/README create mode 100644 blinken/images/graphics_sources/final_blank.svg create mode 100644 blinken/images/graphics_sources/final_buttons.svg create mode 100644 blinken/sounds/CMakeLists.txt create mode 100644 blinken/src/CMakeLists.txt (limited to 'blinken') diff --git a/blinken/CMakeLists.txt b/blinken/CMakeLists.txt new file mode 100644 index 00000000..253f2a9a --- /dev/null +++ b/blinken/CMakeLists.txt @@ -0,0 +1,13 @@ +add_subdirectory( src ) +add_subdirectory( images ) +add_subdirectory( icons ) +add_subdirectory( sounds ) +add_subdirectory( fonts ) + + +##### other data + +install( + FILES README.packagers + DESTINATION ${DATA_INSTALL_DIR}/blinken +) diff --git a/blinken/fonts/CMakeLists.txt b/blinken/fonts/CMakeLists.txt new file mode 100644 index 00000000..c44516c4 --- /dev/null +++ b/blinken/fonts/CMakeLists.txt @@ -0,0 +1,4 @@ +install( + FILES steve.ttf + DESTINATION ${DATA_INSTALL_DIR}/blinken/fonts +) diff --git a/blinken/icons/CMakeLists.txt b/blinken/icons/CMakeLists.txt new file mode 100644 index 00000000..08f69ef5 --- /dev/null +++ b/blinken/icons/CMakeLists.txt @@ -0,0 +1 @@ +tde_install_icons( blinken ) diff --git a/blinken/images/CMakeLists.txt b/blinken/images/CMakeLists.txt new file mode 100644 index 00000000..03d97abb --- /dev/null +++ b/blinken/images/CMakeLists.txt @@ -0,0 +1,6 @@ +file( GLOB _pics RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.png ) + +install( + FILES ${_pics} + DESTINATION ${DATA_INSTALL_DIR}/blinken/images +) diff --git a/blinken/images/graphics_sources.tar.gz b/blinken/images/graphics_sources.tar.gz deleted file mode 100644 index dc0de367..00000000 Binary files a/blinken/images/graphics_sources.tar.gz and /dev/null differ diff --git a/blinken/images/graphics_sources/README b/blinken/images/graphics_sources/README new file mode 100644 index 00000000..4917d67d --- /dev/null +++ b/blinken/images/graphics_sources/README @@ -0,0 +1,7 @@ +Graphics by Danny Allen (danny@dannyallen.co.uk) +Packaged 5th August 2005 + +Included here are the cleaned-up SVG sources from my creation of the blinKen graphics. +I have packaged them up for future reference and modification. + +Enjoy! \ No newline at end of file diff --git a/blinken/images/graphics_sources/final_blank.svg b/blinken/images/graphics_sources/final_blank.svg new file mode 100644 index 00000000..315cf17e --- /dev/null +++ b/blinken/images/graphics_sources/final_blank.svg @@ -0,0 +1,189 @@ + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/blinken/images/graphics_sources/final_buttons.svg b/blinken/images/graphics_sources/final_buttons.svg new file mode 100644 index 00000000..c58cdb61 --- /dev/null +++ b/blinken/images/graphics_sources/final_buttons.svg @@ -0,0 +1,487 @@ + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/blinken/sounds/CMakeLists.txt b/blinken/sounds/CMakeLists.txt new file mode 100644 index 00000000..a25bf70b --- /dev/null +++ b/blinken/sounds/CMakeLists.txt @@ -0,0 +1,6 @@ +file( GLOB _wavs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.wav ) + +install( + FILES ${_wavs} + DESTINATION ${DATA_INSTALL_DIR}/blinken/sounds +) diff --git a/blinken/src/CMakeLists.txt b/blinken/src/CMakeLists.txt new file mode 100644 index 00000000..f8ccd4b7 --- /dev/null +++ b/blinken/src/CMakeLists.txt @@ -0,0 +1,51 @@ +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +##### blinken (executable) + +tde_add_executable( blinken AUTOMOC + + SOURCES + main.cpp + blinken.cpp + artsplayer.cpp + blinkengame.cpp + number.cpp + highscoredialog.cpp + counter.cpp + fontutils.cpp + fontchecker.cpp + button.cpp + settings.kcfgc + LINK + tdecore-shared + tdeui-shared + tdeio-shared + artskde-shared + + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### other data + +install( + FILES blinken.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} +) + +install( + FILES blinken.kcfg + DESTINATION ${KCFG_INSTALL_DIR} +) -- cgit v1.2.1