| 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 net.lib / libnet.a. | 6 Configuration for building net.lib / libnet.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.ApplySConscript([ |
| 16 '$ICU38_DIR/using_icu38.scons', | 14 '$ICU38_DIR/using_icu38.scons', |
| 17 '$SDCH_DIR/using_sdch.scons', | 15 '$SDCH_DIR/using_sdch.scons', |
| 18 '$ZLIB_DIR/using_zlib.scons', | 16 '$ZLIB_DIR/using_zlib.scons', |
| 19 ], {'env':env}) | 17 ]) |
| 20 | |
| 21 env.Prepend( | |
| 22 CPPPATH = [ | |
| 23 '$CHROME_SRC_DIR', | |
| 24 ], | |
| 25 ) | |
| 26 | 18 |
| 27 # These net files work on *all* platforms; files that don't work | 19 # These net files work on *all* platforms; files that don't work |
| 28 # cross-platform live below. | 20 # cross-platform live below. |
| 29 input_files = [ | 21 input_files = [ |
| 30 'base/address_list.cc', | 22 'base/address_list.cc', |
| 31 'base/auth_cache.cc', | 23 'base/auth_cache.cc', |
| 32 'base/base64.cc', | 24 'base/base64.cc', |
| 33 'base/bzip2_filter.cc', | 25 'base/bzip2_filter.cc', |
| 34 'base/client_socket_factory.cc', | 26 'base/client_socket_factory.cc', |
| 35 'base/client_socket_handle.cc', | 27 'base/client_socket_handle.cc', |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 # possibly only on incredibuild, scons doesn't know this. | 161 # possibly only on incredibuild, scons doesn't know this. |
| 170 env_p = env.Clone() | 162 env_p = env.Clone() |
| 171 env_p.Append(CCFLAGS='/Ylnet') | 163 env_p.Append(CCFLAGS='/Ylnet') |
| 172 pch, obj = env_p.PCH('precompiled_net.pch', 'build/precompiled_net.cc') | 164 pch, obj = env_p.PCH('precompiled_net.pch', 'build/precompiled_net.cc') |
| 173 env['PCH'] = pch | 165 env['PCH'] = pch |
| 174 env['PCHSTOP'] = 'precompiled_net.h' | 166 env['PCHSTOP'] = 'precompiled_net.h' |
| 175 env.Append(CCPCHFLAGS = ['/FIprecompiled_net.h']) | 167 env.Append(CCPCHFLAGS = ['/FIprecompiled_net.h']) |
| 176 input_files += [obj] | 168 input_files += [obj] |
| 177 | 169 |
| 178 env.ChromeStaticLibrary('net', input_files) | 170 env.ChromeStaticLibrary('net', input_files) |
| OLD | NEW |