blob: c0f4cf2825289f9bccaba909318d1e1d535b9f55 [file] [log] [blame]
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +00001# 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
5# Defines the configuration of Goma.
6#
7# This is currently designed to match the GYP build exactly, so as not to break
8# people during the transition.
9
10declare_args() {
Torne (Richard Coles)a1401312014-03-18 10:20:56 +000011 # Set to true to enable distributed compilation using Goma.
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +000012 use_goma = false
13
Torne (Richard Coles)a1401312014-03-18 10:20:56 +000014 # Set the default value based on the platform.
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +000015 if (is_win) {
Torne (Richard Coles)a1401312014-03-18 10:20:56 +000016 # Absolute directory containing the Goma source code.
17 goma_dir = "C:\goma\goma-win"
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +000018 } else {
Torne (Richard Coles)a1401312014-03-18 10:20:56 +000019 # Absolute directory containing the Goma source code.
20 goma_dir = getenv("HOME") + "/goma"
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +000021 }
22}