Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1712)

Unified Diff: site_scons/site_tools/chromium_builders.py

Issue 21115: Add a Repack tool to scons. This is used to compile linux resources (Closed)
Patch Set: comments Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/net_resources.scons ('k') | tools/data_pack/scons.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: site_scons/site_tools/chromium_builders.py
diff --git a/site_scons/site_tools/chromium_builders.py b/site_scons/site_tools/chromium_builders.py
index ae781d4bd5942cd0d55541044c87ed3759af7938..ec1e34785116dd83cec18608329b3f95c8fcf50b 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
« no previous file with comments | « net/net_resources.scons ('k') | tools/data_pack/scons.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698