summaryrefslogtreecommitdiffstats
path: root/modules/fdlibm/src/moz.build
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
commit2aa4a82499d4becd2284cdb482213d541b8804dd (patch)
treeb80bf8bf13c3766139fbacc530efd0dd9d54394c /modules/fdlibm/src/moz.build
parentInitial commit. (diff)
downloadfirefox-upstream.tar.xz
firefox-upstream.zip
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'modules/fdlibm/src/moz.build')
-rw-r--r--modules/fdlibm/src/moz.build68
1 files changed, 68 insertions, 0 deletions
diff --git a/modules/fdlibm/src/moz.build b/modules/fdlibm/src/moz.build
new file mode 100644
index 0000000000..603e824b9b
--- /dev/null
+++ b/modules/fdlibm/src/moz.build
@@ -0,0 +1,68 @@
+# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
+# vim: set filetype=python:
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+EXPORTS += [
+ 'fdlibm.h',
+]
+
+FINAL_LIBRARY = 'js'
+
+if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
+ CXXFLAGS += [
+ '-Wno-parentheses',
+ '-Wno-sign-compare',
+ ]
+
+if CONFIG['CC_TYPE'] == 'clang':
+ CXXFLAGS += [
+ '-Wno-dangling-else',
+ ]
+
+if CONFIG['CC_TYPE'] == 'clang-cl':
+ CXXFLAGS += [
+ '-Wno-sign-compare',
+ '-wd4146', # unary minus operator applied to unsigned type
+ '-wd4305', # truncation from 'double' to 'const float'
+ '-wd4723', # potential divide by 0
+ '-wd4756', # overflow in constant arithmetic
+ ]
+
+# These sources can't be unified because there are too many conflicting global
+# variables (e.g. almost every source file defines a `one` and a `huge`).
+SOURCES += [
+ 'e_acos.cpp',
+ 'e_acosh.cpp',
+ 'e_asin.cpp',
+ 'e_atan2.cpp',
+ 'e_atanh.cpp',
+ 'e_cosh.cpp',
+ 'e_exp.cpp',
+ 'e_hypot.cpp',
+ 'e_log.cpp',
+ 'e_log10.cpp',
+ 'e_log2.cpp',
+ 'e_pow.cpp',
+ 'e_sinh.cpp',
+ 'k_exp.cpp',
+ 's_asinh.cpp',
+ 's_atan.cpp',
+ 's_cbrt.cpp',
+ 's_ceil.cpp',
+ 's_ceilf.cpp',
+ 's_copysign.cpp',
+ 's_expm1.cpp',
+ 's_fabs.cpp',
+ 's_floor.cpp',
+ 's_floorf.cpp',
+ 's_log1p.cpp',
+ 's_nearbyint.cpp',
+ 's_rint.cpp',
+ 's_rintf.cpp',
+ 's_scalbn.cpp',
+ 's_tanh.cpp',
+ 's_trunc.cpp',
+ 's_truncf.cpp',
+]