tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

moz.build (1838B)


      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     'k_cos.cpp',
     57     'k_cosf.cpp',
     58     'k_exp.cpp',
     59     'k_expf.cpp',
     60     'k_rem_pio2.cpp',
     61     'k_sin.cpp',
     62     'k_sinf.cpp',
     63     'k_tan.cpp',
     64     'k_tanf.cpp',
     65     's_asinh.cpp',
     66     's_atan.cpp',
     67     's_atanf.cpp',
     68     's_cbrt.cpp',
     69     's_cos.cpp',
     70     's_cosf.cpp',
     71     's_exp2.cpp',
     72     's_exp2f.cpp',
     73     's_expm1.cpp',
     74     's_log1p.cpp',
     75     's_sin.cpp',
     76     's_sinf.cpp',
     77     's_tan.cpp',
     78     's_tanf.cpp',
     79     's_tanh.cpp',
     80 ]