From 5f490e67f56058c7a20873bb89cd53f43baf8caf Mon Sep 17 00:00:00 2001 From: BadQuanta Date: Sun, 17 May 2026 11:27:29 +0000 Subject: [PATCH] Working on Debian Packaging. --- .gitattributes | 6 ++++++ CMakeLists.txt | 30 ++++++++++++++++++++++++++++++ README.md | 5 +++++ fonts/.gitkeep | 0 music/.gitkeep | 0 sounds/.gitkeep | 0 6 files changed, 41 insertions(+) create mode 100644 .gitattributes create mode 100644 CMakeLists.txt create mode 100644 fonts/.gitkeep create mode 100644 music/.gitkeep create mode 100644 sounds/.gitkeep diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..cf0aa7e --- /dev/null +++ b/.gitattributes @@ -0,0 +1,6 @@ +# Bitmap image formats +*.png filter=lfs diff=lfs merge=lfs -text +*.jpg filter=lfs diff=lfs merge=lfs -text +*.jpeg filter=lfs diff=lfs merge=lfs -text +*.gif filter=lfs diff=lfs merge=lfs -text +*.bmp filter=lfs diff=lfs merge=lfs -text diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..5411353 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,30 @@ +cmake_minimum_required(VERSION 3.20) +project(hdk-assets + VERSION 0.0.1 + DESCRIPTION "Shared assets for use with examples with the Hollow Development Kit (HDK)" + LANGUAGES NONE +) + +include(GNUInstallDirs) + +# Install all asset files with the release component +install(DIRECTORY + ${CMAKE_CURRENT_SOURCE_DIR}/fonts/ + ${CMAKE_CURRENT_SOURCE_DIR}/textures/ + ${CMAKE_CURRENT_SOURCE_DIR}/sounds/ + ${CMAKE_CURRENT_SOURCE_DIR}/music/ + DESTINATION ${CMAKE_INSTALL_DATADIR}/hdk-assets + COMPONENT hdk-assets_release +) + +# Install metadata files for release package +install(FILES + ${CMAKE_CURRENT_SOURCE_DIR}/README.md + ${CMAKE_CURRENT_SOURCE_DIR}/../CHANGELOG.md + DESTINATION ${CMAKE_INSTALL_DOCDIR}/hdk-assets + COMPONENT hdk-assets_release + OPTIONAL +) + +# CPack Packaging Policy +include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/HDKPackaging.cmake) \ No newline at end of file diff --git a/README.md b/README.md index 2ca6214..6f9c358 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,11 @@ This repository stores assets used in various examples. Sources and credits for Some assets may be processed or modified from their original (source) form during packaging. +## Package identity + +Shared example assets are consumed by HDK subprojects as the `hdk-assets` package. +Subprojects may require a minimum package version and can fall back to fetching this repository when needed. + ## Sources and credits Please do let me know if I have missed or have misattribute any assets, and I will update this list accordingly. diff --git a/fonts/.gitkeep b/fonts/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/music/.gitkeep b/music/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/sounds/.gitkeep b/sounds/.gitkeep new file mode 100644 index 0000000..e69de29