summaryrefslogtreecommitdiffstats
path: root/site_scons
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-06 20:17:54 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-06 20:17:54 +0000
commitf13664468e01dbac458762412ba9be3afb4f543c (patch)
tree89eb7f4a664f6fcf5938eff9739a57600428af7d /site_scons
parentb8615376ec35c6b328ec67325289e0b126f5f4cd (diff)
downloadchromium_src-f13664468e01dbac458762412ba9be3afb4f543c.zip
chromium_src-f13664468e01dbac458762412ba9be3afb4f543c.tar.gz
chromium_src-f13664468e01dbac458762412ba9be3afb4f543c.tar.bz2
Add a Repack tool to scons. This is used to compile linux resources
together (kind of like the windows RES builder). I also moved the GRIT builder into the chromium site_scons since we import it in lots of places. This seems cleaner. Review URL: http://codereview.chromium.org/21115 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9331 0039d316-1c4b-4281-b951-d872f2087c98
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