OLD | NEW |
| (Empty) |
1 # Copyright (c) 2006-2008 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 # TODO(sgk): violate standard indentation so we don't have to | |
29 # reindent too much when we remove the explicit MSVSFilter() calls | |
30 # in favor of generating the hierarchy to reflect the file system. | |
31 MSVSFilter('NPObject', [ | |
32 'npobject_proxy.cc', | |
33 'npobject_proxy.h', | |
34 'npobject_stub.cc', | |
35 'npobject_stub.h', | |
36 'npobject_util.cc', | |
37 'npobject_util.h', | |
38 ]), | |
39 'chrome_plugin_host.cc', | |
40 'chrome_plugin_host.h', | |
41 'plugin_channel.cc', | |
42 'plugin_channel.h', | |
43 'plugin_channel_base.cc', | |
44 'plugin_channel_base.h', | |
45 'plugin_main.cc', | |
46 'plugin_process.cc', | |
47 'plugin_process.h', | |
48 'plugin_thread.cc', | |
49 'plugin_thread.h', | |
50 '$CHROME_DIR/tools/build/win/precompiled$OBJSUFFIX', | |
51 '$CHROME_DIR/tools/build/win/precompiled.h', | |
52 'webplugin_delegate_stub.cc', | |
53 'webplugin_delegate_stub.h', | |
54 'webplugin_proxy.cc', | |
55 'webplugin_proxy.h', | |
56 ]) | |
57 | |
58 if not env.Bit('windows'): | |
59 input_files.Remove( | |
60 '$CHROME_DIR/tools/build/win/precompiled$OBJSUFFIX', | |
61 ) | |
62 | |
63 if env.Bit('posix'): | |
64 # TODO(port) | |
65 input_files.Remove( | |
66 'chrome_plugin_host.cc', | |
67 'npobject_proxy.cc', | |
68 'npobject_stub.cc', | |
69 'plugin_channel.cc', | |
70 'plugin_channel_base.cc', | |
71 'plugin_main.cc', | |
72 'plugin_process.cc', | |
73 'plugin_thread.cc', | |
74 'webplugin_delegate_stub.cc', | |
75 'webplugin_proxy.cc', | |
76 ) | |
77 | |
78 env.ChromeLibrary('plugin', input_files) | |
79 | |
80 p = env.ChromeMSVSProject('plugin.vcproj', | |
81 dest='$CHROME_SRC_DIR/chrome/plugin/plugin.vcproj', | |
82 guid='{20A560A0-2CD0-4D9E-A58B-1F24B99C087A}', | |
83 keyword='Win32Proj', | |
84 # TODO(sgk): when we can intuit the hierarchy | |
85 # from the built targets. | |
86 #buildtargets=TODO, | |
87 files=input_files, | |
88 local_directory_prefix='./', | |
89 tools=[ | |
90 'VCPreBuildEventTool', | |
91 'VCCustomBuildTool', | |
92 'VCXMLDataGeneratorTool', | |
93 'VCWebServiceProxyGeneratorTool', | |
94 'VCMIDLTool', | |
95 'VCCLCompilerTool', | |
96 'VCManagedResourceCompilerTool', | |
97 'VCResourceCompilerTool', | |
98 'VCPreLinkEventTool', | |
99 'VCLibrarianTool', | |
100 'VCALinkTool', | |
101 'VCXDCMakeTool', | |
102 'VCBscMakeTool', | |
103 'VCFxCopTool', | |
104 'VCPostBuildEventTool', | |
105 ], | |
106 ConfigurationType='4') | |
107 | |
108 | |
109 p.AddConfig('Debug|Win32', | |
110 InheritedPropertySheets=[ | |
111 '$(SolutionDir)../build/common.vsprops', | |
112 '$(SolutionDir)../build/debug.vsprops', | |
113 '$(SolutionDir)../skia/using_skia.vsprops', | |
114 '../tools/build/win/precompiled.vsprops', | |
115 '$(SolutionDir)../third_party/npapi/using_npapi.vsprops', | |
116 ]) | |
117 | |
118 p.AddConfig('Release|Win32', | |
119 InheritedPropertySheets=[ | |
120 '$(SolutionDir)../build/common.vsprops', | |
121 '$(SolutionDir)../build/release.vsprops', | |
122 '$(SolutionDir)../third_party/npapi/using_npapi.vsprops', | |
123 '$(SolutionDir)../skia/using_skia.vsprops', | |
124 ]) | |
125 | |
126 p.AddFileConfig('../tools/build/win/precompiled.cc', | |
127 'Debug|Win32', | |
128 tools=[ | |
129 MSVSTool('VCCLCompilerTool', | |
130 UsePrecompiledHeader='1'), | |
131 ]) | |
OLD | NEW |