| 1 |
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- |
| 2 |
# vim: set filetype=python: |
| 3 |
# This Source Code Form is subject to the terms of the Mozilla Public |
| 4 |
# License, v. 2.0. If a copy of the MPL was not distributed with this |
| 5 |
# file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| 6 |
|
| 7 |
EXPORTS += [ |
| 8 |
'fdlibm.h', |
| 9 |
] |
| 10 |
|
| 11 |
Library('fdlibm') |
| 12 |
|
| 13 |
if CONFIG['CC_TYPE'] in ('clang', 'gcc'): |
| 14 |
CXXFLAGS += [ |
| 15 |
'-Wno-parentheses', |
| 16 |
'-Wno-sign-compare', |
| 17 |
] |
| 18 |
|
| 19 |
if CONFIG['CC_TYPE'] == 'clang': |
| 20 |
CXXFLAGS += [ |
| 21 |
'-Wno-dangling-else', |
| 22 |
] |
| 23 |
|
| 24 |
if CONFIG['CC_TYPE'] == 'clang-cl': |
| 25 |
CXXFLAGS += [ |
| 26 |
'-Wno-sign-compare', |
| 27 |
'-wd4146', # unary minus operator applied to unsigned type |
| 28 |
'-wd4305', # truncation from 'double' to 'const float' |
| 29 |
'-wd4723', # potential divide by 0 |
| 30 |
'-wd4756', # overflow in constant arithmetic |
| 31 |
] |
| 32 |
|
| 33 |
# These sources can't be unified because there are too many conflicting global |
| 34 |
# variables (e.g. almost every source file defines a `one` and a `huge`). |
| 35 |
SOURCES += [ |
| 36 |
'e_acos.cpp', |
| 37 |
'e_acosf.cpp', |
| 38 |
'e_acosh.cpp', |
| 39 |
'e_asin.cpp', |
| 40 |
'e_asinf.cpp', |
| 41 |
'e_atan2.cpp', |
| 42 |
'e_atanh.cpp', |
| 43 |
'e_cosh.cpp', |
| 44 |
'e_exp.cpp', |
| 45 |
'e_expf.cpp', |
| 46 |
'e_hypot.cpp', |
| 47 |
'e_hypotf.cpp', |
| 48 |
'e_log.cpp', |
| 49 |
'e_log10.cpp', |
| 50 |
'e_log10f.cpp', |
| 51 |
'e_log2.cpp', |
| 52 |
'e_logf.cpp', |
| 53 |
'e_pow.cpp', |
| 54 |
'e_powf.cpp', |
| 55 |
'e_sinh.cpp', |
| 56 |
'e_sqrtf.cpp', |
| 57 |
'k_cos.cpp', |
| 58 |
'k_cosf.cpp', |
| 59 |
'k_exp.cpp', |
| 60 |
'k_expf.cpp', |
| 61 |
'k_rem_pio2.cpp', |
| 62 |
'k_sin.cpp', |
| 63 |
'k_sinf.cpp', |
| 64 |
'k_tan.cpp', |
| 65 |
'k_tanf.cpp', |
| 66 |
's_asinh.cpp', |
| 67 |
's_atan.cpp', |
| 68 |
's_atanf.cpp', |
| 69 |
's_cbrt.cpp', |
| 70 |
's_ceil.cpp', |
| 71 |
's_ceilf.cpp', |
| 72 |
# 's_copysign.cpp', # Unused file. |
| 73 |
's_cos.cpp', |
| 74 |
's_cosf.cpp', |
| 75 |
's_exp2.cpp', |
| 76 |
's_exp2f.cpp', |
| 77 |
's_expm1.cpp', |
| 78 |
's_fabs.cpp', |
| 79 |
's_fabsf.cpp', |
| 80 |
's_floor.cpp', |
| 81 |
's_floorf.cpp', |
| 82 |
's_log1p.cpp', |
| 83 |
's_nearbyint.cpp', |
| 84 |
's_rint.cpp', |
| 85 |
's_rintf.cpp', |
| 86 |
's_scalbn.cpp', |
| 87 |
's_sin.cpp', |
| 88 |
's_sinf.cpp', |
| 89 |
's_tan.cpp', |
| 90 |
's_tanf.cpp', |
| 91 |
's_tanh.cpp', |
| 92 |
's_trunc.cpp', |
| 93 |
's_truncf.cpp', |
| 94 |
] |