| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 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 Import('env') | |
| 6 | |
| 7 env = env.Clone() | |
| 8 | |
| 9 # Do *NOT* define USE_LOCALE here. We want these functions to be | |
| 10 # locale-independent, for example to use in parsers or serializers. | |
| 11 env.Append( | |
| 12 # TODO(sgk): Review this when we want to support more architectures. | |
| 13 CPPDEFINES = [ | |
| 14 'IEEE_8087', | |
| 15 ], | |
| 16 ) | |
| 17 | |
| 18 if env['PLATFORM'] == 'win32': | |
| 19 env.Append( | |
| 20 CCFLAGS = [ | |
| 21 '/TP', | |
| 22 | |
| 23 '/wd4018', | |
| 24 '/wd4102', | |
| 25 '/wd4244', | |
| 26 '/wd4503', | |
| 27 '/wd4554', | |
| 28 '/wd4800', | |
| 29 '/wd4819', | |
| 30 ], | |
| 31 ) | |
| 32 | |
| 33 if env['PLATFORM'] in ('darwin', 'posix'): | |
| 34 # As usual with third party code, it generates lots of warnings. | |
| 35 # Disable only what's necessary. | |
| 36 env.Append( | |
| 37 CCFLAGS = [ | |
| 38 '-Wno-uninitialized', | |
| 39 '-Wno-parentheses', | |
| 40 '-Wno-sign-compare', | |
| 41 '-Wno-unused-label', | |
| 42 '-Wno-write-strings', | |
| 43 ] | |
| 44 ) | |
| 45 | |
| 46 input_files = [ | |
| 47 'dtoa.cc', | |
| 48 'g_fmt.cc', | |
| 49 ] | |
| 50 | |
| 51 env.ChromeStaticLibrary('dmg_fp', input_files) | |
| OLD | NEW |