summaryrefslogtreecommitdiffstats
path: root/site_scons
diff options
context:
space:
mode:
Diffstat (limited to 'site_scons')
-rw-r--r--site_scons/site_tools/chromium_builders.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/site_scons/site_tools/chromium_builders.py b/site_scons/site_tools/chromium_builders.py
index ae781d4..ec1e347 100644
--- a/site_scons/site_tools/chromium_builders.py
+++ b/site_scons/site_tools/chromium_builders.py
@@ -8,6 +8,8 @@ wrappers around Hammer builders. This gives us a central place for any
customization we need to make to the different things we build.
"""
+import sys
+
from SCons.Script import *
import SCons.Node
@@ -163,5 +165,13 @@ def generate(env):
env.AddMethod(ChromeMSVSProject)
env.AddMethod(ChromeMSVSSolution)
+ # Add the grit tool to the base environment because we use this a lot.
+ sys.path.append(env.Dir('$CHROME_SRC_DIR/tools/grit').abspath)
+ env.Tool('scons', toolpath=[env.Dir('$CHROME_SRC_DIR/tools/grit/grit')])
+
+ # Add the repack python script tool that we use in multiple places.
+ sys.path.append(env.Dir('$CHROME_SRC_DIR/tools/data_pack').abspath)
+ env.Tool('scons', toolpath=[env.Dir('$CHROME_SRC_DIR/tools/data_pack/')])
+
def exists(env):
return True