Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Side by Side Diff: breakpad/BUILD.gn

Issue 448743003: gn win: Add breakpad_handler target, necessary to compile breakpad on win (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | components/breakpad/app/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 config("tools_config") { 5 config("tools_config") {
6 include_dirs = [ "src", "src/third_party" ] 6 include_dirs = [ "src", "src/third_party" ]
7 if (is_android) { 7 if (is_android) {
8 defines = [ "__ANDROID__" ] 8 defines = [ "__ANDROID__" ]
9 } 9 }
10 if (is_clang) { 10 if (is_clang) {
(...skipping 13 matching lines...) Expand all
24 } 24 }
25 } 25 }
26 26
27 config("client_config") { 27 config("client_config") {
28 include_dirs = [ "src" ] 28 include_dirs = [ "src" ]
29 if (is_android) { 29 if (is_android) {
30 include_dirs += [ "src/common/android/include" ] 30 include_dirs += [ "src/common/android/include" ]
31 } 31 }
32 } 32 }
33 33
34 config("handler_config") {
35 include_dirs = [
36 "src",
37 ]
38 }
34 39
35 # minidump_stackwalk and minidump_dump are tool-type executables that do 40 # minidump_stackwalk and minidump_dump are tool-type executables that do
36 # not build on iOS. 41 # not build on iOS.
37 if (current_toolchain == host_toolchain && !is_win) { 42 if (current_toolchain == host_toolchain && !is_win) {
38 executable("minidump_stackwalk") { 43 executable("minidump_stackwalk") {
39 sources = [ 44 sources = [
40 "src/processor/basic_code_module.h", 45 "src/processor/basic_code_module.h",
41 "src/processor/basic_code_modules.cc", 46 "src/processor/basic_code_modules.cc",
42 "src/processor/basic_code_modules.h", 47 "src/processor/basic_code_modules.h",
43 "src/processor/basic_source_line_resolver.cc", 48 "src/processor/basic_source_line_resolver.cc",
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 ] 655 ]
651 } 656 }
652 657
653 # TODO(GYP) There is some XCode-only targets like ninja-breakpad. 658 # TODO(GYP) There is some XCode-only targets like ninja-breakpad.
654 } 659 }
655 660
656 if (is_win) { 661 if (is_win) {
657 group("client") { 662 group("client") {
658 direct_dependent_configs = [ ":client_config" ] 663 direct_dependent_configs = [ ":client_config" ]
659 } 664 }
665
666 source_set("breakpad_handler") {
667 configs += [ ":handler_config" ]
668 if (is_win) {
669 direct_dependent_configs = [ ":handler_config" ]
670 }
671
672 defines = [ "BREAKPAD_NO_TERMINATE_THREAD" ]
673
674 sources = [
675 "src/client/windows/crash_generation/client_info.cc",
676 "src/client/windows/crash_generation/client_info.h",
677 "src/client/windows/crash_generation/crash_generation_client.cc",
678 "src/client/windows/crash_generation/crash_generation_client.h",
679 "src/client/windows/crash_generation/crash_generation_server.cc",
680 "src/client/windows/crash_generation/crash_generation_server.h",
681 "src/client/windows/handler/exception_handler.cc",
682 "src/client/windows/handler/exception_handler.h",
683 "src/common/windows/guid_string.cc",
684 "src/common/windows/guid_string.h",
685 "src/google_breakpad/common/minidump_format.h",
686 "src/client/windows/crash_generation/minidump_generator.cc",
687 "src/client/windows/crash_generation/minidump_generator.h",
688 "src/common/windows/string_utils-inl.h",
689 ]
690 }
660 } 691 }
OLDNEW
« no previous file with comments | « no previous file | components/breakpad/app/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698