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 Import('env') | 5 Import('env') |
6 | 6 |
7 env = env.Clone() | 7 env = env.Clone() |
8 | 8 |
9 env.Prepend( | 9 env.Prepend( |
10 CPPPATH = [ | 10 CPPPATH = [ |
11 'src', | 11 'src', |
12 '$CHROME_SRC_DIR', | 12 '$CHROME_SRC_DIR', |
13 ], | 13 ], |
14 ) | 14 ) |
15 | 15 |
16 if env['PLATFORM'] == 'win32': | 16 if env.Bit('windows'): |
17 env.Append( | 17 env.Append( |
18 CCFLAGS = [ | 18 CCFLAGS = [ |
19 '/TP', | 19 '/TP', |
20 '/wd4800', | 20 '/wd4800', |
21 ], | 21 ], |
22 ) | 22 ) |
23 | 23 |
24 sender_input_files = [ | 24 sender_input_files = [ |
25 'src/client/windows/sender/crash_report_sender.cc', | 25 'src/client/windows/sender/crash_report_sender.cc', |
26 'src/common/windows/http_upload.cc', | 26 'src/common/windows/http_upload.cc', |
27 ] | 27 ] |
28 | 28 |
29 env.ChromeStaticLibrary('breakpad_sender', sender_input_files) | 29 env.ChromeStaticLibrary('breakpad_sender', sender_input_files) |
30 | 30 |
31 | 31 |
32 if env['PLATFORM'] == 'win32': | 32 if env.Bit('windows'): |
33 handler_input_files = [ | 33 handler_input_files = [ |
34 'src/client/windows/crash_generation/client_info.cc', | 34 'src/client/windows/crash_generation/client_info.cc', |
35 'src/client/windows/crash_generation/minidump_generator.cc', | 35 'src/client/windows/crash_generation/minidump_generator.cc', |
36 'src/common/windows/guid_string.cc', | 36 'src/common/windows/guid_string.cc', |
37 'src/client/windows/handler/exception_handler.cc', | 37 'src/client/windows/handler/exception_handler.cc', |
38 'src/client/windows/crash_generation/crash_generation_server.cc', | 38 'src/client/windows/crash_generation/crash_generation_server.cc', |
39 'src/client/windows/crash_generation/crash_generation_client.cc', | 39 'src/client/windows/crash_generation/crash_generation_client.cc', |
40 ] | 40 ] |
41 elif env['PLATFORM'] == 'posix': | 41 elif env.Bit('linux'): |
42 handler_input_files = [ | 42 handler_input_files = [ |
43 'src/common/linux/guid_creator.cc', | 43 'src/common/linux/guid_creator.cc', |
44 'src/client/linux/handler/exception_handler.cc', | 44 'src/client/linux/handler/exception_handler.cc', |
45 'src/client/linux/handler/minidump_generator.cc', | 45 'src/client/linux/handler/minidump_generator.cc', |
46 'src/client/linux/handler/linux_thread.cc', | 46 'src/client/linux/handler/linux_thread.cc', |
47 ] | 47 ] |
48 | 48 |
49 env.ChromeStaticLibrary('breakpad_handler', handler_input_files) | 49 env.ChromeStaticLibrary('breakpad_handler', handler_input_files) |
50 | 50 |
OLD | NEW |