OLD | NEW |
1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
| 5 __doc__ = """ |
| 6 Master configuration for building breakpad libraries. |
| 7 """ |
| 8 |
5 Import('env') | 9 Import('env') |
6 | 10 |
7 env = env.Clone() | 11 sconscript_files = [ |
| 12 'breakpad_handler.scons', |
| 13 'breakpad_sender.scons', |
| 14 ] |
8 | 15 |
9 env.Prepend( | 16 SConscript(sconscript_files, exports=['env']) |
10 CPPPATH = [ | |
11 'src', | |
12 '$CHROME_SRC_DIR', | |
13 ], | |
14 ) | |
15 | |
16 if env.Bit('windows'): | |
17 env.Append( | |
18 CCFLAGS = [ | |
19 '/TP', | |
20 '/wd4800', | |
21 ], | |
22 ) | |
23 | |
24 sender_input_files = [ | |
25 'src/client/windows/sender/crash_report_sender.cc', | |
26 'src/common/windows/http_upload.cc', | |
27 ] | |
28 | |
29 env.ChromeLibrary('breakpad_sender', sender_input_files) | |
30 | |
31 env.ChromeMSVSProject('$BREAKPAD_DIR/breakpad_sender.vcproj', | |
32 guid='{9946A048-043B-4F8F-9E07-9297B204714C}') | |
33 | |
34 if env.Bit('windows'): | |
35 handler_input_files = [ | |
36 'src/client/windows/crash_generation/client_info.cc', | |
37 'src/client/windows/crash_generation/minidump_generator.cc', | |
38 'src/common/windows/guid_string.cc', | |
39 'src/client/windows/handler/exception_handler.cc', | |
40 'src/client/windows/crash_generation/crash_generation_server.cc', | |
41 'src/client/windows/crash_generation/crash_generation_client.cc', | |
42 ] | |
43 elif env.Bit('linux'): | |
44 handler_input_files = [ | |
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', handler_input_files) | |
52 | |
53 env.ChromeMSVSProject('$BREAKPAD_DIR/breakpad_handler.vcproj', | |
54 guid='{B55CA863-B374-4BAF-95AC-539E4FA4C90C}') | |
55 | |
OLD | NEW |