mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-02 06:19:06 +08:00
e1a1ddd093
* bump qtbase * add qt3d * format manifest * test features in CI * pass ci baseline stuff * vulkan is skip in ci so cannot force it. * remove extra , * fix deps * try to fix promotion * gstreamer adjustments. * fix gstreamer on linux * fix gstreamer stuff * fix x264 api import macro * fix gst-rsp-server * correctly replace * promote targets.... * enable arm64 qtwebengine * --trace-expand * install wrapper for egl. * add newline * remove opengl from skip list * add gl to link * another try * retry again * test dynamic angle linkage * retry * link XNVCtrl * retry * add libxnvctrl * retry * retry again... * move wrapper to angle * revert changes to egl-reg * more debugging * try again * fix stuff * add missing , * egl stuff * wrapper stuff * fix angle * remove double dep * remove libxnvctrl * format manifest * revert trace * bump version * bump v * v db * remove trace * v db * refine supports * v db * remove qtmultimedia from baseline
97 lines
3.5 KiB
CMake
97 lines
3.5 KiB
CMake
if (VCPKG_TARGET_IS_LINUX)
|
|
message(WARNING "Building with a gcc version less than 6.1 is not supported.")
|
|
message(WARNING "${PORT} currently requires the following libraries from the system package manager:\n libx11-dev\n mesa-common-dev\n libxi-dev\n libxext-dev\n\nThese can be installed on Ubuntu systems via apt-get install libx11-dev mesa-common-dev libxi-dev libxext-dev.")
|
|
endif()
|
|
|
|
if (VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
|
set(ANGLE_CPU_BITNESS ANGLE_IS_32_BIT_CPU)
|
|
elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
|
set(ANGLE_CPU_BITNESS ANGLE_IS_64_BIT_CPU)
|
|
elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL "arm")
|
|
set(ANGLE_CPU_BITNESS ANGLE_IS_32_BIT_CPU)
|
|
elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
|
|
set(ANGLE_CPU_BITNESS ANGLE_IS_64_BIT_CPU)
|
|
else()
|
|
message(FATAL_ERROR "Unsupported architecture: ${VCPKG_TARGET_ARCHITECTURE}")
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO google/angle
|
|
REF d15be77864e18f407c317be6f6bc06ee2b7d070a # chromium/4472
|
|
SHA512 aad8563ee65458a7865ec7c668d1f90ac2891583c569a22dcd2c557263b72b26386f56b74a7294398be2cf5c548df513159e4be53f3f096f19819ca06227d9ac
|
|
# On update check headers against opengl-registry
|
|
PATCHES
|
|
001-fix-uwp.patch
|
|
002-fix-builder-error.patch
|
|
003-fix-mingw.patch
|
|
)
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/angle_commit.h" DESTINATION "${SOURCE_PATH}")
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/angle_commit.h" DESTINATION "${SOURCE_PATH}/src/common")
|
|
|
|
function(checkout_in_path_with_patches PATH URL REF PATCHES)
|
|
if(EXISTS "${PATH}")
|
|
return()
|
|
endif()
|
|
|
|
vcpkg_from_git(
|
|
OUT_SOURCE_PATH DEP_SOURCE_PATH
|
|
URL "${URL}"
|
|
REF "${REF}"
|
|
PATCHES ${PATCHES}
|
|
)
|
|
file(RENAME "${DEP_SOURCE_PATH}" "${PATH}")
|
|
file(REMOVE_RECURSE "${DEP_SOURCE_PATH}")
|
|
endfunction()
|
|
|
|
checkout_in_path_with_patches(
|
|
"${SOURCE_PATH}/third_party/zlib"
|
|
"https://chromium.googlesource.com/chromium/src/third_party/zlib"
|
|
"09490503d0f201b81e03f5ca0ab8ba8ee76d4a8e"
|
|
"third-party-zlib-far-undef.patch"
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=1
|
|
OPTIONS
|
|
-D${ANGLE_CPU_BITNESS}=1
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/unofficial-angle PACKAGE_NAME unofficial-angle)
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
|
|
# File conflict with opengl-registry! Make sure headers are similar on Update!
|
|
# angle defines some additional entrypoints.
|
|
# opengl-registry probably needs an upstream update to account for those
|
|
# Due to that all angle headers get moved to include/angle.
|
|
# If you want to use those instead of the onces provided by opengl-registry make sure
|
|
# VCPKG_INSTALLED_DIR/include/angle is before VCPKG_INSTALLED_DIR/include
|
|
file(GLOB_RECURSE angle_includes "${CURRENT_PACKAGES_DIR}/include")
|
|
file(COPY ${angle_includes} DESTINATION "${CURRENT_PACKAGES_DIR}/include/angle")
|
|
|
|
set(_double_files
|
|
include/GLES/egl.h
|
|
include/GLES/gl.h
|
|
include/GLES/glext.h
|
|
include/GLES/glplatform.h
|
|
include/GLES2/gl2.h
|
|
include/GLES2/gl2ext.h
|
|
include/GLES2/gl2platform.h
|
|
include/GLES3/gl3.h
|
|
include/GLES3/gl31.h
|
|
include/GLES3/gl32.h
|
|
include/GLES3/gl3platform.h)
|
|
foreach(_file ${_double_files})
|
|
if(EXISTS "${CURRENT_PACKAGES_DIR}/${_file}")
|
|
file(REMOVE "${CURRENT_PACKAGES_DIR}/${_file}")
|
|
endif()
|
|
endforeach()
|