Frank Henigman | d0ef13a | 2017-08-29 02:53:24 | [diff] [blame] | 1 | # Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | # |
| 5 | # This file is used when gn runs in this directory (or a lower directory |
| 6 | # and searching upward ends here). See "gn help dotfile." |
| 7 | # As a result this file will only affect stand-alone ANGLE builds, |
| 8 | # not chromium builds. |
| 9 | |
Tobin Ehlis | 9b1462a | 2018-05-21 22:40:57 | [diff] [blame] | 10 | import("//build/dotfile_settings.gni") |
Geoff Lang | 66ae531 | 2019-04-01 20:35:53 | [diff] [blame] | 11 | import("//dotfile_settings.gni") |
Jamie Madill | 7b7ada6 | 2018-02-05 19:49:15 | [diff] [blame] | 12 | |
Frank Henigman | d0ef13a | 2017-08-29 02:53:24 | [diff] [blame] | 13 | # Location of the build configuration file. |
| 14 | buildconfig = "//build/config/BUILDCONFIG.gn" |
| 15 | |
angle-autoroll | 7108e06 | 2021-06-08 09:55:11 | [diff] [blame] | 16 | # The python interpreter to use by default. On Windows, this will look |
| 17 | # for python3.exe and python3.bat. |
| 18 | script_executable = "python3" |
| 19 | |
Frank Henigman | d0ef13a | 2017-08-29 02:53:24 | [diff] [blame] | 20 | # These are the targets to check headers for by default. The files in targets |
| 21 | # matching these patterns (see "gn help label_pattern" for format) will have |
| 22 | # their includes checked for proper dependencies when you run either |
| 23 | # "gn check" or "gn gen --check". |
Liza Burakova | e8a3493 | 2024-02-14 21:51:00 | [diff] [blame] | 24 | # check_targets = [ "*" ] |
Frank Henigman | d0ef13a | 2017-08-29 02:53:24 | [diff] [blame] | 25 | |
Trevor David Black | e815afb | 2020-09-07 22:09:22 | [diff] [blame] | 26 | # These are the list of GN files that run exec_script. This allowlist exists |
Frank Henigman | d0ef13a | 2017-08-29 02:53:24 | [diff] [blame] | 27 | # to force additional review for new uses of exec_script, which is strongly |
| 28 | # discouraged except for gypi_to_gn calls. |
Dirk Pranke | 072eec0 | 2025-01-21 21:09:44 | [diff] [blame] | 29 | exec_script_allowlist = angle_dotfile_settings.exec_script_allowlist + |
| 30 | build_dotfile_settings.exec_script_allowlist + |
Frank Henigman | a7f97a2 | 2018-08-21 04:04:05 | [diff] [blame] | 31 | [ |
Jamie Madill | 7b7ada6 | 2018-02-05 19:49:15 | [diff] [blame] | 32 | "//build/config/sysroot.gni", |
| 33 | "//build/config/win/BUILD.gn", |
| 34 | "//build/config/win/visual_studio_version.gni", |
| 35 | "//build/gn_helpers.py", |
Geoff Lang | 66ae531 | 2019-04-01 20:35:53 | [diff] [blame] | 36 | "//build_overrides/build.gni", |
Jamie Madill | 7b7ada6 | 2018-02-05 19:49:15 | [diff] [blame] | 37 | ] |
Frank Henigman | d0ef13a | 2017-08-29 02:53:24 | [diff] [blame] | 38 | |
| 39 | default_args = { |
Tom Sepez | 7d8f074 | 2025-08-06 20:12:29 | [diff] [blame] | 40 | clang_use_chrome_plugins = true |
Frank Henigman | d0ef13a | 2017-08-29 02:53:24 | [diff] [blame] | 41 | build_angle_deqp_tests = true |
Tobin Ehlis | 9d4277b | 2018-05-21 22:22:22 | [diff] [blame] | 42 | use_sysroot = true |
Jamie Madill | acd15ca | 2020-10-11 21:16:34 | [diff] [blame] | 43 | |
Tom Sepez | ff95cc9 | 2025-08-15 22:05:15 | [diff] [blame] | 44 | # Turns on unsafe buffer warning suppressions during build. |
| 45 | clang_unsafe_buffers_paths = "//unsafe_buffers_paths.txt" |
| 46 | |
Jamie Madill | acd15ca | 2020-10-11 21:16:34 | [diff] [blame] | 47 | # Saves on importing extra dependencies and ANGLE doesn't use JS. |
| 48 | enable_js_protobuf = false |
Jamie Madill | 68f1203 | 2021-04-14 01:55:07 | [diff] [blame] | 49 | |
angle-autoroll | 9554950 | 2025-04-14 09:48:39 | [diff] [blame] | 50 | # Needed only for std::atomic_ref<T> for large Ts http://crbug.com/402171653 |
| 51 | use_llvm_libatomic = false |
| 52 | |
Jamie Madill | 68f1203 | 2021-04-14 01:55:07 | [diff] [blame] | 53 | # Disable location tags in isolates. |
| 54 | tests_have_location_tags = false |
Jamie Madill | d170f8e | 2021-04-20 23:17:17 | [diff] [blame] | 55 | |
| 56 | # Use base level API level 29 support for AHardwareBuffer ANGLE tests. |
Yuxin Hu | 26e790f7 | 2025-05-21 21:07:40 | [diff] [blame] | 57 | android_ndk_api_level = 29 |
Yuly Novikov | b71fe1c | 2024-05-16 15:10:09 | [diff] [blame] | 58 | |
| 59 | vma_vulkan_headers_dir = "//third_party/vulkan-headers/src" |
Junji Watanabe | 0a47f44 | 2025-05-27 07:00:38 | [diff] [blame] | 60 | |
| 61 | # Use Siso instead of Ninja. |
| 62 | use_siso = true |
Yuly Novikov | c5a4aaa | 2025-08-21 12:34:30 | [diff] [blame] | 63 | |
| 64 | # TODO(439777063): llvm and Dawn need to fix includes |
| 65 | use_clang_modules = false |
Frank Henigman | d0ef13a | 2017-08-29 02:53:24 | [diff] [blame] | 66 | } |
Liza Burakova | e8a3493 | 2024-02-14 21:51:00 | [diff] [blame] | 67 | |
| 68 | no_check_targets = [ "third_party/dawn/*" ] |