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 '$CHROME_DIR/tools/build/win/precompiled$OBJSUFFIX', |
| 36 '$CHROME_DIR/tools/build/win/precompiled.h', |
| 37 ]) |
| 38 |
| 39 if not env.Bit('windows'): |
| 40 input_files.Remove( |
| 41 '$CHROME_DIR/tools/build/win/precompiled$OBJSUFFIX', |
| 42 ) |
| 43 |
| 44 if env.Bit('posix'): |
| 45 # TODO(port) |
| 46 input_files.Remove( |
| 47 'webworker.cc', |
| 48 'worker_main.cc', |
| 49 'worker_process.cc', |
| 50 'worker_thread.cc', |
| 51 ) |
| 52 |
| 53 env.ChromeLibrary('worker', input_files) |
| 54 |
| 55 p = env.ChromeMSVSProject('worker.vcproj', |
| 56 dest='$CHROME_SRC_DIR/chrome/worker/worker.vcproj', |
| 57 guid='{C78D02D0-A366-4ec6-A248-AA8E64C4BA18}', |
| 58 keyword='Win32Proj', |
| 59 # TODO(sgk): when we can intuit the hierarchy |
| 60 # from the built targets. |
| 61 #buildtargets=TODO, |
| 62 files=input_files, |
| 63 local_directory_prefix='./', |
| 64 tools=[ |
| 65 'VCPreBuildEventTool', |
| 66 'VCCustomBuildTool', |
| 67 'VCXMLDataGeneratorTool', |
| 68 'VCWebServiceProxyGeneratorTool', |
| 69 'VCMIDLTool', |
| 70 'VCCLCompilerTool', |
| 71 'VCManagedResourceCompilerTool', |
| 72 'VCResourceCompilerTool', |
| 73 'VCPreLinkEventTool', |
| 74 'VCLibrarianTool', |
| 75 'VCALinkTool', |
| 76 'VCXDCMakeTool', |
| 77 'VCBscMakeTool', |
| 78 'VCFxCopTool', |
| 79 'VCPostBuildEventTool', |
| 80 ], |
| 81 ConfigurationType='4') |
| 82 |
| 83 |
| 84 p.AddConfig('Debug|Win32', |
| 85 InheritedPropertySheets=[ |
| 86 '$(SolutionDir)../build/common.vsprops', |
| 87 '$(SolutionDir)../build/debug.vsprops', |
| 88 '../tools/build/win/precompiled.vsprops', |
| 89 ]) |
| 90 |
| 91 p.AddConfig('Release|Win32', |
| 92 InheritedPropertySheets=[ |
| 93 '$(SolutionDir)../build/common.vsprops', |
| 94 '$(SolutionDir)../build/release.vsprops', |
| 95 ]) |
| 96 |
| 97 p.AddFileConfig('../tools/build/win/precompiled.cc', |
| 98 'Debug|Win32', |
| 99 tools=[ |
| 100 MSVSTool('VCCLCompilerTool', |
| 101 UsePrecompiledHeader='1'), |
| 102 ]) |
OLD | NEW |