~aleteoryx/muditaos

ref: 3ac4bd4935e598da305b77e7dea8af20413ba668 muditaos/image/CMakeLists.txt -rw-r--r-- 950 bytes
3ac4bd49 — Wojtek Rzepecki [EGD-7127] Store imported contacts in DB 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
include(Utils)

set(ASSETS_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
set(ASSETS_DEST_DIR "${CMAKE_BINARY_DIR}/sys")

add_custom_target(
    assets
    COMMAND rsync -ravu --delete
        ${ASSETS_SOURCE_DIR}/.boot.json*
        ${ASSETS_SOURCE_DIR}/personalization.json
        ${ASSETS_DEST_DIR}
    COMMAND rsync -ravu --delete
        ${ASSETS_SOURCE_DIR}/assets
        ${ASSETS_SOURCE_DIR}/Luts.bin
        ${ASSETS_SOURCE_DIR}/country-codes.db
        ${ASSETS_DEST_DIR}/current
    COMMAND rsync -ravu --delete
        ${ASSETS_SOURCE_DIR}/user
        ${ASSETS_DEST_DIR}
    COMMENT
        "Copying assets.."
    )

multicomp_install(
    FILES
        ${ASSETS_DEST_DIR}/.boot.json
        ${ASSETS_DEST_DIR}/.boot.json.crc32
    DESTINATION ./
    COMPONENTS Standalone Update
)

multicomp_install(
    DIRECTORY
        ${ASSETS_DEST_DIR}/current/
        ${ASSETS_DEST_DIR}/user
    DESTINATION ./
    COMPONENTS Standalone Update
)