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 '/TC', |
| 22 |
| 23 '/wd4800', |
| 24 '/wd4244', |
| 25 ], |
| 26 ) |
| 27 |
| 28 if env['PLATFORM'] in ('darwin', 'posix'): |
| 29 # As usual with third party code, it generates lots of warnings. |
| 30 # Disable only what's necessary. |
| 31 env.Append( |
| 32 CCFLAGS = [ |
| 33 '-Wno-parentheses', |
| 34 '-Wno-sign-compare', |
| 35 '-Wno-unused-label', |
| 36 '-Wno-write-strings', |
| 37 ] |
| 38 ) |
| 39 |
| 40 input_files = [ |
| 41 'dtoa.cc', |
| 42 'g_fmt.cc', |
| 43 ] |
| 44 |
| 45 env.ChromeStaticLibrary('dmg_fp', input_files) |
OLD | NEW |