-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed bgfx_compile_shaders incorrectly generating output path, and generat quality of life update for all tool util functions #255
base: master
Are you sure you want to change the base?
Changes from all commits
e49699b
a56d4df
83c498a
cc1ea95
8f820c4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -55,11 +55,28 @@ if(TARGET bgfx::bin2c) | |||||||||||||||||||||||||||||||||||||||||||||||
OUTPUT_FILE ${ARG_OUTPUT_FILE} | ||||||||||||||||||||||||||||||||||||||||||||||||
ARRAY_NAME ${ARG_ARRAY_NAME} | ||||||||||||||||||||||||||||||||||||||||||||||||
) | ||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
get_filename_component(OUTPUT_DIR "${ARG_OUTPUT_FILE}" DIRECTORY) | ||||||||||||||||||||||||||||||||||||||||||||||||
file(MAKE_DIRECTORY ${OUTPUT_DIR}) # create output path if it does not exist | ||||||||||||||||||||||||||||||||||||||||||||||||
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/bgfx_tool_logs) # create log path if it does not exist | ||||||||||||||||||||||||||||||||||||||||||||||||
file(RELATIVE_PATH INPUT_FILE_RELATIVE ${CMAKE_BINARY_DIR} ${ARG_INPUT_FILE}) | ||||||||||||||||||||||||||||||||||||||||||||||||
file(RELATIVE_PATH OUTPUT_FILE_RELATIVE ${CMAKE_BINARY_DIR} ${ARG_OUTPUT_FILE}) | ||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+62
to
+63
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [cmake-format] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
string(REPLACE " " "_" FILE_NAME_APPROPRIATE_OUTPUT_PATH ${OUTPUT_FILE_RELATIVE}) | ||||||||||||||||||||||||||||||||||||||||||||||||
string(REPLACE "/" "-" FILE_NAME_APPROPRIATE_OUTPUT_PATH ${FILE_NAME_APPROPRIATE_OUTPUT_PATH}) | ||||||||||||||||||||||||||||||||||||||||||||||||
string(REPLACE "\\" "-" FILE_NAME_APPROPRIATE_OUTPUT_PATH ${FILE_NAME_APPROPRIATE_OUTPUT_PATH}) # probably need this for windows | ||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+65
to
+67
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [cmake-format] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
add_custom_command( | ||||||||||||||||||||||||||||||||||||||||||||||||
OUTPUT ${ARG_OUTPUT_FILE} # | ||||||||||||||||||||||||||||||||||||||||||||||||
COMMAND bgfx::bin2c ${CLI} # | ||||||||||||||||||||||||||||||||||||||||||||||||
COMMAND bgfx::bin2c ${CLI} > bgfx_tool_logs/binary_to_header_compile_output_${FILE_NAME_APPROPRIATE_OUTPUT_PATH}.log # | ||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. will this work on windows? |
||||||||||||||||||||||||||||||||||||||||||||||||
COMMENT "Compiling ${INPUT_FILE_RELATIVE} as header" # | ||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+71
to
+72
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [cmake-format] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||
MAIN_DEPENDENCY ${ARG_INPUT_FILE} # | ||||||||||||||||||||||||||||||||||||||||||||||||
) | ||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
add_custom_target( | ||||||||||||||||||||||||||||||||||||||||||||||||
${FILE_NAME_APPROPRIATE_OUTPUT_PATH} ALL # | ||||||||||||||||||||||||||||||||||||||||||||||||
DEPENDS ${ARG_OUTPUT_FILE} # | ||||||||||||||||||||||||||||||||||||||||||||||||
) | ||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+76
to
+79
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [cmake-format] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||
endfunction() | ||||||||||||||||||||||||||||||||||||||||||||||||
endif() | ||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
@@ -212,11 +229,28 @@ if(TARGET bgfx::texturec) | |||||||||||||||||||||||||||||||||||||||||||||||
${ARGN} # | ||||||||||||||||||||||||||||||||||||||||||||||||
) | ||||||||||||||||||||||||||||||||||||||||||||||||
_bgfx_texturec_parse(CLI ${ARGV}) | ||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
get_filename_component(OUTPUT_DIR "${ARG_OUTPUT}" DIRECTORY) | ||||||||||||||||||||||||||||||||||||||||||||||||
file(MAKE_DIRECTORY ${OUTPUT_DIR}) # create output path if it does not exist | ||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+233
to
+234
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [cmake-format] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/bgfx_tool_logs) # create log path if it does not exist | ||||||||||||||||||||||||||||||||||||||||||||||||
file(RELATIVE_PATH INPUT_FILE_RELATIVE ${CMAKE_BINARY_DIR} ${ARG_FILE}) | ||||||||||||||||||||||||||||||||||||||||||||||||
file(RELATIVE_PATH OUTPUT_FILE_RELATIVE ${CMAKE_BINARY_DIR} ${ARG_OUTPUT}) | ||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+236
to
+237
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [cmake-format] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
string(REPLACE " " "_" FILE_NAME_APPROPRIATE_OUTPUT_PATH ${OUTPUT_FILE_RELATIVE}) | ||||||||||||||||||||||||||||||||||||||||||||||||
string(REPLACE "/" "-" FILE_NAME_APPROPRIATE_OUTPUT_PATH ${FILE_NAME_APPROPRIATE_OUTPUT_PATH}) | ||||||||||||||||||||||||||||||||||||||||||||||||
string(REPLACE "\\" "-" FILE_NAME_APPROPRIATE_OUTPUT_PATH ${FILE_NAME_APPROPRIATE_OUTPUT_PATH}) # probably need this for windows | ||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+239
to
+241
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [cmake-format] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
add_custom_command( | ||||||||||||||||||||||||||||||||||||||||||||||||
OUTPUT ${ARG_OUTPUT} # | ||||||||||||||||||||||||||||||||||||||||||||||||
COMMAND bgfx::texturec ${CLI} # | ||||||||||||||||||||||||||||||||||||||||||||||||
COMMAND bgfx::texturec ${CLI} > bgfx_tool_logs/texture_compile_output_${FILE_NAME_APPROPRIATE_OUTPUT_PATH}.log # | ||||||||||||||||||||||||||||||||||||||||||||||||
COMMENT "Compiling ${INPUT_FILE_RELATIVE}" # | ||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+245
to
+246
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [cmake-format] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||
MAIN_DEPENDENCY ${ARG_FILE} # | ||||||||||||||||||||||||||||||||||||||||||||||||
) | ||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
add_custom_target( | ||||||||||||||||||||||||||||||||||||||||||||||||
${FILE_NAME_APPROPRIATE_OUTPUT_PATH} ALL # | ||||||||||||||||||||||||||||||||||||||||||||||||
DEPENDS ${ARG_OUTPUT} # | ||||||||||||||||||||||||||||||||||||||||||||||||
) | ||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+250
to
+253
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [cmake-format] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||
endfunction() | ||||||||||||||||||||||||||||||||||||||||||||||||
endif() | ||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
@@ -349,11 +383,28 @@ if(TARGET bgfx::geometryc) | |||||||||||||||||||||||||||||||||||||||||||||||
${ARGN} # | ||||||||||||||||||||||||||||||||||||||||||||||||
) | ||||||||||||||||||||||||||||||||||||||||||||||||
_bgfx_geometryc_parse(CLI ${ARGV}) | ||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
get_filename_component(OUTPUT_DIR "${ARG_OUTPUT}" DIRECTORY) | ||||||||||||||||||||||||||||||||||||||||||||||||
file(MAKE_DIRECTORY ${OUTPUT_DIR}) # create output path if it does not exist | ||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+387
to
+388
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [cmake-format] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/bgfx_tool_logs) # create log path if it does not exist | ||||||||||||||||||||||||||||||||||||||||||||||||
file(RELATIVE_PATH INPUT_FILE_RELATIVE ${CMAKE_BINARY_DIR} ${ARG_FILE}) | ||||||||||||||||||||||||||||||||||||||||||||||||
file(RELATIVE_PATH OUTPUT_FILE_RELATIVE ${CMAKE_BINARY_DIR} ${ARG_OUTPUT}) | ||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+390
to
+391
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [cmake-format] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
string(REPLACE " " "_" FILE_NAME_APPROPRIATE_OUTPUT_PATH ${OUTPUT_FILE_RELATIVE}) | ||||||||||||||||||||||||||||||||||||||||||||||||
string(REPLACE "/" "-" FILE_NAME_APPROPRIATE_OUTPUT_PATH ${FILE_NAME_APPROPRIATE_OUTPUT_PATH}) | ||||||||||||||||||||||||||||||||||||||||||||||||
string(REPLACE "\\" "-" FILE_NAME_APPROPRIATE_OUTPUT_PATH ${FILE_NAME_APPROPRIATE_OUTPUT_PATH}) # probably need this for windows | ||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+393
to
+395
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [cmake-format] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
add_custom_command( | ||||||||||||||||||||||||||||||||||||||||||||||||
OUTPUT ${ARG_OUTPUT} # | ||||||||||||||||||||||||||||||||||||||||||||||||
COMMAND bgfx::geometryc ${CLI} # | ||||||||||||||||||||||||||||||||||||||||||||||||
COMMAND bgfx::geometryc ${CLI} > bgfx_tool_logs/geometry_compile_output_${FILE_NAME_APPROPRIATE_OUTPUT_PATH}.log # | ||||||||||||||||||||||||||||||||||||||||||||||||
COMMENT "Compiling ${INPUT_FILE_RELATIVE}" # | ||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+399
to
+400
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [cmake-format] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||
MAIN_DEPENDENCY ${ARG_FILE} # | ||||||||||||||||||||||||||||||||||||||||||||||||
) | ||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
add_custom_target( | ||||||||||||||||||||||||||||||||||||||||||||||||
${FILE_NAME_APPROPRIATE_OUTPUT_PATH} ALL # | ||||||||||||||||||||||||||||||||||||||||||||||||
DEPENDS ${ARG_OUTPUT} # | ||||||||||||||||||||||||||||||||||||||||||||||||
) | ||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+404
to
+407
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [cmake-format] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||
endfunction() | ||||||||||||||||||||||||||||||||||||||||||||||||
endif() | ||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
@@ -605,17 +656,19 @@ if(TARGET bgfx::shaderc) | |||||||||||||||||||||||||||||||||||||||||||||||
get_filename_component(SHADER_FILE_NAME_WE ${SHADER_FILE} NAME_WE) | ||||||||||||||||||||||||||||||||||||||||||||||||
get_filename_component(SHADER_FILE_ABSOLUTE ${SHADER_FILE} ABSOLUTE) | ||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
file(RELATIVE_PATH SHADER_FILE_RELATIVE ${CMAKE_BINARY_DIR} ${SHADER_FILE_ABSOLUTE}) | ||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [cmake-format] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
# Build output targets and their commands | ||||||||||||||||||||||||||||||||||||||||||||||||
set(OUTPUTS "") | ||||||||||||||||||||||||||||||||||||||||||||||||
set(COMMANDS "") | ||||||||||||||||||||||||||||||||||||||||||||||||
set(MKDIR_COMMANDS "") | ||||||||||||||||||||||||||||||||||||||||||||||||
foreach(PROFILE ${PROFILES}) | ||||||||||||||||||||||||||||||||||||||||||||||||
_bgfx_get_profile_path_ext(${PROFILE} PROFILE_PATH_EXT) | ||||||||||||||||||||||||||||||||||||||||||||||||
_bgfx_get_profile_ext(${PROFILE} PROFILE_EXT) | ||||||||||||||||||||||||||||||||||||||||||||||||
if(ARGS_AS_HEADERS) | ||||||||||||||||||||||||||||||||||||||||||||||||
set(HEADER_PREFIX .h) | ||||||||||||||||||||||||||||||||||||||||||||||||
endif() | ||||||||||||||||||||||||||||||||||||||||||||||||
set(OUTPUT ${ARGS_OUTPUT_DIR}/${PROFILE_PATH_EXT}/${SHADER_FILE_BASENAME}.bin${HEADER_PREFIX}) | ||||||||||||||||||||||||||||||||||||||||||||||||
file(MAKE_DIRECTORY ${ARGS_OUTPUT_DIR}/${PROFILE_PATH_EXT}) | ||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [cmake-format] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||
set(PLATFORM_I ${PLATFORM}) | ||||||||||||||||||||||||||||||||||||||||||||||||
if(PROFILE STREQUAL "spirv") | ||||||||||||||||||||||||||||||||||||||||||||||||
set(PLATFORM_I LINUX) | ||||||||||||||||||||||||||||||||||||||||||||||||
|
@@ -637,24 +690,36 @@ if(TARGET bgfx::shaderc) | |||||||||||||||||||||||||||||||||||||||||||||||
) | ||||||||||||||||||||||||||||||||||||||||||||||||
list(APPEND OUTPUTS ${OUTPUT}) | ||||||||||||||||||||||||||||||||||||||||||||||||
list(APPEND ALL_OUTPUTS ${OUTPUT}) | ||||||||||||||||||||||||||||||||||||||||||||||||
list( | ||||||||||||||||||||||||||||||||||||||||||||||||
APPEND | ||||||||||||||||||||||||||||||||||||||||||||||||
MKDIR_COMMANDS | ||||||||||||||||||||||||||||||||||||||||||||||||
COMMAND | ||||||||||||||||||||||||||||||||||||||||||||||||
${CMAKE_COMMAND} | ||||||||||||||||||||||||||||||||||||||||||||||||
-E | ||||||||||||||||||||||||||||||||||||||||||||||||
make_directory | ||||||||||||||||||||||||||||||||||||||||||||||||
${ARGS_OUTPUT_DIR}/${PROFILE_PATH_EXT} | ||||||||||||||||||||||||||||||||||||||||||||||||
) | ||||||||||||||||||||||||||||||||||||||||||||||||
list(APPEND COMMANDS COMMAND bgfx::shaderc ${CLI}) | ||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
file(RELATIVE_PATH OUTPUT_RELATIVE ${CMAKE_BINARY_DIR} ${OUTPUT}) | ||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
string(REPLACE " " "_" FILE_NAME_APPROPRIATE_OUTPUT_PATH ${OUTPUT_RELATIVE}) | ||||||||||||||||||||||||||||||||||||||||||||||||
string(REPLACE "/" "-" FILE_NAME_APPROPRIATE_OUTPUT_PATH ${FILE_NAME_APPROPRIATE_OUTPUT_PATH}) | ||||||||||||||||||||||||||||||||||||||||||||||||
string(REPLACE "\\" "-" FILE_NAME_APPROPRIATE_OUTPUT_PATH ${FILE_NAME_APPROPRIATE_OUTPUT_PATH}) # probably need this for windows | ||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
list(APPEND COMMANDS COMMAND bgfx::shaderc ${CLI} > bgfx_tool_logs/shader_compile_output_${FILE_NAME_APPROPRIATE_OUTPUT_PATH}.log) | ||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+694
to
+700
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [cmake-format] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||
endforeach() | ||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/bgfx_tool_logs) | ||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [cmake-format] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
# This is to prevent error if compiling as binary and header in same output path | ||||||||||||||||||||||||||||||||||||||||||||||||
set(TARGET_NAME "${SHADER_FILE_RELATIVE}") | ||||||||||||||||||||||||||||||||||||||||||||||||
if(ARGS_AS_HEADERS) | ||||||||||||||||||||||||||||||||||||||||||||||||
set(TARGET_NAME "${SHADER_FILE_RELATIVE} as header") | ||||||||||||||||||||||||||||||||||||||||||||||||
endif() | ||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+705
to
+709
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [cmake-format] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
add_custom_command( | ||||||||||||||||||||||||||||||||||||||||||||||||
OUTPUT ${OUTPUTS} | ||||||||||||||||||||||||||||||||||||||||||||||||
COMMAND ${MKDIR_COMMANDS} ${COMMANDS} | ||||||||||||||||||||||||||||||||||||||||||||||||
MAIN_DEPENDENCY ${SHADER_FILE_ABSOLUTE} | ||||||||||||||||||||||||||||||||||||||||||||||||
DEPENDS ${ARGS_VARYING_DEF} | ||||||||||||||||||||||||||||||||||||||||||||||||
OUTPUT ${OUTPUTS} # | ||||||||||||||||||||||||||||||||||||||||||||||||
COMMAND ${COMMANDS} # | ||||||||||||||||||||||||||||||||||||||||||||||||
MAIN_DEPENDENCY ${SHADER_FILE_ABSOLUTE} # | ||||||||||||||||||||||||||||||||||||||||||||||||
COMMENT "Compiling ${TARGET_NAME}" # | ||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [cmake-format] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||
DEPENDS ${ARGS_VARYING_DEF} # | ||||||||||||||||||||||||||||||||||||||||||||||||
) | ||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
add_custom_target( | ||||||||||||||||||||||||||||||||||||||||||||||||
${FILE_NAME_APPROPRIATE_OUTPUT_PATH} ALL # | ||||||||||||||||||||||||||||||||||||||||||||||||
DEPENDS ${OUTPUTS} # | ||||||||||||||||||||||||||||||||||||||||||||||||
) | ||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+719
to
+722
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [cmake-format] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||
endforeach() | ||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
if(DEFINED ARGS_OUT_FILES_VAR) | ||||||||||||||||||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cmake-format] reported by reviewdog 🐶