summaryrefslogtreecommitdiff
path: root/src/third_party/s2/util/coding/SConscript
blob: bcb44680bc7a4cce891db2920f91a235078533e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# -*- 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('windows'):
    # C4996: 'memccpy': The POSIX name for this item is deprecated. Instead, use the ISO C and C++
    # conformant name: _memccpy. See online help for details
    env.Append(CCFLAGS=['/wd4996'])

env.Library(
    "coding",
    [
        "coder.cc",
        "varint.cc",
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/base',
        '$BUILD_DIR/third_party/s2/base/base_s2',
    ],
)