goma.gni 856 B

123456789101112131415161718192021222324252627282930
  1. # Copyright (c) 2013 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. # Defines the configuration of Goma.
  5. declare_args() {
  6. # Set to true to enable distributed compilation using Goma.
  7. use_goma = false
  8. # This flag is for ChromeOS compiler wrapper.
  9. # By passing gomacc path via cmd-line arg, ChromeOS' compiler wrapper
  10. # invokes gomacc inside it.
  11. needs_gomacc_path_arg = false
  12. # Absolute directory containing the gomacc binary.
  13. goma_dir = ""
  14. }
  15. if (use_goma && goma_dir == "") {
  16. goma_dir = exec_script("get_goma_dir.py", [], "string")
  17. }
  18. declare_args() {
  19. # TODO(crbug.com/726475): true if use_goma = true in the future.
  20. use_java_goma = false
  21. }
  22. assert(!is_win || !use_goma || is_clang,
  23. "cl.exe does not work on goma, use clang")