diff options
author | sgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-03 21:09:06 +0000 |
---|---|---|
committer | sgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-03 21:09:06 +0000 |
commit | 4e2c5ff0e0221158e3574ea2536d6a42a3c1be64 (patch) | |
tree | 3ce08432505c85f849a6d3d6d00e800a75523b07 /build/SConscript.main | |
parent | 1c61f00626c546cf99f5b18a48b15198cf38b73a (diff) | |
download | chromium_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/SConscript.main')
-rw-r--r-- | build/SConscript.main | 17 |
1 files changed, 17 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'] |