About to relearn this version of the language.
This commit is contained in:
@ -1,9 +1,5 @@
|
||||
# Copyright (c) 2021 Dominic Msters
|
||||
#
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
find_package(Python3 REQUIRED COMPONENTS Interpreter)
|
||||
|
||||
# Tool Function
|
||||
function(tool_texture target)
|
||||
# Defaults
|
||||
set(FILE "" )
|
||||
@ -31,9 +27,9 @@ function(tool_texture target)
|
||||
message(FATAL_ERROR "Missing FILE input")
|
||||
endif()
|
||||
|
||||
add_custom_target(${target}
|
||||
add_custom_target(${target}_texture
|
||||
COMMAND ${DAWN_TOOLS_DIR}/texturetool/texturetool.py
|
||||
--input="${FILE}"
|
||||
--input="${DAWN_ASSETS_SOURCE_DIR}/${FILE}"
|
||||
--output="${DAWN_ASSETS_BUILD_DIR}/${target}.texture"
|
||||
--wrap-x="${WRAP_X}"
|
||||
--wrap-y="${WRAP_Y}"
|
||||
@ -46,5 +42,5 @@ function(tool_texture target)
|
||||
--crop-end-y="${CROP_END_Y}"
|
||||
COMMENT "Generating texture ${target} from ${FILE}"
|
||||
)
|
||||
add_dependencies(dawnassets ${target})
|
||||
add_dependencies(dawnassets ${target}_texture)
|
||||
endfunction()
|
Reference in New Issue
Block a user