OLD | NEW |
| (Empty) |
1 #!/usr/bin/python2.4 | |
2 # | |
3 # Copyright 2009 Google Inc. | |
4 # | |
5 # Licensed under the Apache License, Version 2.0 (the "License"); | |
6 # you may not use this file except in compliance with the License. | |
7 # You may obtain a copy of the License at | |
8 # | |
9 # http://www.apache.org/licenses/LICENSE-2.0 | |
10 # | |
11 # Unless required by applicable law or agreed to in writing, software | |
12 # distributed under the License is distributed on an "AS IS" BASIS, | |
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
14 # See the License for the specific language governing permissions and | |
15 # limitations under the License. | |
16 # ======================================================================== | |
17 | |
18 | |
19 Import('env') | |
20 | |
21 # | |
22 # Build BreakPad library | |
23 # | |
24 | |
25 breakpad_env = env.Clone() | |
26 breakpad_env.Append( | |
27 CPPPATH = [ | |
28 '$MAIN_DIR/third_party/breakpad/src/', | |
29 ], | |
30 CCFLAGS = [ | |
31 '/wd4061', # enumerator in switch is not handled by a case label | |
32 '/wd4826', # conversion is sign-extended | |
33 ], | |
34 CPPDEFINES = [ | |
35 # Make breakpad not use a TerminateThread call to clean up one of its | |
36 # worker threads. This is required in order to pass App Verifier tests. | |
37 'BREAKPAD_NO_TERMINATE_THREAD', | |
38 ], | |
39 ) | |
40 | |
41 target_name = 'breakpad' | |
42 | |
43 breakpad_inputs = [ | |
44 'src/common/windows/guid_string.cc', | |
45 'src/common/windows/http_upload.cc', | |
46 'src/client/windows/crash_generation/client_info.cc', | |
47 'src/client/windows/crash_generation/crash_generation_client.cc', | |
48 'src/client/windows/crash_generation/crash_generation_server.cc', | |
49 'src/client/windows/crash_generation/minidump_generator.cc', | |
50 'src/client/windows/handler/exception_handler.cc', | |
51 'src/client/windows/sender/crash_report_sender.cc', | |
52 ] | |
53 if env.Bit('use_precompiled_headers'): | |
54 breakpad_inputs += breakpad_env.EnablePrecompile(target_name) | |
55 | |
56 breakpad_env.ComponentLibrary( | |
57 lib_name=target_name, | |
58 source=breakpad_inputs, | |
59 ) | |
60 | |
OLD | NEW |