OLD | NEW |
1 # Copyright (c) 2008 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2008 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import os | 5 import os |
6 import utils | 6 import utils |
7 | 7 |
8 Import('env') | 8 Import('env') |
9 | 9 |
10 env = env.Clone() | 10 env = env.Clone() |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 env.SharedObject(GetInputs('$BROWSER_CPPSRCS')) + | 502 env.SharedObject(GetInputs('$BROWSER_CPPSRCS')) + |
503 GetInputs('$BROWSER_LINKSRCS $BROWSER_SHLINKSRCS')) | 503 GetInputs('$BROWSER_LINKSRCS $BROWSER_SHLINKSRCS')) |
504 outputs['MODULE'] = env.InstallAs('${SHLIBPREFIX}gears${SHLIBSUFFIX}', module) | 504 outputs['MODULE'] = env.InstallAs('${SHLIBPREFIX}gears${SHLIBSUFFIX}', module) |
505 if env['OS'] in ['win32', 'wince'] and env['MODE'] == 'dbg': | 505 if env['OS'] in ['win32', 'wince'] and env['MODE'] == 'dbg': |
506 outputs['MODULE_PDB'] = env.InstallAs('gears.pdb', | 506 outputs['MODULE_PDB'] = env.InstallAs('gears.pdb', |
507 'gears-$OS-$ARCH-$MODE-${BROWSER}.pdb') | 507 'gears-$OS-$ARCH-$MODE-${BROWSER}.pdb') |
508 env.Alias('gears', outputs['MODULE_PDB']) | 508 env.Alias('gears', outputs['MODULE_PDB']) |
509 env.Alias('gears', outputs['MODULE']) | 509 env.Alias('gears', outputs['MODULE']) |
510 | 510 |
511 if env['OS'] == 'win32' and env['BROWSER'] == 'NPAPI': | 511 if env['OS'] == 'win32' and env['BROWSER'] == 'NPAPI': |
512 lib = env.ChromeStaticLibrary('gears-static', | 512 lib = env.ChromeLibrary('gears-static', |
513 env.SharedObject(GetInputs('$BROWSER_CPPSRCS')) + | 513 env.SharedObject(GetInputs('$BROWSER_CPPSRCS')) + |
514 GetInputs('$BROWSER_LINKSRCS')) | 514 GetInputs('$BROWSER_LINKSRCS')) |
515 env.Alias('gears-static', lib) | 515 env.Alias('gears-static', lib) |
516 | 516 |
517 if env['OS'] == 'wince': | 517 if env['OS'] == 'wince': |
518 env.Append(WINCE_SETUP_LINKSRCS = [ | 518 env.Append(WINCE_SETUP_LINKSRCS = [ |
519 [env_res.RES(*PatternRule('$GENFILES_DIR/${SOURCE.filebase}.res', src)) | 519 [env_res.RES(*PatternRule('$GENFILES_DIR/${SOURCE.filebase}.res', src)) |
520 for src in GetInputs('$WINCE_SETUP_RESSRCS')] | 520 for src in GetInputs('$WINCE_SETUP_RESSRCS')] |
521 ]) | 521 ]) |
522 outputs['WINCE_SETUP_DLL'] = env.ChromeSharedLibrary('setup', | 522 outputs['WINCE_SETUP_DLL'] = env.ChromeSharedLibrary('setup', |
(...skipping 18 matching lines...) Expand all Loading... |
541 | 541 |
542 if env['BROWSER'] == 'SF': | 542 if env['BROWSER'] == 'SF': |
543 outputs['PROXY_DLL'] = env.ChromeSharedLibrary('gears_proxy', | 543 outputs['PROXY_DLL'] = env.ChromeSharedLibrary('gears_proxy', |
544 GetInputs('$SF_PROXY_DLL_CPPSRCS')) | 544 GetInputs('$SF_PROXY_DLL_CPPSRCS')) |
545 outputs['INPUTMANAGER_EXE'] = env.ChromeProgram('GearsEnabler', | 545 outputs['INPUTMANAGER_EXE'] = env.ChromeProgram('GearsEnabler', |
546 GetInputs('$SF_INPUTMANAGER_CPPSRCS'), | 546 GetInputs('$SF_INPUTMANAGER_CPPSRCS'), |
547 FRAMEWORKS = env['FRAMEWORKS'] + Split('Foundation AppKit')) | 547 FRAMEWORKS = env['FRAMEWORKS'] + Split('Foundation AppKit')) |
548 | 548 |
549 # See main SConscript for how 'outputs' is used. | 549 # See main SConscript for how 'outputs' is used. |
550 Return('outputs') | 550 Return('outputs') |
OLD | NEW |