| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 Import('env') | |
| 6 | |
| 7 env = env.Clone() | |
| 8 | |
| 9 env.SConscript([ | |
| 10 # '$NPAPI_DIR/using_npapi.scons', | |
| 11 # '$SKIA_DIR/using_skia.scons', | |
| 12 ], {'env':env}) | |
| 13 | |
| 14 env.Prepend( | |
| 15 CPPPATH = [ | |
| 16 '$CHROME_SRC_DIR', | |
| 17 ], | |
| 18 ) | |
| 19 | |
| 20 if env.Bit('windows'): | |
| 21 env.Prepend( | |
| 22 CPPPATH = [ | |
| 23 '$CHROME_DIR/tools/build/win', | |
| 24 ], | |
| 25 ) | |
| 26 | |
| 27 input_files = ChromeFileList([ | |
| 28 'webworkerclient_proxy.cc', | |
| 29 'webworkerclient_proxy.h', | |
| 30 'worker_main.cc', | |
| 31 'worker_process.cc', | |
| 32 'worker_process.h', | |
| 33 'worker_thread.cc', | |
| 34 'worker_thread.h', | |
| 35 'worker_webkitclient_impl.cc', | |
| 36 'worker_webkitclient_impl.h', | |
| 37 '$CHROME_DIR/tools/build/win/precompiled$OBJSUFFIX', | |
| 38 '$CHROME_DIR/tools/build/win/precompiled.h', | |
| 39 ]) | |
| 40 | |
| 41 if not env.Bit('windows'): | |
| 42 input_files.Remove( | |
| 43 '$CHROME_DIR/tools/build/win/precompiled$OBJSUFFIX', | |
| 44 ) | |
| 45 | |
| 46 if env.Bit('posix'): | |
| 47 # TODO(port) | |
| 48 input_files.Remove( | |
| 49 'webworker.cc', | |
| 50 'worker_main.cc', | |
| 51 'worker_process.cc', | |
| 52 'worker_thread.cc', | |
| 53 'worker_webkitclient_impl.cc', | |
| 54 ) | |
| 55 | |
| 56 env.ChromeLibrary('worker', input_files) | |
| 57 | |
| 58 p = env.ChromeMSVSProject('worker.vcproj', | |
| 59 dest='$CHROME_SRC_DIR/chrome/worker/worker.vcproj', | |
| 60 guid='{C78D02D0-A366-4ec6-A248-AA8E64C4BA18}', | |
| 61 keyword='Win32Proj', | |
| 62 # TODO(sgk): when we can intuit the hierarchy | |
| 63 # from the built targets. | |
| 64 #buildtargets=TODO, | |
| 65 files=input_files, | |
| 66 local_directory_prefix='./', | |
| 67 tools=[ | |
| 68 'VCPreBuildEventTool', | |
| 69 'VCCustomBuildTool', | |
| 70 'VCXMLDataGeneratorTool', | |
| 71 'VCWebServiceProxyGeneratorTool', | |
| 72 'VCMIDLTool', | |
| 73 'VCCLCompilerTool', | |
| 74 'VCManagedResourceCompilerTool', | |
| 75 'VCResourceCompilerTool', | |
| 76 'VCPreLinkEventTool', | |
| 77 'VCLibrarianTool', | |
| 78 'VCALinkTool', | |
| 79 'VCXDCMakeTool', | |
| 80 'VCBscMakeTool', | |
| 81 'VCFxCopTool', | |
| 82 'VCPostBuildEventTool', | |
| 83 ], | |
| 84 ConfigurationType='4') | |
| 85 | |
| 86 | |
| 87 p.AddConfig('Debug|Win32', | |
| 88 InheritedPropertySheets=[ | |
| 89 '$(SolutionDir)../build/common.vsprops', | |
| 90 '$(SolutionDir)../build/debug.vsprops', | |
| 91 '../tools/build/win/precompiled.vsprops', | |
| 92 ]) | |
| 93 | |
| 94 p.AddConfig('Release|Win32', | |
| 95 InheritedPropertySheets=[ | |
| 96 '$(SolutionDir)../build/common.vsprops', | |
| 97 '$(SolutionDir)../build/release.vsprops', | |
| 98 ]) | |
| 99 | |
| 100 p.AddFileConfig('../tools/build/win/precompiled.cc', | |
| 101 'Debug|Win32', | |
| 102 tools=[ | |
| 103 MSVSTool('VCCLCompilerTool', | |
| 104 UsePrecompiledHeader='1'), | |
| 105 ]) | |
| OLD | NEW |