mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-12-28 10:41:04 +00:00
Shorten names of cmake targets (#2531)
Window still had a limit of 260 chars for file paths. Visual C++ create directories and file names based on the cmake target names, so if they are too long, the windows build will fail. This is not a problem for spirv-tools on its own, but the files names currently go up to 220 characters for some spirv-tools files when built as part of VK-GL-CTS. This change will get it back down to 190, leaving more space for the directory that will contain VK-GL-CTS. This is fixing an issue reported against the VK-GL-CTS.
This commit is contained in:
parent
ac878fcbdd
commit
d754b70592
@ -101,7 +101,7 @@ macro(spvtools_opencl_tables CONFIG_VERSION)
|
||||
list(APPEND EXTINST_CPP_DEPENDS ${GRAMMAR_INC_FILE})
|
||||
endmacro(spvtools_opencl_tables)
|
||||
|
||||
macro(spvtools_vendor_tables VENDOR_TABLE)
|
||||
macro(spvtools_vendor_tables VENDOR_TABLE SHORT_NAME)
|
||||
set(INSTS_FILE "${spirv-tools_BINARY_DIR}/${VENDOR_TABLE}.insts.inc")
|
||||
set(GRAMMAR_FILE "${spirv-tools_SOURCE_DIR}/source/extinst.${VENDOR_TABLE}.grammar.json")
|
||||
add_custom_command(OUTPUT ${INSTS_FILE}
|
||||
@ -110,9 +110,9 @@ macro(spvtools_vendor_tables VENDOR_TABLE)
|
||||
--vendor-insts-output=${INSTS_FILE}
|
||||
DEPENDS ${GRAMMAR_PROCESSING_SCRIPT} ${GRAMMAR_FILE}
|
||||
COMMENT "Generate extended instruction tables for ${VENDOR_TABLE}.")
|
||||
add_custom_target(spirv-tools-${VENDOR_TABLE} DEPENDS ${INSTS_FILE})
|
||||
set_property(TARGET spirv-tools-${VENDOR_TABLE} PROPERTY FOLDER "SPIRV-Tools build")
|
||||
list(APPEND EXTINST_CPP_DEPENDS spirv-tools-${VENDOR_TABLE})
|
||||
add_custom_target(spv-tools-${SHORT_NAME} DEPENDS ${INSTS_FILE})
|
||||
set_property(TARGET spv-tools-${SHORT_NAME} PROPERTY FOLDER "SPIRV-Tools build")
|
||||
list(APPEND EXTINST_CPP_DEPENDS spv-tools-${SHORT_NAME})
|
||||
endmacro(spvtools_vendor_tables)
|
||||
|
||||
macro(spvtools_extinst_lang_headers NAME GRAMMAR_FILE)
|
||||
@ -134,11 +134,11 @@ spvtools_core_tables("unified1")
|
||||
spvtools_enum_string_mapping("unified1")
|
||||
spvtools_opencl_tables("unified1")
|
||||
spvtools_glsl_tables("unified1")
|
||||
spvtools_vendor_tables("spv-amd-shader-explicit-vertex-parameter")
|
||||
spvtools_vendor_tables("spv-amd-shader-trinary-minmax")
|
||||
spvtools_vendor_tables("spv-amd-gcn-shader")
|
||||
spvtools_vendor_tables("spv-amd-shader-ballot")
|
||||
spvtools_vendor_tables("debuginfo")
|
||||
spvtools_vendor_tables("spv-amd-shader-explicit-vertex-parameter" "spv-amd-sevp")
|
||||
spvtools_vendor_tables("spv-amd-shader-trinary-minmax" "spv-amd-stm")
|
||||
spvtools_vendor_tables("spv-amd-gcn-shader" "spv-amd-gs")
|
||||
spvtools_vendor_tables("spv-amd-shader-ballot" "spv-amd-sb")
|
||||
spvtools_vendor_tables("debuginfo" "debuginfo")
|
||||
spvtools_extinst_lang_headers("DebugInfo" ${DEBUGINFO_GRAMMAR_JSON_FILE})
|
||||
|
||||
spvtools_vimsyntax("unified1" "1.0")
|
||||
|
Loading…
Reference in New Issue
Block a user