summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorsgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-03 21:09:06 +0000
committersgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-03 21:09:06 +0000
commit4e2c5ff0e0221158e3574ea2536d6a42a3c1be64 (patch)
tree3ce08432505c85f849a6d3d6d00e800a75523b07 /build
parent1c61f00626c546cf99f5b18a48b15198cf38b73a (diff)
downloadchromium_src-4e2c5ff0e0221158e3574ea2536d6a42a3c1be64.zip
chromium_src-4e2c5ff0e0221158e3574ea2536d6a42a3c1be64.tar.gz
chromium_src-4e2c5ff0e0221158e3574ea2536d6a42a3c1be64.tar.bz2
Add Chrome* pseudo-builders to the base construction environment to wrap the Command() and {Static,Shared}Library() builders calls. These provide a common place for us to abstact Windows/Mac/Linux differences in how we want these built.
Added to both SConscript.main and SConscript.main.linux. TBR: evanm,bradnelson git-svn-id: svn://svn.chromium.org/chrome/trunk/src@301 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/SConscript.main17
-rw-r--r--build/SConscript.main.linux17
2 files changed, 34 insertions, 0 deletions
diff --git a/build/SConscript.main b/build/SConscript.main
index 92f93f6..9bd5c89b 100644
--- a/build/SConscript.main
+++ b/build/SConscript.main
@@ -99,6 +99,23 @@ env = Environment(
)
+def ChromeProgram(env, *args, **kw):
+ return env.Program(*args, **kw)
+env.AddMethod(ChromeProgram, "ChromeProgram")
+
+def ChromeTestProgram(env, *args, **kw):
+ return env.Program(*args, **kw)
+env.AddMethod(ChromeTestProgram, "ChromeTestProgram")
+
+def ChromeStaticLibrary(env, *args, **kw):
+ return env.StaticLibrary(*args, **kw)
+env.AddMethod(ChromeStaticLibrary, "ChromeStaticLibrary")
+
+def ChromeSharedLibrary(env, *args, **kw):
+ return env.SharedLibrary(*args, **kw)
+env.AddMethod(ChromeSharedLibrary, "ChromeSharedLibrary")
+
+
if env['PLATFORM'] == 'win32':
msvs_env = Environment(tools=['msvc', 'mslink', 'msvs'])['ENV']
diff --git a/build/SConscript.main.linux b/build/SConscript.main.linux
index 87bf05a..c0e7f9e 100644
--- a/build/SConscript.main.linux
+++ b/build/SConscript.main.linux
@@ -96,6 +96,23 @@ env = Environment(
)
+def ChromeProgram(env, *args, **kw):
+ return env.Program(*args, **kw)
+env.AddMethod(ChromeProgram, "ChromeProgram")
+
+def ChromeTestProgram(env, *args, **kw):
+ return env.Program(*args, **kw)
+env.AddMethod(ChromeTestProgram, "ChromeTestProgram")
+
+def ChromeStaticLibrary(env, *args, **kw):
+ return env.StaticLibrary(*args, **kw)
+env.AddMethod(ChromeStaticLibrary, "ChromeStaticLibrary")
+
+def ChromeSharedLibrary(env, *args, **kw):
+ return env.SharedLibrary(*args, **kw)
+env.AddMethod(ChromeSharedLibrary, "ChromeSharedLibrary")
+
+
if env['PLATFORM'] == 'win32':
msvs_env = Environment(tools=['msvc', 'mslink', 'msvs'])['ENV']