-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'gha-windows-remove-nsis-override' into webrtc_ice_serve…
…r_list_override
- Loading branch information
Showing
10 changed files
with
139 additions
and
85 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,55 @@ | ||
include(vcpkg_common_functions) | ||
|
||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY) | ||
|
||
vcpkg_from_github( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
REPO KhronosGroup/glslang | ||
REF untagged-048c4dbc7f021224a933 | ||
SHA512 e3097dd2db88320982d7da1ddce138839daf3251935909c3998a114aeadd408760b26b2d7c7ee547fb0519895ac1853a45c23df2eecf61135849b080252e9dec | ||
HEAD_REF master | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
REPO KhronosGroup/glslang | ||
REF "${VERSION}" | ||
SHA512 45ec1a23a390319b9270761cf8befb832ac8b4bc215b211c41a543553a97e5ccf17c134c34d8fdbed6efe887a9a7c2f0a955d1bfe1add9e04cc3e95b12e1973a | ||
HEAD_REF master | ||
) | ||
|
||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS | ||
FEATURES | ||
opt ENABLE_OPT | ||
opt ALLOW_EXTERNAL_SPIRV_TOOLS | ||
tools ENABLE_GLSLANG_BINARIES | ||
rtti ENABLE_RTTI | ||
) | ||
|
||
if (ENABLE_GLSLANG_BINARIES) | ||
vcpkg_find_acquire_program(PYTHON3) | ||
get_filename_component(PYTHON_PATH ${PYTHON3} DIRECTORY) | ||
vcpkg_add_to_path("${PYTHON_PATH}") | ||
endif () | ||
|
||
vcpkg_cmake_configure( | ||
SOURCE_PATH "${SOURCE_PATH}" | ||
OPTIONS | ||
-DBUILD_EXTERNAL=OFF | ||
-DGLSLANG_TESTS=OFF | ||
${FEATURE_OPTIONS} | ||
) | ||
|
||
vcpkg_configure_cmake( | ||
SOURCE_PATH ${SOURCE_PATH} | ||
PREFER_NINJA | ||
OPTIONS -DCMAKE_DEBUG_POSTFIX=d | ||
vcpkg_cmake_install() | ||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/glslang DO_NOT_DELETE_PARENT_CONFIG_PATH) | ||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/${PORT}/glslang-config.cmake" | ||
[[${PACKAGE_PREFIX_DIR}/lib/cmake/glslang/glslang-targets.cmake]] | ||
[[${CMAKE_CURRENT_LIST_DIR}/glslang-targets.cmake]] | ||
) | ||
file(REMOVE_RECURSE CONFIG_PATH "${CURRENT_PACKAGES_DIR}/lib/cmake" "${CURRENT_PACKAGES_DIR}/debug/lib/cmake") | ||
|
||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic") | ||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/glslang/Public/ShaderLang.h" "ifdef GLSLANG_IS_SHARED_LIBRARY" "if 1") | ||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/glslang/Include/glslang_c_interface.h" "ifdef GLSLANG_IS_SHARED_LIBRARY" "if 1") | ||
endif() | ||
|
||
vcpkg_copy_pdbs() | ||
|
||
vcpkg_install_cmake() | ||
if (ENABLE_GLSLANG_BINARIES) | ||
vcpkg_copy_tools(TOOL_NAMES glslang glslangValidator spirv-remap AUTO_CLEAN) | ||
endif () | ||
|
||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) | ||
file(RENAME "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/tools") | ||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin") | ||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") | ||
|
||
# Handle copyright | ||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/copyright DESTINATION ${CURRENT_PACKAGES_DIR}/share/glslang) | ||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") | ||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
glslang provides CMake targets: | ||
|
||
find_package(glslang CONFIG REQUIRED) | ||
target_link_libraries(main PRIVATE glslang::glslang glslang::glslang-default-resource-limits glslang::SPIRV glslang::SPVRemapper) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"name": "glslang", | ||
"version": "14.0.0", | ||
"description": "Khronos-reference front end for GLSL/ESSL, partial front end for HLSL, and a SPIR-V generator.", | ||
"homepage": "https://github.com/KhronosGroup/glslang", | ||
"license": "Apache-2.0 AND BSD-3-Clause AND MIT AND GPL-3.0-or-later", | ||
"dependencies": [ | ||
{ | ||
"name": "vcpkg-cmake", | ||
"host": true | ||
}, | ||
{ | ||
"name": "vcpkg-cmake-config", | ||
"host": true | ||
} | ||
], | ||
"features": { | ||
"opt": { | ||
"description": "Build with spirv-opt capability", | ||
"dependencies": [ | ||
"spirv-tools" | ||
] | ||
}, | ||
"rtti": { | ||
"description": "Build with dynamic typeinfo" | ||
}, | ||
"tools": { | ||
"description": "Build the glslangValidator and spirv-remap binaries", | ||
"supports": "!ios" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Source: hifi-host-tools | ||
Version: 0 | ||
Description: Host build system compatible tools for building High Fidelity applications | ||
Build-Depends: hifi-scribe, glslang, spirv-cross, spirv-tools | ||
Build-Depends: hifi-scribe, glslang[opt,tools], spirv-cross, spirv-tools |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,46 @@ | ||
include(vcpkg_common_functions) | ||
|
||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY) | ||
|
||
vcpkg_from_github( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
REPO KhronosGroup/SPIRV-Cross | ||
REF 2018-08-07 | ||
SHA512 1ac6ee6b2864d950199d4e856ae1576f9435827501baa5d53821a973cd68aaa03ec428094bf74c570784997baac5b2e3802ddc7f02844e2ee546741fa726bf91 | ||
REF vulkan-sdk-${VERSION} | ||
SHA512 56172ce2a766ea83a04701a3253a17fb611c66e25303448d7ca34d507b0476f4d14420021066b382ae6f35a1b1ee4b35443e2e0475b468552f3bd1ad3413e3af | ||
HEAD_REF master | ||
) | ||
|
||
vcpkg_configure_cmake( | ||
SOURCE_PATH ${SOURCE_PATH} | ||
PREFER_NINJA | ||
OPTIONS -DSPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS=OFF | ||
) | ||
if(VCPKG_TARGET_IS_IOS) | ||
message(STATUS "Using iOS triplet. Executables won't be created...") | ||
set(BUILD_CLI OFF) | ||
else() | ||
set(BUILD_CLI ON) | ||
endif() | ||
|
||
vcpkg_install_cmake() | ||
vcpkg_cmake_configure( | ||
SOURCE_PATH "${SOURCE_PATH}" | ||
OPTIONS | ||
-DSPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS=OFF | ||
-DSPIRV_CROSS_CLI=${BUILD_CLI} | ||
-DSPIRV_CROSS_SKIP_INSTALL=OFF | ||
-DSPIRV_CROSS_ENABLE_C_API=ON | ||
) | ||
vcpkg_cmake_install() | ||
vcpkg_copy_pdbs() | ||
vcpkg_fixup_pkgconfig() | ||
|
||
foreach(COMPONENT core cpp glsl hlsl msl reflect util) | ||
vcpkg_fixup_cmake_targets(CONFIG_PATH share/spirv_cross_${COMPONENT}/cmake TARGET_PATH share/spirv_cross_${COMPONENT}) | ||
foreach(COMPONENT core c cpp glsl hlsl msl reflect util) | ||
vcpkg_cmake_config_fixup(CONFIG_PATH share/spirv_cross_${COMPONENT}/cmake PACKAGE_NAME spirv_cross_${COMPONENT}) | ||
endforeach() | ||
|
||
if(BUILD_CLI) | ||
vcpkg_copy_tools(TOOL_NAMES spirv-cross AUTO_CLEAN) | ||
endif() | ||
|
||
file(REMOVE_RECURSE | ||
"${CURRENT_PACKAGES_DIR}/debug/include" | ||
"${CURRENT_PACKAGES_DIR}/debug/share" | ||
) | ||
|
||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") | ||
|
||
file(GLOB EXES "${CURRENT_PACKAGES_DIR}/bin/*") | ||
file(COPY ${EXES} DESTINATION ${CURRENT_PACKAGES_DIR}/tools) | ||
|
||
# cleanup | ||
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/spirv-cross/copyright COPYONLY) | ||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) | ||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) | ||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "spirv-cross", | ||
"version": "1.3.280.0", | ||
"description": "SPIRV-Cross is a practical tool and library for performing reflection on SPIR-V and disassembling SPIR-V back to high level languages.", | ||
"homepage": "https://github.com/KhronosGroup/SPIRV-Cross", | ||
"dependencies": [ | ||
"spirv-headers", | ||
{ | ||
"name": "vcpkg-cmake", | ||
"host": true | ||
}, | ||
{ | ||
"name": "vcpkg-cmake-config", | ||
"host": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters