Skip to content
This repository was archived by the owner on Apr 21, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion build/config/BUILDCONFIG.gn
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,13 @@ is_apple = is_ios || is_mac
# Needed for some third_party build files from Chromium.
is_nacl = false

# Needed for //third_party/angle.
is_chromecast = false
is_chromeos_lacros = false
ozone_platform_headless = false
ozone_platform_x11 = false
ozone_platform_wayland = false

default_library_type = "static_library"

# =============================================================================
Expand All @@ -294,7 +301,8 @@ default_library_type = "static_library"

# These Sanitizers all imply using the Clang compiler. On Windows they either
# don't work or work differently.
if (!is_clang && (is_asan || is_lsan || is_tsan || is_msan)) {
using_sanitizer = !is_win && (is_asan || is_lsan || is_tsan || is_msan)
if (!is_clang && using_sanitizer) {
is_clang = true
}

Expand Down
4 changes: 0 additions & 4 deletions build/config/compiler/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ config("default_include_dirs") {
]
}

if (!is_win) {
using_sanitizer = is_asan || is_lsan || is_tsan || is_msan
}

# compiler ---------------------------------------------------------------------
#
# Base compiler configuration.
Expand Down
12 changes: 12 additions & 0 deletions build/win/BUILD.gn
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright 2019 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# Windows DLLs on which Flutter has a runtime dependency that should be shipped
# with our distributable binaries.
#
# This target is for compatibility with the Chromium buildroot. In particular,
# //third_party/angle depends on it.
group("runtime_libs") {
data = []
}
6 changes: 4 additions & 2 deletions build_overrides/angle.gni
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,20 @@ import("//build/toolchain/toolchain.gni")

# The ANGLE build requires this file to point to the location of third-party
# dependencies.

angle_root = "//third_party/angle"

# Flutter's buildroot looks enough like Chromium to satisfy Angle, and enough
# to cause GN variable collisions if we don't set this.
angle_has_build = true

# Overrides for ANGLE's dependencies.
angle_googletest_dir = "//third_party/googletest/src"
angle_libpng_dir = "//third_party/libpng"
# Note: This path doesn't actually exist; see
# //build/secondary/third_party/jsoncpp/BUILD.gn
angle_jsoncpp_dir = "//third_party/jsoncpp"
angle_libpng_dir = "//third_party/libpng"
angle_spirv_headers_dir = "//third_party/spirv_headers"
angle_spirv_tools_dir = "//third_party/spirv_tools_flutter"

# This is a general Chromium flag, but in the Flutter build only ANGLE needs it
# so it is defined here.
Expand Down
10 changes: 10 additions & 0 deletions build_overrides/spirv_tools.gni
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright 2019 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# We are building inside Flutter.
spirv_tools_standalone = false

# Paths to SPIRV-Tools dependencies in Flutter.
spirv_tools_googletest_dir = "//third_party/googletest"
spirv_tools_spirv_headers_dir = "//third_party/spirv_headers"
9 changes: 9 additions & 0 deletions build_overrides/swiftshader.gni
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright 2019 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# We are building SwiftShader in Flutter.
swiftshader_standalone = false

# Path to SwiftShader.
swiftshader_dir = "//third_party/swiftshader"