Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Unified Diff: third_party/dmg_fp/dmg_fp.scons

Issue 9509: Make unit_tests pass with pt_BR.UTF-8 locale. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/dmg_fp/dmg_fp.h ('k') | third_party/dmg_fp/dtoa.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/dmg_fp/dmg_fp.scons
===================================================================
--- third_party/dmg_fp/dmg_fp.scons (revision 0)
+++ third_party/dmg_fp/dmg_fp.scons (revision 0)
@@ -0,0 +1,45 @@
+# Copyright (c) 2008 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+Import('env')
+
+env = env.Clone()
+
+# Do *NOT* define USE_LOCALE here. We want these functions to be
+# locale-independent, for example to use in parsers or serializers.
+env.Append(
+ # TODO(sgk): Review this when we want to support more architectures.
+ CPPDEFINES = [
+ 'IEEE_8087',
+ ],
+)
+
+if env['PLATFORM'] == 'win32':
+ env.Append(
+ CCFLAGS = [
+ '/TC',
+
+ '/wd4800',
+ '/wd4244',
+ ],
+ )
+
+if env['PLATFORM'] in ('darwin', 'posix'):
+ # As usual with third party code, it generates lots of warnings.
+ # Disable only what's necessary.
+ env.Append(
+ CCFLAGS = [
+ '-Wno-parentheses',
+ '-Wno-sign-compare',
+ '-Wno-unused-label',
+ '-Wno-write-strings',
+ ]
+ )
+
+input_files = [
+ 'dtoa.cc',
+ 'g_fmt.cc',
+]
+
+env.ChromeStaticLibrary('dmg_fp', input_files)
« no previous file with comments | « third_party/dmg_fp/dmg_fp.h ('k') | third_party/dmg_fp/dtoa.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698