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
4 changes: 1 addition & 3 deletions build/config/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@ import("//build/config/allocator.gni")
import("//build/config/crypto.gni")
import("//build/config/features.gni")
import("//build/config/ui.gni")
import("//build/config/dcheck_always_on.gni")

declare_args() {
# When set, turns off the (normally-on) iterator debugging and related stuff
# that is normally turned on for Debug builds. These are generally useful for
# catching bugs but in some cases may cause conflicts or excessive slowness.
disable_iterator_debugging = false

# Set to true to enable dcheck in Release builds.
dcheck_always_on = false

# Set to true to compile with the OpenGL ES 2.0 conformance tests.
internal_gles2_conform_tests = false
}
Expand Down
11 changes: 11 additions & 0 deletions build/config/dcheck_always_on.gni
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Copyright (c) 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# Needed for ANGLE build.
dcheck_is_configurable = false

declare_args() {
# Set to true to enable dcheck in Release builds.
dcheck_always_on = false
}
2 changes: 2 additions & 0 deletions build/config/sanitizers/sanitizers.gni
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ declare_args() {
# GCS.
use_prebuilt_instrumented_libraries = false
}

use_fuzzing_engine = false
6 changes: 6 additions & 0 deletions build/config/ui.gni
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@ declare_args() {
# window system events and input.
use_glfw = false
}

# For ANGLE build. It's a build option there, but hard-coded here.
use_x11 = false

# For ANGLE build. It's a build option there, but hard-coded here.
use_ozone = false
11 changes: 11 additions & 0 deletions build/secondary/testing/libfuzzer/fuzzer_test.gni
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# 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.

# This is a dummy implementation to satisfy the ANGLE build, using the no-op
# implementation from the real (Chromium) fuzzer_test.gni.
template("fuzzer_test") {
not_needed(invoker, "*")
group(target_name) {
}
}
6 changes: 6 additions & 0 deletions build/secondary/testing/test.gni
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# 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.

# This is a dummy file to satisfy the ANGLE build. Flutter's use of ANGLE
# doesn't actually require any of the real content.
11 changes: 11 additions & 0 deletions build/secondary/third_party/jsoncpp/BUILD.gn
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# 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.

# The ANGLE build rules have a target that depends on jsoncpp, but the Flutter
# engine never actually builds that target, so just this provides empty dummy
# dependencies to satisfy the generation-time resolution.
config("jsoncpp_config") {
}
group("jsoncpp") {
}
4 changes: 2 additions & 2 deletions build/secondary/third_party/swiftshader_flutter/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ source_set("main") {

shared_library("egl") {
if (is_win) {
output_name = "libEGL"
output_name = "libEGL64_translator"
} else {
output_name = "EGL"
}
Expand Down Expand Up @@ -645,7 +645,7 @@ shared_library("egl") {

shared_library("gles") {
if (is_win) {
output_name = "libGLESv2"
output_name = "lib64GLES_V2_translator"
} else {
output_name = "GLESv2"
}
Expand Down
7 changes: 7 additions & 0 deletions build/secondary/ui/ozone/ozone.gni
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# 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.

# ANGLE requires this variable, but it doesn't need to be configurable for
# Flutter so just unconditionally set it to false.
ozone_platform_gbm = false
12 changes: 12 additions & 0 deletions build_overrides/angle.gni
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.

# The ANGLE build requires this file to point to the location of third-party
# 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"
8 changes: 8 additions & 0 deletions build_overrides/build.gni
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# 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.

# Set for ANGLE. This buildroot is close enough to Chromium's buildroot
# (with the addition of some dummy files) to allow building in this mode; the
# non-Chromium build mode for ANGLE is far too different.
build_with_chromium = true