OLD | NEW |
| (Empty) |
1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 Import('env') | |
6 | |
7 env = env.Clone() | |
8 | |
9 env.Prepend( | |
10 CPPPATH = [ | |
11 'src', | |
12 '$CHROME_SRC_DIR', | |
13 ], | |
14 ) | |
15 | |
16 input_files = ChromeFileList([ | |
17 'src/client/windows/crash_generation/client_info.cc', | |
18 'src/client/windows/crash_generation/client_info.h', | |
19 'src/client/windows/crash_generation/crash_generation_client.cc', | |
20 'src/client/windows/crash_generation/crash_generation_client.h', | |
21 'src/client/windows/crash_generation/crash_generation_server.cc', | |
22 'src/client/windows/crash_generation/crash_generation_server.h', | |
23 'src/client/windows/handler/exception_handler.cc', | |
24 'src/client/windows/handler/exception_handler.h', | |
25 'src/common/windows/guid_string.cc', | |
26 'src/common/windows/guid_string.h', | |
27 'src/google_breakpad/common/minidump_format.h', | |
28 'src/client/windows/crash_generation/minidump_generator.cc', | |
29 'src/client/windows/crash_generation/minidump_generator.h', | |
30 'src/common/windows/string_utils-inl.h', | |
31 ]) | |
32 | |
33 if not env.Bit('windows'): | |
34 input_files.Remove( | |
35 'src/client/windows/crash_generation/client_info.cc', | |
36 'src/client/windows/crash_generation/minidump_generator.cc', | |
37 'src/common/windows/guid_string.cc', | |
38 'src/client/windows/handler/exception_handler.cc', | |
39 'src/client/windows/crash_generation/crash_generation_server.cc', | |
40 'src/client/windows/crash_generation/crash_generation_client.cc', | |
41 ) | |
42 | |
43 if not env.Bit('linux'): | |
44 input_files.Remove( | |
45 'src/common/linux/guid_creator.cc', | |
46 'src/client/linux/handler/exception_handler.cc', | |
47 'src/client/linux/handler/minidump_generator.cc', | |
48 'src/client/linux/handler/linux_thread.cc', | |
49 ) | |
50 | |
51 env.ChromeLibrary('breakpad_handler', input_files) | |
52 | |
53 p = env.ChromeMSVSProject('breakpad_handler.vcproj', | |
54 dest=('$CHROME_SRC_DIR/breakpad/' + | |
55 'breakpad_handler.vcproj'), | |
56 guid='{B55CA863-B374-4BAF-95AC-539E4FA4C90C}', | |
57 keyword='Win32Proj', | |
58 # TODO(sgk): when we can intuit the hierarchy | |
59 # from the built targets. | |
60 #buildtargets=TODO, | |
61 files=input_files, | |
62 tools=[ | |
63 'VCPreBuildEventTool', | |
64 'VCCustomBuildTool', | |
65 'VCXMLDataGeneratorTool', | |
66 'VCWebServiceProxyGeneratorTool', | |
67 'VCMIDLTool', | |
68 'VCCLCompilerTool', | |
69 'VCManagedResourceCompilerTool', | |
70 'VCResourceCompilerTool', | |
71 'VCPreLinkEventTool', | |
72 'VCLibrarianTool', | |
73 'VCALinkTool', | |
74 'VCXDCMakeTool', | |
75 'VCBscMakeTool', | |
76 'VCFxCopTool', | |
77 'VCPostBuildEventTool', | |
78 ], | |
79 ConfigurationType='4') | |
80 | |
81 | |
82 p.AddConfig('Debug|Win32', | |
83 InheritedPropertySheets=[ | |
84 '$(SolutionDir)../build/common.vsprops', | |
85 '$(SolutionDir)../build/debug.vsprops', | |
86 '$(SolutionDir)../build/external_code.vsprops', | |
87 './using_breakpad.vsprops', | |
88 ]) | |
89 | |
90 p.AddConfig('Release|Win32', | |
91 InheritedPropertySheets=[ | |
92 '$(SolutionDir)../build/common.vsprops', | |
93 '$(SolutionDir)../build/release.vsprops', | |
94 '$(SolutionDir)../build/external_code.vsprops', | |
95 './using_breakpad.vsprops', | |
96 ]) | |
OLD | NEW |