summaryrefslogtreecommitdiffstats
path: root/third_party/bsdiff/bsdiff.scons
blob: 0bb1610990c228934dc5ccce4588ead60024002c (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# 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([
    '$BSPATCH_DIR/using_bspatch.scons',
    '$CHROME_SRC_DIR/build/external_code.scons',
    '$LZMA_SDK_DIR/using_lzma_sdk.scons',
])

input_files = ChromeFileList([
    'mbsdiff.cc',
])

env.ChromeProgram('bsdiff', input_files)

p = env.ChromeMSVSProject('bsdiff.vcproj',
                          dest=('$CHROME_SRC_DIR/third_party/' +
                                    'bsdiff/bsdiff.vcproj'),
                          dependencies = [
                              '$LZMA_SDK_DIR/7z_C.vcproj',
                              '$BSPATCH_DIR/bspatch.vcproj',
                          ],
                          guid='{E1D0B89E-257B-4BCA-A0C6-A2CD997A2FDC}',
                          # TODO(sgk):  when we can intuit the hierarchy
                          # from the built targets.
                          #buildtargets=TODO,
                          files=input_files,
                          relative_path_prefix='./',
                          tools=[
                              'VCPreBuildEventTool',
                              'VCCustomBuildTool',
                              'VCXMLDataGeneratorTool',
                              'VCWebServiceProxyGeneratorTool',
                              'VCMIDLTool',
                              'VCCLCompilerTool',
                              'VCManagedResourceCompilerTool',
                              'VCResourceCompilerTool',
                              'VCPreLinkEventTool',
                              'VCLinkerTool',
                              'VCALinkTool',
                              'VCManifestTool',
                              'VCXDCMakeTool',
                              'VCBscMakeTool',
                              'VCFxCopTool',
                              'VCAppVerifierTool',
                              'VCWebDeploymentTool',
                              'VCPostBuildEventTool',
                          ],
                          ConfigurationType='1')

p.AddConfig('Debug|Win32',
            InheritedPropertySheets=[
                '$(SolutionDir)../build/common.vsprops',
                '$(SolutionDir)../build/debug.vsprops',
                '$(SolutionDir)../build/external_code.vsprops',
                '$(SolutionDir)../third_party/bspatch/using_bspatch.vsprops',
                './bsdiff.vsprops',
            ])

p.AddConfig('Release|Win32',
            InheritedPropertySheets=[
                '$(SolutionDir)../build/common.vsprops',
                '$(SolutionDir)../build/release.vsprops',
                '$(SolutionDir)../build/external_code.vsprops',
                '$(SolutionDir)../third_party/bspatch/using_bspatch.vsprops',
                './bsdiff.vsprops',
            ])