# Copyright (c) 2023 Dominic Masters
# 
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT

find_package(Python3 REQUIRED COMPONENTS Interpreter)

add_custom_target(dawnassets
  COMMAND
    ${Python3_EXECUTABLE}
    ${DAWN_TOOLS_DIR}/assetstool/assetstool.py
    --input=${DAWN_ASSETS_BUILD_DIR}
    --output=${DAWN_BUILD_DIR}/dawn.tar
  COMMENT "Bundling assets..."
    USES_TERMINAL
    DEPENDS ${DAWN_ASSETS}
)