summaryrefslogtreecommitdiffstats
path: root/third_party/bspatch/bspatch.scons
blob: 6160e66f97836cf3e02dc050be9f12ce4a8d026c (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
# 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['PLATFORM'] == 'win32':
  env.Append(
    CCFLAGS = [
        '/TP',
        '/wd4800',
    ],
  )
elif env['PLATFORM'] == 'posix':
  # 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)