mirror of
https://github.com/mudita/MuditaOS.git
synced 2025-12-23 22:17:57 -05:00
* New user directory implemented. * Generate user directory structure at compile time instead of at runtime(Pure/Harmony). * Changed MTP root path to /storage * FileIndexer: Minor refactor * FileIndexer: Fixed handling incorrect/non-existing scan directories. * Updated Repository module to correctly handle many assets paths. * MultimediaDB: Minor unit tests refactor and fixed some issues when using simulator. * MultimediaDB: Added new queries and unit tests * Harmony/Relaxation: Updated to correctly use audio assets from more than one source. * Harmony/Relaxation: Updated model and list items provider. * Harmony/Relaxation: Fixed stack overflow in audio service
31 lines
736 B
CMake
31 lines
736 B
CMake
#[[
|
|
Example of use:
|
|
add_directories(
|
|
TARGET <target name>
|
|
PREFIX <paths prefix>
|
|
DEPENDS <dependencies list>
|
|
DIRECTORIES <dir1 dir2 dir3 dir_n>
|
|
)
|
|
]]#
|
|
function(add_directories)
|
|
cmake_parse_arguments(
|
|
_ASSETS
|
|
""
|
|
"TARGET;PREFIX"
|
|
"DEPENDS;DIRECTORIES"
|
|
${ARGN}
|
|
)
|
|
set(command)
|
|
foreach (entry ${_ASSETS_DIRECTORIES})
|
|
list(APPEND command
|
|
COMMAND mkdir -p ${_ASSETS_PREFIX}/${entry})
|
|
endforeach ()
|
|
|
|
add_custom_target(
|
|
${_ASSETS_TARGET}
|
|
DEPENDS ${_ASSETS_DEPENDS}
|
|
${command}
|
|
COMMENT
|
|
"Adding directories: ${_ASSETS_DIRECTORIES}"
|
|
)
|
|
endfunction() |