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

Unified Diff: third_party/dmg_fp/dmg_fp.scons

Issue 11002: Make unit_tests pass with pt_BR.UTF-8 locale. (Closed)
Patch Set: all platforms 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/dmg_fp.vcproj » ('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
diff --git a/third_party/dmg_fp/dmg_fp.scons b/third_party/dmg_fp/dmg_fp.scons
new file mode 100644
index 0000000000000000000000000000000000000000..d3655032e1631aea986df96cf3bbb3a4ba87c4bd
--- /dev/null
+++ b/third_party/dmg_fp/dmg_fp.scons
@@ -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/dmg_fp.vcproj » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698