OLD | NEW |
1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 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 | 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 __doc__ = """ | 5 __doc__ = """ |
6 Configuration for building media.lib / libmedia.a. | 6 Configuration for building media.lib / libmedia.a. |
7 """ | 7 """ |
8 | 8 |
9 Import('env') | 9 Import('env') |
10 | 10 |
11 env_res = env.Clone() | |
12 env_tests = env.Clone() | |
13 env = env.Clone() | 11 env = env.Clone() |
14 | 12 |
15 env.SConscript([ | 13 env.SConscript([ |
16 '$ICU38_DIR/using_icu38.scons', | 14 '$ICU38_DIR/using_icu38.scons', |
17 ], {'env':env}) | 15 ], {'env':env}) |
18 | 16 |
19 env.Prepend( | 17 env.Prepend( |
20 CPPPATH = [ | 18 CPPPATH = [ |
21 '$CHROME_SRC_DIR', | 19 '$CHROME_SRC_DIR', |
22 ], | 20 ], |
23 ) | 21 ) |
24 | 22 |
25 # These net files work on *all* platforms; files that don't work | 23 input_files = ChromeFileList([ |
26 # cross-platform live below. | 24 # TODO(sgk): violate standard indentation so we don't have to |
27 input_files = [ | 25 # reindent too much when we remove the explicit MSVSFilter() calls |
| 26 # in favor of generating the hierarchy to reflect the file system. |
| 27 MSVSFilter('base', [ |
| 28 'base/buffers.h', |
28 'base/data_buffer.cc', | 29 'base/data_buffer.cc', |
| 30 'base/data_buffer.h', |
| 31 'base/factory.h', |
| 32 'base/filter_host.h', |
29 'base/filter_host_impl.cc', | 33 'base/filter_host_impl.cc', |
| 34 'base/filter_host_impl.h', |
| 35 'base/filters.h', |
30 'base/media_format.cc', | 36 'base/media_format.cc', |
| 37 'base/media_format.h', |
| 38 'base/pipeline.h', |
31 'base/pipeline_impl.cc', | 39 'base/pipeline_impl.cc', |
32 ] | 40 'base/pipeline_impl.h', |
| 41 ]), |
| 42 MSVSFilter('audio', [ |
| 43 'audio/win/audio_manager_win.h', |
| 44 'audio/audio_output.h', |
| 45 'audio/win/audio_output_win.cc', |
| 46 'audio/simple_sources.h', |
| 47 'audio/win/simple_sources_win.cc', |
| 48 'audio/win/waveout_output_win.cc', |
| 49 'audio/win/waveout_output_win.h', |
| 50 ]), |
| 51 ]) |
33 | 52 |
34 if env.Bit('windows'): | 53 if not env.Bit('windows'): |
35 input_files.extend([ | 54 # Windows-specific files. |
36 ]) | 55 input_files.Remove( |
37 | 56 'audio/win/audio_output_win.cc', |
38 if env.Bit('mac'): | 57 'audio/win/simple_sources_win.cc', |
39 input_files.extend([ | 58 'audio/win/waveout_output_win.cc', |
40 ]) | 59 ) |
41 | |
42 if env.Bit('linux'): | |
43 input_files.extend([ | |
44 ]) | |
45 | |
46 if env.Bit('posix'): | |
47 input_files.extend([ | |
48 ]) | |
49 | 60 |
50 env.ChromeLibrary('media', input_files) | 61 env.ChromeLibrary('media', input_files) |
51 | 62 |
52 env.ChromeMSVSProject('$MEDIA_DIR/build/media.vcproj', | 63 p = env.ChromeMSVSProject('build/media.vcproj', |
53 guid='{6AE76406-B03B-11DD-94B1-80B556D89593}') | 64 dest='$CHROME_SRC_DIR/media/build/media.vcproj', |
| 65 guid='{6AE76406-B03B-11DD-94B1-80B556D89593}', |
| 66 keyword='Win32Proj', |
| 67 # TODO(sgk): when we can intuit the hierarchy |
| 68 # from the built targets. |
| 69 #buildtargets=TODO, |
| 70 files=input_files, |
| 71 tools=[ |
| 72 'VCPreBuildEventTool', |
| 73 'VCCustomBuildTool', |
| 74 'VCXMLDataGeneratorTool', |
| 75 'VCWebServiceProxyGeneratorTool', |
| 76 'VCMIDLTool', |
| 77 'VCCLCompilerTool', |
| 78 'VCManagedResourceCompilerTool', |
| 79 'VCResourceCompilerTool', |
| 80 'VCPreLinkEventTool', |
| 81 'VCLibrarianTool', |
| 82 'VCALinkTool', |
| 83 'VCXDCMakeTool', |
| 84 'VCBscMakeTool', |
| 85 'VCFxCopTool', |
| 86 'VCPostBuildEventTool', |
| 87 ], |
| 88 ConfigurationType='4') |
| 89 |
| 90 p.AddConfig('Debug|Win32', |
| 91 InheritedPropertySheets=[ |
| 92 '$(SolutionDir)../build/debug.vsprops', |
| 93 ]) |
| 94 |
| 95 p.AddConfig('Release|Win32', |
| 96 InheritedPropertySheets=[ |
| 97 '$(SolutionDir)../build/release.vsprops', |
| 98 ]) |
OLD | NEW |