mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-29 10:39:49 +01:00
a6c00b2ff6
Add support for building the CEF binary distribution using Bazel and the default platform toolchain. Tested to work for Windows x64, MacOS ARM64 and x64 (cross-compile from ARM64), and Linux x64. Windows x86 (cross-compile from x64) is known to be broken, see https://github.com/bazelbuild/bazel/issues/22164. Includes minor changes to tests directory structure to meet Bazel build requirements.
56 lines
967 B
Python
Executable File
56 lines
967 B
Python
Executable File
# Copyright (c) 2024 The Chromium Embedded Framework Authors. All rights
|
|
# reserved. Use of this source code is governed by a BSD-style license that
|
|
# can be found in the LICENSE file.
|
|
|
|
workspace(name = "cef")
|
|
|
|
#
|
|
# Windows configuration.
|
|
#
|
|
|
|
# Configure windows SDK.
|
|
load("//bazel/win:setup_sdk.bzl", "setup_sdk")
|
|
setup_sdk(name = "winsdk")
|
|
|
|
#
|
|
# Linux configuration.
|
|
#
|
|
|
|
# Configure Linux using pkg-config.
|
|
local_repository(name="pkg_config", path="bazel/linux/pkg_config")
|
|
load("@pkg_config//:pkg_config.bzl", "pkg_config")
|
|
|
|
# Define packages used by cefclient.
|
|
|
|
pkg_config(
|
|
name = "gmodule2",
|
|
pkg_name = "gmodule-2.0",
|
|
)
|
|
|
|
pkg_config(
|
|
name = "gtk3",
|
|
pkg_name = "gtk+-3.0",
|
|
)
|
|
|
|
pkg_config(
|
|
name = "gthread2",
|
|
pkg_name = "gthread-2.0",
|
|
)
|
|
|
|
pkg_config(
|
|
name = "gtkprint3",
|
|
pkg_name = "gtk+-unix-print-3.0",
|
|
)
|
|
|
|
pkg_config(
|
|
name = "xi",
|
|
)
|
|
|
|
# Define packages used by ceftests.
|
|
|
|
pkg_config(
|
|
name = "glib2",
|
|
pkg_name = "glib-2.0",
|
|
)
|
|
|