Isolate manual artifact validation without package publication

This commit is contained in:
geruipu committed 2026-10-05 13:09:17 +08:00
1 parent 98976747c3
commit d02f1f0b55
75 files changed
+3895 -634

No files matched your search

@@ -0,0 +1,2 @@
# Unified diffs contain space-prefixed empty context lines.
*.patch -whitespace
@@ -0,0 +1,28 @@
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -427,7 +427,8 @@
ldflags = [ "-Wl,--build-id" ]
}
-_use_copy_compiler_dll = angle_has_build && is_win
+declare_args() { angle_copy_compiler_dll = true }
+_use_copy_compiler_dll = angle_has_build && is_win && angle_copy_compiler_dll
if (_use_copy_compiler_dll) {
copy("copy_compiler_dll") {
@@ -1534,6 +1535,7 @@
}
angle_static_library("libGLESv2_static") {
+ complete_static_lib = true
sources = libglesv2_sources
public_deps = [ ":libGLESv2_thin_static" ]
@@ -1652,6 +1654,7 @@
}
libEGL_template("libEGL_static") {
+ complete_static_lib = true
target_type = "angle_static_library"
public_configs = [ ":angle_static_config" ]
deps = [ ":libGLESv2_static" ]
@@ -0,0 +1,20 @@
--- a/build/config/BUILDCONFIG.gn
+++ b/build/config/BUILDCONFIG.gn
@@ -584,7 +584,7 @@
}
if (!defined(use_libcxx_modules)) {
- use_libcxx_modules = is_clang
+ use_libcxx_modules = is_clang && !(is_win && host_os == "linux")
}
if (filter_include(
@@ -715,7 +715,7 @@
}
if (!defined(use_libcxx_modules)) {
- use_libcxx_modules = is_clang
+ use_libcxx_modules = is_clang && !(is_win && host_os == "linux")
}
if (filter_include(
@@ -0,0 +1,64 @@
diff --git a/DEPS b/DEPS
index 8ba99a6..1a5e1a5 100644
--- a/DEPS
+++ b/DEPS
@@ -768,9 +768,4 @@ deps = {
},
- 'third_party/catapult': {
- 'url': Var('chromium_git') + '/catapult.git' + '@' + Var('catapult_revision'),
- 'condition': 'not build_with_chromium',
- },
-
# Cherry is a dEQP/VK-GL-CTS management GUI written in Go. We use it for viewing test results.
'third_party/cherry': {
@@ -795,9 +790,4 @@ deps = {
- 'third_party/dawn': {
- 'url': Var('dawn_git') + '/dawn.git' + '@' + Var('dawn_revision'),
- 'condition': 'checkout_angle_dawn_deps and not build_with_chromium'
- },
-
'third_party/depot_tools': {
'url': Var('chromium_git') + '/chromium/tools/depot_tools.git@94e89b10b92cc9d6e58fc8d1b6474b7d29e8a114',
@@ -875,9 +865,4 @@ deps = {
},
- 'third_party/llvm/src': {
- 'url': Var('chromium_git') + '/external/github.com/llvm/llvm-project@67790d3fb06b184b7be9c4d3e36ab01f0ac4198e',
- 'condition': 'checkout_angle_cl_deps and not build_with_chromium',
- },
-
'third_party/llvm-build/Release+Asserts': {
'dep_type': 'gcs',
@@ -1217,9 +1202,4 @@ deps = {
},
- 'third_party/SwiftShader': {
- 'url': Var('swiftshader_git') + '/SwiftShader@f3e464b1e56795940f826a972b39e19bd9f6ac6c',
- 'condition': 'not build_with_chromium',
- },
-
'third_party/turbine/cipd': {
'packages': [
@@ -1233,8 +1213,4 @@ deps = {
},
- 'third_party/VK-GL-CTS/src': {
- 'url': Var('chromium_git') + '/external/github.com/KhronosGroup/VK-GL-CTS' + '@' + Var('vk_gl_cts_revision'),
- },
-
'third_party/vulkan-deps': {
'url': Var('chromium_git') + '/vulkan-deps@f2b9fece7c6772c09379b3a6938dbcd2573f2a3e',
diff --git a/src/compiler/translator/IntermNode.cpp b/src/compiler/translator/IntermNode.cpp
index 710bba9..33d4a64 100644
--- a/src/compiler/translator/IntermNode.cpp
+++ b/src/compiler/translator/IntermNode.cpp
@@ -881,5 +881,5 @@ const TConstantUnion *TIntermAggregate::getConstantValue() const
angle::base::CheckedNumeric<size_t> checkedArraySize = elementSize;
checkedArraySize *= getOutermostArraySize();
- constArray = new TConstantUnion[checkedArraySize.ValueOrDie()];
+ constArray = new TConstantUnion[static_cast<size_t>(checkedArraySize.ValueOrDie())];
size_t elementOffset = 0u;
@@ -0,0 +1,21 @@
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -1523,7 +1523,18 @@
public_deps = [ ":libANGLE" ]
}
+angle_static_library("libANGLE_static") {
+ complete_static_lib = true
+ public_deps = [ ":libANGLE" ]
+}
+
+angle_static_library("libANGLE_with_capture_static") {
+ complete_static_lib = true
+ public_deps = [ ":libANGLE_with_capture" ]
+}
+
angle_static_library("libGLESv2_static") {
+
sources = libglesv2_sources
public_deps = [ ":libGLESv2_thin_static" ]
}
@@ -0,0 +1,15 @@
--- a/build/mac/find_sdk.py
+++ b/build/mac/find_sdk.py
@@ -1,3 +1,12 @@
+import os,sys,json
+if sys.platform == 'linux' and os.environ.get('STATICLINK_MACOS_SDK'):
+ sdk=os.environ['STATICLINK_MACOS_SDK']
+ if '--print_sdk_path' in sys.argv:print('//'+str(__import__('pathlib').Path.cwd().relative_to(__import__('pathlib').Path(__file__).resolve().parents[2]))+'/sdk/xcode_links/MacOSX15.5.sdk')
+ if '--print_bin_path' in sys.argv:print(os.environ['STATICLINK_DARWIN_TOOLS'])
+ if '--print_sdk_build' in sys.argv:print('24F74')
+ print('15.5')
+ sys.exit(0)
+
#!/usr/bin/env python3
# Copyright 2012 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
@@ -0,0 +1,38 @@
--- a/build/toolchain/gcc_toolchain.gni
+++ b/build/toolchain/gcc_toolchain.gni
@@ -369,6 +369,35 @@
outputs = [ output ]
}
+ if (current_os == "mac") {
+ tool("objc") {
+ output = "$object_subdir/{{source_name_part}}.o"
+ depfile = "$output.d"
+ precompiled_header_type = "gcc"
+
+ # {{output}} may contain .dwo file, so use $output instead of {{output}}
+ # in command.
+ command = "$coverage_wrapper$cc $md -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_objc}}${extra_cppflags}${extra_cflags}${module_name_flag} -c {{source}} -o $output"
+ depsformat = "gcc"
+ description = "OBJC {{output}}"
+ outputs = [ output ]
+ }
+
+ tool("objcxx") {
+ output = "$object_subdir/{{source_name_part}}.o"
+ depfile = "$output.d"
+ precompiled_header_type = "gcc"
+
+ # {{output}} may contain .dwo file, so use $output instead of {{output}}
+ # in command.
+ command = "$coverage_wrapper$cxx $md -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_objcc}}${extra_cppflags}${extra_cxxflags} {{module_deps}}${module_name_flag} -c {{source}} -o $output"
+ depsformat = "gcc"
+ description = "OBJCXX {{output}}"
+ outputs = [ output ]
+ }
+
+ }
+
tool("cxx_module") {
depfile = "{{output}}.d"
@@ -0,0 +1,14 @@
--- a/build/config/apple/sdk_info.py
+++ b/build/config/apple/sdk_info.py
@@ -1,3 +1,11 @@
+import os,sys,json
+if sys.platform == 'linux' and os.environ.get('STATICLINK_MACOS_SDK'):
+ sdk=os.environ['STATICLINK_MACOS_SDK']
+ sdk='//'+str(__import__('pathlib').Path.cwd().relative_to(__import__('pathlib').Path(__file__).resolve().parents[3]))+'/sdk/xcode_links/MacOSX15.5.sdk'
+ values={'xcode_version':'1640','xcode_version_int':1640,'xcode_build':'16F6','sdk_path':sdk,'sdk_version':'15.5','sdk_build':'24F74','sdk_platform_path':sdk,'toolchains_path':os.environ['STATICLINK_DARWIN_TOOLS']}
+ for k,v in values.items():print(k+'='+json.dumps(v))
+ sys.exit(0)
+
#!/usr/bin/env python3
# Copyright 2014 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
@@ -0,0 +1,11 @@
--- a/src/xps/SkXPSDevice.cpp
+++ b/src/xps/SkXPSDevice.cpp
@@ -337,7 +337,7 @@
return true;
}
-static HRESULT subset_typeface(const SkXPSDevice::TypefaceUse& current) {
+HRESULT subset_typeface(const SkXPSDevice::TypefaceUse& current) {
//The CreateFontPackage API is only supported on desktop, not in UWP
#if defined(SK_WINUWP) || defined(SK_BUILD_FOR_WINRT) || defined(SK_BUILD_FOR_NANOSERVER)
return E_NOTIMPL;