bazel: win: Remove cef_sandbox.lib linking (see #3824)

Support for bootstrap executables will be added later.
This commit is contained in:
Marshall Greenblatt
2025-05-13 18:16:59 -04:00
parent 572c44bc2e
commit dadfe2c8dc
4 changed files with 4 additions and 38 deletions

View File

@@ -12,8 +12,7 @@ load("@bazel_skylib//lib:selects.bzl", "selects")
load("//bazel:library_helpers.bzl", "declare_cc_library", "declare_objc_library")
load("//bazel/win:variables.bzl",
WIN_DLLS="DLLS",
WIN_DLLS_X64="DLLS_X64",
WIN_SANDBOX_LIBS="SANDBOX_LIBS")
WIN_DLLS_X64="DLLS_X64")
load("//bazel/linux:variables.bzl",
LINUX_SOS="SOS")
load("//bazel/mac:variables.bzl",
@@ -153,14 +152,11 @@ declare_cc_library(
}),
)
# Only available on MacOS/Windows.
# Only available on MacOS.
declare_cc_library(
name = "cef_sandbox_linkflags",
linkopts = select({
"@platforms//os:macos": ["-lsandbox"],
"@platforms//os:windows": [
"/DEFAULTLIB:{}".format(lib) for lib in WIN_SANDBOX_LIBS
],
"//conditions:default": [],
}),
)
@@ -169,7 +165,6 @@ cc_import(
name = "cef_sandbox_debug",
static_library = select({
"@platforms//os:macos": "Debug/cef_sandbox.a",
"@platforms//os:windows": "Debug/cef_sandbox.lib",
"//conditions:default": None,
}),
deps = [":cef_sandbox_linkflags"],
@@ -179,7 +174,6 @@ cc_import(
name = "cef_sandbox_release",
static_library = select({
"@platforms//os:macos": "Release/cef_sandbox.a",
"@platforms//os:windows": "Release/cef_sandbox.lib",
"//conditions:default": None,
}),
deps = [":cef_sandbox_linkflags"],

View File

@@ -22,6 +22,7 @@ LINK_LIBS = [
"glu32.lib",
"imm32.lib",
"opengl32.lib",
"shell32.lib",
]
DELAYLOAD_DLLS = [