[email protected] | 365cd36 | 2009-12-05 21:01:46 | [diff] [blame] | 1 | # Copyright (c) 2009 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 | { |
| 6 | 'target_defaults': { |
| 7 | 'variables': { |
| 8 | 'breakpad_handler_target': 0, |
| 9 | }, |
| 10 | 'target_conditions': [ |
| 11 | ['breakpad_handler_target==1', { |
| 12 | 'sources': [ |
| 13 | 'src/client/windows/crash_generation/client_info.cc', |
| 14 | 'src/client/windows/crash_generation/client_info.h', |
| 15 | 'src/client/windows/crash_generation/crash_generation_client.cc', |
| 16 | 'src/client/windows/crash_generation/crash_generation_client.h', |
| 17 | 'src/client/windows/crash_generation/crash_generation_server.cc', |
| 18 | 'src/client/windows/crash_generation/crash_generation_server.h', |
| 19 | 'src/client/windows/handler/exception_handler.cc', |
| 20 | 'src/client/windows/handler/exception_handler.h', |
| 21 | 'src/common/windows/guid_string.cc', |
| 22 | 'src/common/windows/guid_string.h', |
| 23 | 'src/google_breakpad/common/minidump_format.h', |
| 24 | 'src/client/windows/crash_generation/minidump_generator.cc', |
| 25 | 'src/client/windows/crash_generation/minidump_generator.h', |
| 26 | 'src/common/windows/string_utils-inl.h', |
| 27 | ], |
| 28 | 'include_dirs': [ |
| 29 | 'src', |
| 30 | ], |
[email protected] | 365cd36 | 2009-12-05 21:01:46 | [diff] [blame] | 31 | }], |
| 32 | ], |
| 33 | }, |
| 34 | 'conditions': [ |
[email protected] | 3a41c8ef | 2013-01-21 23:23:57 | [diff] [blame^] | 35 | ['OS=="win"', { |
[email protected] | 365cd36 | 2009-12-05 21:01:46 | [diff] [blame] | 36 | 'targets': [ |
| 37 | { |
| 38 | 'target_name': 'breakpad_handler', |
[email protected] | 5a54733 | 2011-05-19 23:18:53 | [diff] [blame] | 39 | 'type': 'static_library', |
[email protected] | 94cf539 | 2011-01-10 16:48:30 | [diff] [blame] | 40 | 'variables': { |
| 41 | 'breakpad_handler_target': 1, |
| 42 | }, |
| 43 | # TODO(gregoryd): direct_dependent_settings should be shared with the |
| 44 | # 64-bit target, but it doesn't work due to a bug in gyp |
| 45 | 'direct_dependent_settings': { |
| 46 | 'include_dirs': [ |
| 47 | 'src', |
| 48 | ], |
| 49 | }, |
| 50 | 'defines': [ |
| 51 | # Avoid the TerminateThread Application Verifier Failure. |
| 52 | 'BREAKPAD_NO_TERMINATE_THREAD', |
| 53 | ], |
| 54 | }, |
| 55 | { |
| 56 | # This alternate breakpad target builds a breakpad that is suitable |
| 57 | # for use with a DLL. It explicitly does NOT define |
| 58 | # BREAKPAD_NO_TERMINATE_THREAD as that define makes breakpad crash |
| 59 | # when created and destroyed in DllMain. |
| 60 | 'target_name': 'breakpad_handler_dll', |
[email protected] | 5a54733 | 2011-05-19 23:18:53 | [diff] [blame] | 61 | 'type': 'static_library', |
[email protected] | 365cd36 | 2009-12-05 21:01:46 | [diff] [blame] | 62 | 'variables': { |
| 63 | 'breakpad_handler_target': 1, |
| 64 | }, |
| 65 | # TODO(gregoryd): direct_dependent_settings should be shared with the |
| 66 | # 64-bit target, but it doesn't work due to a bug in gyp |
| 67 | 'direct_dependent_settings': { |
| 68 | 'include_dirs': [ |
| 69 | 'src', |
| 70 | ], |
| 71 | }, |
| 72 | }, |
[email protected] | 3a41c8ef | 2013-01-21 23:23:57 | [diff] [blame^] | 73 | ], |
| 74 | }], |
| 75 | ['OS=="win" and target_arch=="ia32"', { |
| 76 | 'targets': [ |
[email protected] | 365cd36 | 2009-12-05 21:01:46 | [diff] [blame] | 77 | { |
| 78 | 'target_name': 'breakpad_handler_win64', |
[email protected] | 5a54733 | 2011-05-19 23:18:53 | [diff] [blame] | 79 | 'type': 'static_library', |
[email protected] | 365cd36 | 2009-12-05 21:01:46 | [diff] [blame] | 80 | 'variables': { |
| 81 | 'breakpad_handler_target': 1, |
| 82 | }, |
| 83 | # TODO(gregoryd): direct_dependent_settings should be shared with the |
| 84 | # 32-bit target, but it doesn't work due to a bug in gyp |
| 85 | 'direct_dependent_settings': { |
| 86 | 'include_dirs': [ |
| 87 | 'src', |
| 88 | ], |
| 89 | }, |
[email protected] | 94cf539 | 2011-01-10 16:48:30 | [diff] [blame] | 90 | 'defines': [ |
| 91 | # Avoid the TerminateThread Application Verifier Failure. |
| 92 | 'BREAKPAD_NO_TERMINATE_THREAD', |
| 93 | ], |
[email protected] | 365cd36 | 2009-12-05 21:01:46 | [diff] [blame] | 94 | 'configurations': { |
[email protected] | 5153767c | 2009-12-22 01:52:50 | [diff] [blame] | 95 | 'Common_Base': { |
[email protected] | 365cd36 | 2009-12-05 21:01:46 | [diff] [blame] | 96 | 'msvs_target_platform': 'x64', |
| 97 | }, |
| 98 | }, |
| 99 | }, |
| 100 | ], |
| 101 | }], |
| 102 | ], |
| 103 | } |