summaryrefslogtreecommitdiffstats
path: root/third_party/bspatch/bspatch.scons
blob: 97cf01cfc4928e84d39372b3f66c36564376dadb (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
26
27
28
29
30
31
32
33
# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

Import('env')

env = env.Clone()

env.ApplySConscript([
    '$LZMA_SDK_DIR/using_lzma_sdk.scons',
])

if env.Bit('windows'):
  env.Append(
    CCFLAGS = [
        '/TP',
        '/wd4800',
    ],
  )
elif env.Bit('linux'):
  # We're not responsible for bad warning hygiene in this third party code.
  env.FilterOut(
      CXXFLAGS = ['-Wall'],
  )

input_files = [
    'mbspatch.cc',
]

env.ChromeStaticLibrary('bspatch', input_files)

env.ChromeMSVSProject('$BSPATCH_DIR/bspatch.vcproj',
                guid='{D7ED06E8-6138-4CE3-A906-5EF1D9C804E0}')