| 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 net_unittests{,.exe} executable. | 6 Configuration for building the net_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.ApplySConscript([ |
| 14 '$BASE_DIR/using_base.scons', | 14 '$BASE_DIR/using_base.scons', |
| 15 '$BZIP2_DIR/using_bzip2.scons', | 15 '$BZIP2_DIR/using_bzip2.scons', |
| 16 '$CHROME_SRC_DIR/build/using_googleurl.scons', | 16 '$CHROME_SRC_DIR/build/using_googleurl.scons', |
| 17 '$GTEST_DIR/../using_gtest.scons', | 17 '$GTEST_DIR/../using_gtest.scons', |
| 18 '$ICU38_DIR/using_icu38.scons', | 18 '$ICU38_DIR/using_icu38.scons', |
| 19 '$MODP_B64_DIR/using_modp_b64.scons', | 19 '$MODP_B64_DIR/using_modp_b64.scons', |
| 20 '$NET_DIR/using_net.scons', | 20 '$NET_DIR/using_net.scons', |
| 21 '$SDCH_DIR/using_sdch.scons', | 21 '$SDCH_DIR/using_sdch.scons', |
| 22 '$ZLIB_DIR/using_zlib.scons', | 22 '$ZLIB_DIR/using_zlib.scons', |
| 23 ], {'env':env}) | 23 ]) |
| 24 | 24 |
| 25 if env['PLATFORM'] in ('posix', 'darwin'): | 25 if env['PLATFORM'] in ('posix', 'darwin'): |
| 26 env.SConscript([ | 26 env.SConscript([ |
| 27 '$LIBEVENT_DIR/using_libevent.scons', | 27 '$LIBEVENT_DIR/using_libevent.scons', |
| 28 ], {'env':env}) | 28 ], {'env':env}) |
| 29 | 29 |
| 30 | |
| 31 env.Prepend( | |
| 32 CPPPATH = [ | |
| 33 '$CHROME_SRC_DIR', | |
| 34 ], | |
| 35 ) | |
| 36 | |
| 37 if env['PLATFORM'] == 'win32': | 30 if env['PLATFORM'] == 'win32': |
| 38 env.Prepend( | 31 env.Prepend( |
| 39 CCFLAGS = [ | 32 CCFLAGS = [ |
| 40 '/TP', | |
| 41 '/WX', | 33 '/WX', |
| 42 ], | 34 ], |
| 43 CPPDEFINES = [ | |
| 44 '_WIN32_WINNT=0x0600', | |
| 45 'WINVER=0x0600', | |
| 46 '_HAS_EXCEPTIONS=0', | |
| 47 ], | |
| 48 LINKFLAGS = [ | |
| 49 '/DELAYLOAD:"dwmapi.dll"', | |
| 50 '/DELAYLOAD:"uxtheme.dll"', | |
| 51 '/MACHINE:X86', | |
| 52 '/FIXED:No', | |
| 53 '/safeseh', | |
| 54 '/dynamicbase', | |
| 55 '/ignore:4199', | |
| 56 '/nxcompat', | |
| 57 ], | |
| 58 ) | 35 ) |
| 59 | 36 |
| 60 input_files = [ | 37 input_files = [ |
| 61 'base/auth_cache_unittest.cc', | 38 'base/auth_cache_unittest.cc', |
| 62 'base/base64_unittest.cc', | 39 'base/base64_unittest.cc', |
| 63 'base/bzip2_filter_unittest.cc', | 40 'base/bzip2_filter_unittest.cc', |
| 64 'base/client_socket_pool_unittest.cc', | 41 'base/client_socket_pool_unittest.cc', |
| 65 'base/cookie_monster_unittest.cc', | 42 'base/cookie_monster_unittest.cc', |
| 66 'base/cookie_policy_unittest.cc', | 43 'base/cookie_policy_unittest.cc', |
| 67 'base/data_url_unittest.cc', | 44 'base/data_url_unittest.cc', |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 input_files.extend([ | 94 input_files.extend([ |
| 118 '../base/platform_test_mac$OBJSUFFIX', | 95 '../base/platform_test_mac$OBJSUFFIX', |
| 119 ]) | 96 ]) |
| 120 | 97 |
| 121 if env['PLATFORM'] == 'posix': | 98 if env['PLATFORM'] == 'posix': |
| 122 input_files.extend([ | 99 input_files.extend([ |
| 123 'url_request/url_request_unittest.cc', | 100 'url_request/url_request_unittest.cc', |
| 124 ]) | 101 ]) |
| 125 | 102 |
| 126 env.ChromeTestProgram('net_unittests', input_files) | 103 env.ChromeTestProgram('net_unittests', input_files) |
| OLD | NEW |