Edit

kc3-lang/angle/build_overrides/build.gni

Branch :

  • Show log

    Commit

  • Author : Geoff Lang
    Date : 2019-10-17 14:36:41
    Hash : 6e687af2
    Message : Support standalone Android builds in ANGLE. By disabling apk generation, we can build all of our targets in a standalone ANGLE checkout on Linux. This allows tools like gn desc to give us useful information about Android builds. BUG=angleproject:4026,angleproject:2344 Change-Id: Ic46348fd06c5174ce5e5a4d89ceb391246c6ac6b Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1866080 Reviewed-by: Courtney Goeltzenleuchter <courtneygo@google.com> Reviewed-by: Yuly Novikov <ynovikov@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>

  • build_overrides/build.gni
  • # Copyright 2017 The ANGLE Project Authors. All rights reserved.
    # Use of this source code is governed by a BSD-style license that can be
    # found in the LICENSE file.
    
    declare_args() {
      build_with_chromium = false
      ignore_elf32_limitations = true
      linux_use_bundled_binutils_override = false
    
      use_system_xcode = ""
    }
    
    if (host_os == "mac" && use_system_xcode == "") {
      _result = exec_script("//build/mac/should_use_hermetic_xcode.py",
                            [ target_os ],
                            "value")
    
      assert(_result != 2,
             "Do not allow building targets with the default" +
                 "hermetic toolchain if the minimum OS version is not met.")
      assert(_result != 3,
             "iOS does not support building with a hermetic toolchain. " +
                 "Please install Xcode.")
    
      use_system_xcode = _result != 1
    }
    
    # ANGLE standalone builds don't currently support java templates or APK generation
    enable_java_templates = build_with_chromium