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 __doc__ = """ | |
6 Configuration for building media.lib / libmedia.a. | |
7 """ | |
8 | |
9 Import('env') | |
10 | |
11 env = env.Clone() | |
12 | |
13 env.SConscript([ | |
14 '$ICU38_DIR/using_icu38.scons', | |
15 ], {'env':env}) | |
16 | |
17 env.Prepend( | |
18 CPPPATH = [ | |
19 '$CHROME_SRC_DIR', | |
20 ], | |
21 ) | |
22 | |
23 input_files = ChromeFileList([ | |
24 # TODO(sgk): violate standard indentation so we don't have to | |
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', | |
29 'base/data_buffer.cc', | |
30 'base/data_buffer.h', | |
31 'base/factory.h', | |
32 'base/filter_host.h', | |
33 'base/filter_host_impl.cc', | |
34 'base/filter_host_impl.h', | |
35 'base/filters.h', | |
36 'base/media_format.cc', | |
37 'base/media_format.h', | |
38 'base/pipeline.h', | |
39 'base/pipeline_impl.cc', | |
40 'base/pipeline_impl.h', | |
41 'base/synchronizer.cc', | |
42 'base/synchronizer.h', | |
43 'base/video_frame_impl.cc', | |
44 'base/video_frame_impl.h', | |
45 'base/yuv_convert.cc', | |
46 'base/yuv_convert.h', | |
47 ]), | |
48 MSVSFilter('filters', [ | |
49 'filters/audio_renderer_base.cc', | |
50 'filters/audio_renderer_base.h', | |
51 'filters/audio_renderer_impl.cc', | |
52 'filters/audio_renderer_impl.h', | |
53 'filters/decoder_base.h', | |
54 'filters/file_data_source.cc', | |
55 'filters/file_data_source.h', | |
56 'filters/null_audio_renderer.cc', | |
57 'filters/null_audio_renderer.h', | |
58 'filters/video_renderer_base.cc', | |
59 'filters/video_renderer_base.h', | |
60 ]), | |
61 MSVSFilter('audio', [ | |
62 'audio/win/audio_manager_win.h', | |
63 'audio/audio_output.h', | |
64 'audio/win/audio_output_win.cc', | |
65 'audio/simple_sources.h', | |
66 'audio/win/simple_sources_win.cc', | |
67 'audio/win/waveout_output_win.cc', | |
68 'audio/win/waveout_output_win.h', | |
69 ]), | |
70 ]) | |
71 | |
72 if env.Bit('linux'): | |
73 input_files.Extend([ | |
74 'audio/linux/audio_manager_linux.cc', | |
75 ]) | |
76 | |
77 if env.Bit('mac'): | |
78 input_files.Extend([ | |
79 'audio/mac/audio_manager_mac.cc', | |
80 ]) | |
81 | |
82 if not env.Bit('windows'): | |
83 # Windows-specific files. | |
84 input_files.Remove( | |
85 'audio/win/audio_output_win.cc', | |
86 'audio/win/simple_sources_win.cc', | |
87 'audio/win/waveout_output_win.cc', | |
88 ) | |
89 | |
90 env.ChromeLibrary('media', input_files) | |
91 | |
92 p = env.ChromeMSVSProject('build/media.vcproj', | |
93 dest='$CHROME_SRC_DIR/media/build/media.vcproj', | |
94 guid='{6AE76406-B03B-11DD-94B1-80B556D89593}', | |
95 keyword='Win32Proj', | |
96 # TODO(sgk): when we can intuit the hierarchy | |
97 # from the built targets. | |
98 #buildtargets=TODO, | |
99 files=input_files, | |
100 tools=[ | |
101 'VCPreBuildEventTool', | |
102 'VCCustomBuildTool', | |
103 'VCXMLDataGeneratorTool', | |
104 'VCWebServiceProxyGeneratorTool', | |
105 'VCMIDLTool', | |
106 'VCCLCompilerTool', | |
107 'VCManagedResourceCompilerTool', | |
108 'VCResourceCompilerTool', | |
109 'VCPreLinkEventTool', | |
110 'VCLibrarianTool', | |
111 'VCALinkTool', | |
112 'VCXDCMakeTool', | |
113 'VCBscMakeTool', | |
114 'VCFxCopTool', | |
115 'VCPostBuildEventTool', | |
116 ], | |
117 ConfigurationType='4') | |
118 | |
119 p.AddConfig('Debug|Win32', | |
120 InheritedPropertySheets=[ | |
121 '$(SolutionDir)../build/debug.vsprops', | |
122 ]) | |
123 | |
124 p.AddConfig('Release|Win32', | |
125 InheritedPropertySheets=[ | |
126 '$(SolutionDir)../build/release.vsprops', | |
127 ]) | |
OLD | NEW |