Edit

kc3-lang/angle/.gn

Branch :

  • Show log

    Commit

  • Author : Jamie Madill
    Date : 2021-04-20 19:17:17
    Hash : d170f8e1
    Message : infra: Add configs for Android build. Updates the configs to use the new protobuf properties. Adds support for ARM/ARM64 Android builds. Must be landed in conjunction with http://crrev.com/c/2841787 . Bug: angleproject:2344 Bug: angleproject:5114 Change-Id: I49f4f46ceaa7ce9118c9f4b4ceb06353b00429b6 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2842306 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: Yuly Novikov <ynovikov@chromium.org>

  • .gn
  • # Copyright 2017 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.
    #
    # This file is used when gn runs in this directory (or a lower directory
    # and searching upward ends here).  See "gn help dotfile."
    # As a result this file will only affect stand-alone ANGLE builds,
    # not chromium builds.
    
    import("//build/dotfile_settings.gni")
    import("//dotfile_settings.gni")
    
    # Location of the build configuration file.
    buildconfig = "//build/config/BUILDCONFIG.gn"
    
    # These are the targets to check headers for by default. The files in targets
    # matching these patterns (see "gn help label_pattern" for format) will have
    # their includes checked for proper dependencies when you run either
    # "gn check" or "gn gen --check".
    check_targets = [ "*" ]
    
    # These are the list of GN files that run exec_script. This allowlist exists
    # to force additional review for new uses of exec_script, which is strongly
    # discouraged except for gypi_to_gn calls.
    exec_script_whitelist = angle_dotfile_settings.exec_script_whitelist +
                            build_dotfile_settings.exec_script_whitelist +
                            [
                              "//build/config/sysroot.gni",
                              "//build/config/win/BUILD.gn",
                              "//build/config/win/visual_studio_version.gni",
                              "//build/gn_helpers.py",
                              "//build_overrides/build.gni",
                            ]
    
    default_args = {
      clang_use_chrome_plugins = true
      build_angle_deqp_tests = true
      use_sysroot = true
    
      # Saves on importing extra dependencies and ANGLE doesn't use JS.
      enable_js_protobuf = false
    
      # Disable location tags in isolates.
      tests_have_location_tags = false
    
      # Use base level API level 29 support for AHardwareBuffer ANGLE tests.
      android32_ndk_api_level = 29
      android64_ndk_api_level = 29
    }