代码拉取完成,页面将自动刷新
同步操作将从 OpenHarmony/third_party_glslang 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# cmake file for glslang
if (NOT DE_DEFS)
message(FATAL_ERROR "Include Defs.cmake")
endif ()
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/src/SPIRV/GlslangToSpv.cpp")
set(DEFAULT_GLSLANG_SRC_PATH ${CMAKE_CURRENT_SOURCE_DIR}/src)
else ()
set(DEFAULT_GLSLANG_SRC_PATH "../glslang")
endif ()
set(GLSLANG_SRC_PATH ${DEFAULT_GLSLANG_SRC_PATH} CACHE STRING "Path to glslang source tree")
if (IS_ABSOLUTE ${GLSLANG_SRC_PATH})
set(GLSLANG_ABS_PATH ${GLSLANG_SRC_PATH})
else ()
set(GLSLANG_ABS_PATH "${CMAKE_SOURCE_DIR}/${GLSLANG_SRC_PATH}")
endif ()
if (EXISTS ${GLSLANG_ABS_PATH}/glslang/GenericCodeGen/CodeGen.cpp)
message(STATUS "glslang found")
# Disable glslang install as part of cmake install.
set(SKIP_GLSLANG_INSTALL OFF CACHE BOOL "" FORCE)
# Do not build glslang binaries.
set(ENABLE_GLSLANG_BINARIES OFF CACHE BOOL "" FORCE)
# Overwrite the CMake flags for glslang with the our 3rd party ones.
set(CMAKE_C_FLAGS ${DE_3RD_PARTY_C_FLAGS})
set(CMAKE_CXX_FLAGS ${DE_3RD_PARTY_CXX_FLAGS})
add_subdirectory(${GLSLANG_ABS_PATH})
add_definitions(-DENABLE_HLSL)
set(GLSLANG_INCLUDE_PATH ${GLSLANG_ABS_PATH} PARENT_SCOPE)
set(GLSLANG_LIBRARIES glslang SPIRV SPVRemapper PARENT_SCOPE)
else ()
message(FATAL_ERROR "glslang not found")
endif ()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。