| 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 the media_unittests{,.exe} executable. | 6 Configuration for building the media_unittests{,.exe} executable. |
| 7 """ | 7 """ |
| 8 | 8 |
| 9 Import('env') | 9 Import('env') |
| 10 | 10 |
| 11 env = env.Clone() | 11 env = env.Clone() |
| 12 | 12 |
| 13 env.SConscript([ | 13 env.SConscript([ |
| 14 '$BASE_DIR/using_base.scons', | 14 '$BASE_DIR/using_base.scons', |
| 15 '$GTEST_DIR/../using_gtest.scons', | 15 '$GTEST_DIR/../using_gtest.scons', |
| 16 '$ICU38_DIR/using_icu38.scons', | 16 '$ICU38_DIR/using_icu38.scons', |
| 17 '$MEDIA_DIR/using_media.scons', | 17 '$MEDIA_DIR/using_media.scons', |
| 18 ], {'env':env}) | 18 ], {'env':env}) |
| 19 | 19 |
| 20 env.Prepend( | 20 env.Prepend( |
| 21 CPPPATH = [ | 21 CPPPATH = [ |
| 22 '$CHROME_SRC_DIR', | 22 '$CHROME_SRC_DIR', |
| 23 ], | 23 ], |
| 24 ) | 24 ) |
| 25 | 25 |
| 26 if env['PLATFORM'] == 'win32': | 26 if env.Bit('windows'): |
| 27 env.Prepend( | 27 env.Prepend( |
| 28 CCFLAGS = [ | 28 CCFLAGS = [ |
| 29 '/TP', | 29 '/TP', |
| 30 '/WX', | 30 '/WX', |
| 31 ], | 31 ], |
| 32 CPPDEFINES = [ | 32 CPPDEFINES = [ |
| 33 '_WIN32_WINNT=0x0600', | 33 '_WIN32_WINNT=0x0600', |
| 34 'WINVER=0x0600', | 34 'WINVER=0x0600', |
| 35 '_HAS_EXCEPTIONS=0', | 35 '_HAS_EXCEPTIONS=0', |
| 36 ], | 36 ], |
| 37 LINKFLAGS = [ | 37 LINKFLAGS = [ |
| 38 '/DELAYLOAD:"dwmapi.dll"', | 38 '/DELAYLOAD:"dwmapi.dll"', |
| 39 '/DELAYLOAD:"uxtheme.dll"', | 39 '/DELAYLOAD:"uxtheme.dll"', |
| 40 '/MACHINE:X86', | 40 '/MACHINE:X86', |
| 41 '/FIXED:No', | 41 '/FIXED:No', |
| 42 '/safeseh', | 42 '/safeseh', |
| 43 '/dynamicbase', | 43 '/dynamicbase', |
| 44 '/ignore:4199', | 44 '/ignore:4199', |
| 45 '/nxcompat', | 45 '/nxcompat', |
| 46 ], | 46 ], |
| 47 ) | 47 ) |
| 48 | 48 |
| 49 input_files = [ | 49 input_files = [ |
| 50 'base/data_buffer_unittest.cc', | 50 'base/data_buffer_unittest.cc', |
| 51 'base/run_all_unittests.cc', | 51 'base/run_all_unittests.cc', |
| 52 ] | 52 ] |
| 53 | 53 |
| 54 env.ChromeTestProgram('media_unittests', input_files) | 54 env.ChromeTestProgram('media_unittests', input_files) |
| OLD | NEW |