| 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() | 11 env_res = env.Clone() |
| 12 env_tests = env.Clone() | 12 env_tests = env.Clone() |
| 13 env = env.Clone() | 13 env = env.Clone() |
| 14 | 14 |
| 15 env.SConscript([ | 15 env.SConscript([ |
| 16 '$ICU38_DIR/using_icu38.scons', | 16 '$ICU38_DIR/using_icu38.scons', |
| 17 ], {'env':env}) | 17 ], {'env':env}) |
| 18 | 18 |
| 19 env.Prepend( | 19 env.Prepend( |
| 20 CPPPATH = [ | 20 CPPPATH = [ |
| 21 '$CHROME_SRC_DIR', | 21 '$CHROME_SRC_DIR', |
| 22 ], | 22 ], |
| 23 ) | 23 ) |
| 24 | 24 |
| 25 # These net files work on *all* platforms; files that don't work | 25 # These net files work on *all* platforms; files that don't work |
| 26 # cross-platform live below. | 26 # cross-platform live below. |
| 27 input_files = [ | 27 input_files = [ |
| 28 'base/media.cc', | 28 'base/data_buffer.cc', |
| 29 'base/media_format.cc', | 29 'base/media_format.cc', |
| 30 ] | 30 ] |
| 31 | 31 |
| 32 if env['PLATFORM'] == 'win32': | 32 if env['PLATFORM'] == 'win32': |
| 33 input_files.extend([ | 33 input_files.extend([ |
| 34 ]) | 34 ]) |
| 35 | 35 |
| 36 if env['PLATFORM'] == 'darwin': | 36 if env['PLATFORM'] == 'darwin': |
| 37 input_files.extend([ | 37 input_files.extend([ |
| 38 ]) | 38 ]) |
| 39 | 39 |
| 40 if env['PLATFORM'] == 'posix': | 40 if env['PLATFORM'] == 'posix': |
| 41 input_files.extend([ | 41 input_files.extend([ |
| 42 ]) | 42 ]) |
| 43 | 43 |
| 44 if env['PLATFORM'] in ('darwin', 'posix'): | 44 if env['PLATFORM'] in ('darwin', 'posix'): |
| 45 input_files.extend([ | 45 input_files.extend([ |
| 46 ]) | 46 ]) |
| 47 | 47 |
| 48 env.ChromeStaticLibrary('media', input_files) | 48 env.ChromeStaticLibrary('media', input_files) |
| OLD | NEW |