blob: 4b7e6ef7cc0ae4c5e21174571ce945e203d3c47c [file] [log] [blame]
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Sawbuck builds on Chrome base, uses GYP, GTest, all of which requires
# this build configuration.
vars = {
"chrome_revision": "271365",
"gmock_revision": "453",
"gtest_revision": "664",
"gyp_revision": "1919",
"chrome_base": "http://src.chromium.org/svn/trunk",
# Paths to installed utilities used in hooks. These need to use
# Windows style paths.
"python_path": "src\\third_party\\python_26\\python.exe",
"gyp_path": "src\\tools\\gyp\\gyp_main.py",
}
deps = {
"src/base":
Var("chrome_base") + "/src/base@" + Var("chrome_revision"),
"src/google_apis":
Var("chrome_base") + "/src/google_apis@" + Var("chrome_revision"),
"src/third_party/wtl":
Var("chrome_base") + "/src/third_party/wtl@" +
Var("chrome_revision"),
"src/third_party/zlib":
Var("chrome_base") + "/src/third_party/zlib@" +
Var("chrome_revision"),
"src/third_party/icu":
Var("chrome_base") + "/deps/third_party/icu46@" +
Var("chrome_revision"),
"src/third_party/modp_b64":
Var("chrome_base") + "/src/third_party/modp_b64@" +
Var("chrome_revision"),
"src/third_party/tcmalloc":
Var("chrome_base") + "/src/third_party/tcmalloc@" +
Var("chrome_revision"),
"src/third_party/python_26":
Var("chrome_base") + "/tools/third_party/python_26@" +
Var("chrome_revision"),
"src/third_party/psyco_win32":
Var("chrome_base") + "/deps/third_party/psyco_win32@" +
Var("chrome_revision"),
"src/build":
Var("chrome_base") + "/src/build@" + Var("chrome_revision"),
"src/tools/win":
Var("chrome_base") + "/src/tools/win@" + Var("chrome_revision"),
"src/testing":
Var("chrome_base") + "/src/testing@" + Var("chrome_revision"),
"src/testing/gmock":
"http://googlemock.googlecode.com/svn/trunk@" + Var("gmock_revision"),
"src/testing/gtest":
"http://googletest.googlecode.com/svn/trunk@" + Var("gtest_revision"),
# This brings in GYP.
"src/tools/gyp":
"http://gyp.googlecode.com/svn/trunk@" + Var("gyp_revision"),
# This brings in code coverage tools, like croc. This is required for our
# coverage generation.
"src/tools/code_coverage":
Var("chrome_base") + "/src/tools/code_coverage@" + Var("chrome_revision"),
}
include_rules = [
# Everybody can use some things.
"+base",
"+build",
"+googleurl",
]
hooks = [
{
# A change to a .gyp, .gypi, or to GYP itself should run the generator.
"pattern": ".",
"action": [Var("python_path"),
Var("gyp_path"),
"--include=src/build/common.gypi",
"--include=src/sawbuck/sawbuck.gypi",
"--no-circular-check",
"src/sawbuck/sawbuck.gyp"],
},
]