# -*- mode: python -*-

Import("env")

env = env.Clone()

env.Append(CCFLAGS=['-Isrc/third_party/s2'])
env.Append(CCFLAGS=['-Isrc/third_party/gflags-2.0/src'])

if env.TargetOSIs('solaris'):
    # Enables declaration of isinf() on Solaris
    env.Append(CPPDEFINES=['__C99FEATURES__'])
elif env.TargetOSIs('windows'):
    # C4305: 'initializing': truncation from '...' to '...'
    env.Append(CCFLAGS=['/wd4305'])

env.Library(
    "math",
    [
        "mathutil.cc",
        # "mathlimits.cc",
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/base',
        '$BUILD_DIR/third_party/s2/base/base_s2',
    ],
)
