Truly independent web browser
Meta: Update angle to version chromium_7258#2
Timothy Flynne6b4cd50ba0e
diff --git a/Meta/CMake/vcpkg/overlay-ports/angle/002-bsd-support.patch b/Meta/CMake/vcpkg/overlay-ports/angle/002-bsd-support.patchindex 3f25d4a2522..012a99e5355 100644--- a/Meta/CMake/vcpkg/overlay-ports/angle/002-bsd-support.patch+++ b/Meta/CMake/vcpkg/overlay-ports/angle/002-bsd-support.patch@@ -99,7 +99,7 @@ index 739f3ca4c3..e697e3cd64 100644-# elif defined(ANGLE_PLATFORM_LINUX)+# elif defined(ANGLE_PLATFORM_LINUX) || defined(ANGLE_PLATFORM_BSD)- # if defined(ANGLE_USE_GBM)+ # if defined(ANGLE_USE_GBM) || defined(ANGLE_USE_WAYLAND)if (platformType == 0){@@ -468,7 +468,7 @@ rx::DisplayImpl *CreateDisplayFromAttribs(EGLAttrib displayType,@@ -108,7 +108,7 @@ index 739f3ca4c3..e697e3cd64 100644impl = new rx::DisplayWGL(state);-# elif defined(ANGLE_PLATFORM_LINUX)+# elif defined(ANGLE_PLATFORM_LINUX) || defined(ANGLE_PLATFORM_BSD)- # if defined(ANGLE_USE_GBM)+ # if defined(ANGLE_USE_GBM) || defined(ANGLE_USE_WAYLAND)if (platformType == 0){@@ -519,7 +519,7 @@ rx::DisplayImpl *CreateDisplayFromAttribs(EGLAttrib displayType,diff --git a/Meta/CMake/vcpkg/overlay-ports/angle/cmake-buildsystem/CMakeLists.txt b/Meta/CMake/vcpkg/overlay-ports/angle/cmake-buildsystem/CMakeLists.txtindex cbbc5594395..aa22ef3f6ef 100644--- a/Meta/CMake/vcpkg/overlay-ports/angle/cmake-buildsystem/CMakeLists.txt+++ b/Meta/CMake/vcpkg/overlay-ports/angle/cmake-buildsystem/CMakeLists.txt@@ -1,7 +1,7 @@cmake_minimum_required(VERSION 3.8)project(angle CXX C)-set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")+list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")include(WebKitCommon-minimal)set(ANGLE_FRAMEWORK_HEADERS_DIR "${CMAKE_BINARY_DIR}/ANGLE/headers")diff --git a/Meta/CMake/vcpkg/overlay-ports/angle/cmake-buildsystem/PlatformLinux.cmake b/Meta/CMake/vcpkg/overlay-ports/angle/cmake-buildsystem/PlatformLinux.cmakeindex 4f802d192c9..4a1f9ca3a2b 100644--- a/Meta/CMake/vcpkg/overlay-ports/angle/cmake-buildsystem/PlatformLinux.cmake+++ b/Meta/CMake/vcpkg/overlay-ports/angle/cmake-buildsystem/PlatformLinux.cmake@@ -1,4 +1,4 @@-list(APPEND ANGLE_DEFINITIONS USE_SYSTEM_EGL)+list(APPEND ANGLE_DEFINITIONS ANGLE_PLATFORM_LINUX USE_SYSTEM_EGL)include(linux.cmake)if (USE_OPENGL)diff --git a/Meta/CMake/vcpkg/overlay-ports/angle/cmake-buildsystem/PlatformMac.cmake b/Meta/CMake/vcpkg/overlay-ports/angle/cmake-buildsystem/PlatformMac.cmakeindex 2691ce61bf1..fdfdc35df52 100644--- a/Meta/CMake/vcpkg/overlay-ports/angle/cmake-buildsystem/PlatformMac.cmake+++ b/Meta/CMake/vcpkg/overlay-ports/angle/cmake-buildsystem/PlatformMac.cmake@@ -38,9 +38,15 @@ if(USE_OPENGL)list(APPEND ANGLE_SOURCES${angle_translator_glsl_base_sources}${angle_translator_glsl_sources}+ ${angle_translator_glsl_apple_sources})# Enable GLSL compiler output.- list(APPEND ANGLE_DEFINITIONS ANGLE_ENABLE_GLSL ANGLE_ENABLE_GL_DESKTOP_BACKEND ANGLE_ENABLE_APPLE_WORKAROUNDS)+ list(APPEND ANGLE_DEFINITIONS ANGLE_ENABLE_GLSL ANGLE_ENABLE_GL_DESKTOP_BACKEND ANGLE_ENABLE_APPLE_WORKAROUNDS ANGLE_ENABLE_CGL)++ # Still need to link with Metal as we call MTLCreateSystemDefaultDevice even if USE_METAL is not defined+ list(APPEND ANGLEGLESv2_LIBRARIES+ "-framework Metal"+ )endif()if(USE_OPENGL OR ENABLE_WEBGL)diff --git a/Meta/CMake/vcpkg/overlay-ports/angle/cmake-buildsystem/cmake/DetectSSE2.cmake b/Meta/CMake/vcpkg/overlay-ports/angle/cmake-buildsystem/cmake/DetectSSE2.cmakenew file mode 100644index 00000000000..cdd1ac57234--- /dev/null+++ b/Meta/CMake/vcpkg/overlay-ports/angle/cmake-buildsystem/cmake/DetectSSE2.cmake@@ -0,0 +1,63 @@+# https://github.com/WebKit/WebKit/blob/0742522b24152262b04913242cb0b3c48de92ba0/Source/cmake/DetectSSE2.cmake++#################################+# Check for the presence of SSE2.+#+# Once done, this will define:+# - SSE2_SUPPORT_FOUND - the system supports (at least) SSE2.+#+# Copyright (c) 2014, Pablo Fernandez Alcantarilla, Jesus Nuevo+# Copyright (c) 2019, Igalia S.L.+#+# Redistribution and use in source and binary forms, with or without modification,+# are permitted provided that the following conditions are met:+#+# * Redistributions of source code must retain the above copyright notice,+# this list of conditions and the following disclaimer.+#+# * Redistributions in binary form must reproduce the above copyright notice,+# this list of conditions and the following disclaimer in the documentation+# and/or other materials provided with the distribution.+#+# * Neither the name of the copyright holders nor the names of its contributors+# may be used to endorse or promote products derived from this software without+# specific prior written permission.+#+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY+# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES+# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT+# SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED+# TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR+# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN+# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY+# WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.++set(SSE2_SUPPORT_FOUND FALSE)++macro(CHECK_FOR_SSE2)+ include(CheckCXXSourceRuns)++ check_cxx_source_runs("+ #include <emmintrin.h>+ int main ()+ {+ __m128d a, b;+ double vals[2] = {0};+ a = _mm_loadu_pd (vals);+ b = _mm_add_pd (a,a);+ _mm_storeu_pd (vals,b);+ return 0;+ }"+ HAVE_SSE2_EXTENSIONS)++ if (COMPILER_IS_GCC_OR_CLANG OR (MSVC AND NOT CMAKE_CL_64))+ if (HAVE_SSE2_EXTENSIONS)+ set(SSE2_SUPPORT_FOUND TRUE)+ message(STATUS "Found SSE2 extensions")+ endif ()+ endif ()++endmacro(CHECK_FOR_SSE2)++CHECK_FOR_SSE2()\ No newline at end of filediff --git a/Meta/CMake/vcpkg/overlay-ports/angle/cmake-buildsystem/cmake/WebKitCommon-minimal.cmake b/Meta/CMake/vcpkg/overlay-ports/angle/cmake-buildsystem/cmake/WebKitCommon-minimal.cmakeindex b0df91f9533..894cf9c10ac 100644--- a/Meta/CMake/vcpkg/overlay-ports/angle/cmake-buildsystem/cmake/WebKitCommon-minimal.cmake+++ b/Meta/CMake/vcpkg/overlay-ports/angle/cmake-buildsystem/cmake/WebKitCommon-minimal.cmake@@ -168,10 +168,10 @@ if (NOT HAS_RUN_WEBKIT_COMMON)include(ProcessorCount)# include(WebKitPackaging)- include(WebKitMacros)+ include(WebKitMacros-minimal)# include(WebKitFS)# include(WebKitCCache)- include(WebKitCompilerFlags)+ include(WebKitCompilerFlags-minimal)# include(WebKitStaticAnalysis)# include(WebKitFeatures)# include(WebKitFindPackage)diff --git a/Meta/CMake/vcpkg/overlay-ports/angle/cmake-buildsystem/cmake/WebKitCompilerFlags-minimal.cmake b/Meta/CMake/vcpkg/overlay-ports/angle/cmake-buildsystem/cmake/WebKitCompilerFlags-minimal.cmakenew file mode 100644index 00000000000..d2592760489--- /dev/null+++ b/Meta/CMake/vcpkg/overlay-ports/angle/cmake-buildsystem/cmake/WebKitCompilerFlags-minimal.cmake@@ -0,0 +1,58 @@+# VCPKG NOTE: A minimal version of WebKit's https://github.com/WebKit/WebKit/blob/0742522b24152262b04913242cb0b3c48de92ba0/Source/cmake/WebKitCompilerFlags.cmake+# To support the adapted ANGLE CMake buildsystem++# Checks whether all the given compiler flags are supported by the compiler.+# The _compiler may be either "C" or "CXX", and the result from the check+# will be stored in the variable named by _result.+function(WEBKIT_CHECK_COMPILER_FLAGS _compiler _result)+ string(TOUPPER "${_compiler}" _compiler)+ set(${_result} FALSE PARENT_SCOPE)+ foreach (_flag IN LISTS ARGN)+ # If an equals (=) character is present in a variable name, it will+ # not be cached correctly, and the check will be retried ad nauseam.+ string(REPLACE "=" "__" _cachevar "${_compiler}_COMPILER_SUPPORTS_${_flag}")+ if (${_compiler} STREQUAL CXX)+ check_cxx_compiler_flag("${_flag}" "${_cachevar}")+ elseif (${_compiler} STREQUAL C)+ check_c_compiler_flag("${_flag}" "${_cachevar}")+ else ()+ set(${_cachevar} FALSE CACHE INTERNAL "" FORCE)+ message(WARNING "WEBKIT_CHECK_COMPILER_FLAGS: unknown compiler '${_compiler}'")+ return()+ endif ()+ if (NOT ${_cachevar})+ return()+ endif ()+ endforeach ()+ set(${_result} TRUE PARENT_SCOPE)+endfunction()+++# Appends flags to COMPILE_OPTIONS of _subject if supported by the C+# or CXX _compiler. The _subject argument depends on its _kind, it may be+# a target name (with TARGET as _kind), or a path (with SOURCE or DIRECTORY+# as _kind).+function(WEBKIT_ADD_COMPILER_FLAGS _compiler _kind _subject)+ foreach (_flag IN LISTS ARGN)+ WEBKIT_CHECK_COMPILER_FLAGS(${_compiler} flag_supported "${_flag}")+ if (flag_supported)+ set_property(${_kind} ${_subject} APPEND PROPERTY COMPILE_OPTIONS "${_flag}")+ endif ()+ endforeach ()+endfunction()++# Appends flags to COMPILE_FLAGS of _target if supported by the C compiler.+# Note that it is simply not possible to pass different C and C++ flags, unless+# we drop support for the Visual Studio backend and use the COMPILE_LANGUAGE+# generator expression. This is a very serious limitation.+macro(WEBKIT_ADD_TARGET_C_FLAGS _target)+ WEBKIT_ADD_COMPILER_FLAGS(C TARGET ${_target} ${ARGN})+endmacro()++# Appends flags to COMPILE_FLAGS of _target if supported by the C++ compiler.+# Note that it is simply not possible to pass different C and C++ flags, unless+# we drop support for the Visual Studio backend and use the COMPILE_LANGUAGE+# generator expression. This is a very serious limitation.+macro(WEBKIT_ADD_TARGET_CXX_FLAGS _target)+ WEBKIT_ADD_COMPILER_FLAGS(CXX TARGET ${_target} ${ARGN})+endmacro()diff --git a/Meta/CMake/vcpkg/overlay-ports/angle/cmake-buildsystem/cmake/WebKitMacros-minimal.cmake b/Meta/CMake/vcpkg/overlay-ports/angle/cmake-buildsystem/cmake/WebKitMacros-minimal.cmakenew file mode 100644index 00000000000..f9d5b0d6db2--- /dev/null+++ b/Meta/CMake/vcpkg/overlay-ports/angle/cmake-buildsystem/cmake/WebKitMacros-minimal.cmake@@ -0,0 +1,49 @@+# VCPKG NOTE: A minimal version of WebKit's https://github.com/WebKit/WebKit/blob/0742522b24152262b04913242cb0b3c48de92ba0/Source/cmake/WebKitMacros.cmake+# To support the adapted ANGLE CMake buildsystem++# This file is for macros that are used by multiple projects. If your macro is+# exclusively needed in only one subdirectory of Source (e.g. only needed by+# WebCore), then put it there instead.++macro(WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS)+ set(_file ${CMAKE_CURRENT_SOURCE_DIR}/Platform${PORT}.cmake)+ if (EXISTS ${_file})+ message(STATUS "Using platform-specific CMakeLists: ${_file}")+ include(${_file})+ else ()+ message(STATUS "Platform-specific CMakeLists not found: ${_file}")+ endif ()+endmacro()++function(WEBKIT_COPY_FILES target_name)+ set(options FLATTENED)+ set(oneValueArgs DESTINATION)+ set(multiValueArgs FILES)+ cmake_parse_arguments(opt "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})+ set(files ${opt_FILES})+ set(dst_files)+ foreach (file IN LISTS files)+ if (IS_ABSOLUTE ${file})+ set(src_file ${file})+ else ()+ set(src_file ${CMAKE_CURRENT_SOURCE_DIR}/${file})+ endif ()+ if (opt_FLATTENED)+ get_filename_component(filename ${file} NAME)+ set(dst_file ${opt_DESTINATION}/${filename})+ else ()+ get_filename_component(file_dir ${file} DIRECTORY)+ file(MAKE_DIRECTORY ${opt_DESTINATION}/${file_dir})+ set(dst_file ${opt_DESTINATION}/${file})+ endif ()+ add_custom_command(OUTPUT ${dst_file}+ COMMAND ${CMAKE_COMMAND} -E copy ${src_file} ${dst_file}+ MAIN_DEPENDENCY ${file}+ VERBATIM+ )+ list(APPEND dst_files ${dst_file})+ endforeach ()+ add_custom_target(${target_name} ALL DEPENDS ${dst_files})+endfunction()++diff --git a/Meta/CMake/vcpkg/overlay-ports/angle/portfile.cmake b/Meta/CMake/vcpkg/overlay-ports/angle/portfile.cmakeindex 0935faf84c7..30015ac8940 100644--- a/Meta/CMake/vcpkg/overlay-ports/angle/portfile.cmake+++ b/Meta/CMake/vcpkg/overlay-ports/angle/portfile.cmake@@ -38,9 +38,9 @@ if ("metal" IN_LIST FEATURES)endif()# chromium/7258-set(ANGLE_COMMIT 79ac1a8cd767a32cce6401203e20c4bd4ca4d539)+set(ANGLE_COMMIT d9fc4a372074b1079c193c422fc4a180e79b6636)set(ANGLE_VERSION 7258)-set(ANGLE_SHA512 a3d5d09460f05f1f1c081411bf15f585bb8add5f3db7c4854dc2cf2ef1fd22dd5b2dd5d3de78bfb8bcdae8459dd9581f7dce331acd34053c87c84cfe6c3d134c)+set(ANGLE_SHA512 483f29b6eaac5c657a3aeb238e5da48b9dd92aaa0b5eb3b4f95ebd771360cea84249ef6870dac9e1fc3b6f6c8686fa46a7a45a89a912f9b4fc258575065a28c7)set(ANGLE_THIRDPARTY_ZLIB_COMMIT 4028ebf8710ee39d2286cb0f847f9b95c59f84d8)vcpkg_from_github(@@ -126,35 +126,6 @@ vcpkg_download_distfile(WK_ANGLE_INCLUDE_CMAKELISTS)configure_file("${WK_ANGLE_INCLUDE_CMAKELISTS}" "${SOURCE_PATH}/include/CMakeLists.txt" COPYONLY)-vcpkg_download_distfile(WK_ANGLE_CMAKE_WEBKITCOMPILERFLAGS- URLS "https://github.com/WebKit/WebKit/raw/${ANGLE_WEBKIT_BUILDSYSTEM_COMMIT}/Source/cmake/WebKitCompilerFlags.cmake"- FILENAME "WebKitCompilerFlags.cmake"- SHA512 8b281ffcf9209c845a5fdae48a4e05f08ca677c37a7fb00d9270de81bd103160d26e091724ce8df8d428ad604900b5202b221fed5bafffd4bf00025718ef9d8e-)--if (VCPKG_TARGET_IS_BSD)- # Ladybird: Remove -Wl,--no-undefined as it breaks the build on OpenBSD- file(READ "${WK_ANGLE_CMAKE_WEBKITCOMPILERFLAGS}" _wk_compilerflags_content)- string(REPLACE "-Wl,--no-undefined" "" _wk_compilerflags_content "${_wk_compilerflags_content}")- file(WRITE "${WK_ANGLE_CMAKE_WEBKITCOMPILERFLAGS}" "${_wk_compilerflags_content}")-endif()--file(COPY "${WK_ANGLE_CMAKE_WEBKITCOMPILERFLAGS}" DESTINATION "${SOURCE_PATH}/cmake")--vcpkg_download_distfile(WK_ANGLE_CMAKE_DETECTSSE2- URLS "https://github.com/WebKit/WebKit/raw/${ANGLE_WEBKIT_BUILDSYSTEM_COMMIT}/Source/cmake/DetectSSE2.cmake"- FILENAME "DetectSSE2.cmake"- SHA512 219a4c8591ee31d11eb3d1e4803cc3c9d4573984bb25ecac6f2c76e6a3dab598c00b0157d0f94b18016de6786e49d8b29a161693a5ce23d761c8fe6a798c1bca-)-file(COPY "${WK_ANGLE_CMAKE_DETECTSSE2}" DESTINATION "${SOURCE_PATH}/cmake")--vcpkg_download_distfile(WK_ANGLE_CMAKE_WEBKITMACROS- URLS "https://github.com/WebKit/WebKit/raw/${ANGLE_WEBKIT_BUILDSYSTEM_COMMIT}/Source/cmake/WebKitMacros.cmake"- FILENAME "WebKitMacros.cmake"- SHA512 565175443d5d1b8119af504164bf93840e8c786fc479e45feb98ca542351b91d2ea00265d7f8dfa6960975de81802bc43b2a2af2c90fc44bda1ae46d96c89247-)-file(COPY "${WK_ANGLE_CMAKE_WEBKITMACROS}" DESTINATION "${SOURCE_PATH}/cmake")-# Copy additional custom CMake buildsystem into appropriate foldersfile(GLOB MAIN_BUILDSYSTEM "${CMAKE_CURRENT_LIST_DIR}/cmake-buildsystem/CMakeLists.txt" "${CMAKE_CURRENT_LIST_DIR}/cmake-buildsystem/*.cmake")file(COPY ${MAIN_BUILDSYSTEM} DESTINATION "${SOURCE_PATH}")diff --git a/Meta/CMake/vcpkg/overlay-ports/angle/vcpkg.json b/Meta/CMake/vcpkg/overlay-ports/angle/vcpkg.jsonindex d036fda8393..29010f51617 100644--- a/Meta/CMake/vcpkg/overlay-ports/angle/vcpkg.json+++ b/Meta/CMake/vcpkg/overlay-ports/angle/vcpkg.json@@ -1,7 +1,7 @@{"name": "angle","version-string": "chromium_7258",- "port-version": 0,+ "port-version": 2,"description": ["A conformant OpenGL ES implementation for Windows, Mac and Linux.","The goal of ANGLE is to allow users of multiple operating systems to seamlessly run WebGL and other OpenGL ES content by translating OpenGL ES API calls to one of the hardware-supported APIs available for that platform. ANGLE currently provides translation from OpenGL ES 2.0 and 3.0 to desktop OpenGL, OpenGL ES, Direct3D 9, and Direct3D 11. Support for translation from OpenGL ES to Vulkan is underway, and future plans include compute shader support (ES 3.1) and MacOS support."@@ -28,7 +28,7 @@"features": {"metal": {"description": "Metal support for angle",- "supports": "ios, osx"+ "supports": "osx | ios"}}}diff --git a/vcpkg.json b/vcpkg.jsonindex d3863590dda..a4ecd1591a6 100644--- a/vcpkg.json+++ b/vcpkg.json@@ -250,7 +250,7 @@"overrides": [{"name": "angle",- "version": "chromium_7258#0"+ "version": "chromium_7258#2"},{"name": "brotli",