build.gni 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Copyright 2018 Google Inc.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # https://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. # Variable that can be used to support multiple build scenarios, like having
  15. # Chromium specific targets in a client project's GN file etc.
  16. build_with_chromium = false
  17. # Don't use Chromium's third_party/binutils.
  18. linux_use_bundled_binutils_override = false
  19. declare_args() {
  20. # Android 32-bit non-component, non-clang builds cannot have symbol_level=2
  21. # due to 4GiB file size limit, see https://crbug.com/648948.
  22. # Set this flag to true to skip the assertion.
  23. ignore_elf32_limitations = false
  24. # Use the system install of Xcode for tools like ibtool, libtool, etc.
  25. # This does not affect the compiler. When this variable is false, targets will
  26. # instead use a hermetic install of Xcode. [The hermetic install can be
  27. # obtained with gclient sync after setting the environment variable
  28. # FORCE_MAC_TOOLCHAIN].
  29. use_system_xcode = ""
  30. }
  31. if (use_system_xcode == "") {
  32. if (target_os == "mac") {
  33. _result = exec_script("//build/mac/should_use_hermetic_xcode.py",
  34. [ target_os ],
  35. "value")
  36. use_system_xcode = _result == 0
  37. }
  38. if (target_os == "ios") {
  39. use_system_xcode = true
  40. }
  41. }