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

Side by Side Diff: breakpad/BUILD.gn

Issue 2712423002: Allow building the dump_syms tool on Windows (Closed)
Patch Set: Update breakpad submodule Created 3 years, 9 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
« no previous file with comments | « DEPS ('k') | no next file » | 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 import("//build/symlink.gni") 5 import("//build/symlink.gni")
6 import("//testing/libfuzzer/fuzzer_test.gni") 6 import("//testing/libfuzzer/fuzzer_test.gni")
7 import("//testing/test.gni") 7 import("//testing/test.gni")
8 8
9 if (is_android) { 9 if (is_android) {
10 import("//build/config/android/rules.gni") 10 import("//build/config/android/rules.gni")
11 } 11 }
12 12
13 if (is_win) {
14 import("//build/config/win/visual_studio_version.gni")
15 }
16
13 config("tools_config") { 17 config("tools_config") {
14 include_dirs = [ 18 include_dirs = [
15 "src", 19 "src",
16 "src/third_party", 20 "src/third_party",
17 ] 21 ]
18 if (is_android) { 22 if (is_android) {
19 defines = [ "__ANDROID__" ] 23 defines = [ "__ANDROID__" ]
20 } 24 }
21 if (is_clang) { 25 if (is_clang) {
22 cflags = [ "-Wno-tautological-constant-out-of-range-compare" ] 26 cflags = [ "-Wno-tautological-constant-out-of-range-compare" ]
(...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 820
817 deps = [ 821 deps = [
818 ":client", 822 ":client",
819 "//build/config/sanitizers:deps", 823 "//build/config/sanitizers:deps",
820 ] 824 ]
821 825
822 include_dirs = [ "src" ] 826 include_dirs = [ "src" ]
823 } 827 }
824 } 828 }
825 829
830 if (is_win) {
831 executable("dump_syms") {
832 # TODO(scottmg) using this with VS2015 may break the crash server.
833 # https://crbug.com/696671
834 include_dirs = [
835 "$visual_studio_path/DIA SDK/include",
836 "src",
837 ]
838
839 sources = [
840 "src/common/windows/dia_util.cc",
841 "src/common/windows/dia_util.h",
842 "src/common/windows/guid_string.cc",
843 "src/common/windows/guid_string.h",
844 "src/common/windows/omap.cc",
845 "src/common/windows/omap.h",
846 "src/common/windows/pdb_source_line_writer.cc",
847 "src/common/windows/pdb_source_line_writer.h",
848 "src/common/windows/string_utils-inl.h",
849 "src/common/windows/string_utils.cc",
850 "src/tools/windows/dump_syms/dump_syms.cc",
851 ]
852
853 lib_dirs = []
854 if (target_cpu == "x64") {
855 lib_dirs += [ "$visual_studio_path/DIA SDK/lib/amd64" ]
856 } else {
857 lib_dirs += [ "$visual_studio_path/DIA SDK/lib" ]
858 }
859
860 libs = [
861 "diaguids.lib",
862 "imagehlp.lib",
863 ]
864 if (is_clang) {
865 # clang complains about microsoft-specific goto extensions. Instead of
866 # rewriting decade-old, goto-ridden code, disable the warning.
867 cflags = [ "-Wno-microsoft-goto" ]
868 }
869 }
870 }
871
826 if (is_ios) { 872 if (is_ios) {
827 static_library("client") { 873 static_library("client") {
828 set_sources_assignment_filter([]) 874 set_sources_assignment_filter([])
829 sources = [ 875 sources = [
830 "src/client/ios/Breakpad.h", 876 "src/client/ios/Breakpad.h",
831 "src/client/ios/Breakpad.mm", 877 "src/client/ios/Breakpad.mm",
832 "src/client/ios/BreakpadController.h", 878 "src/client/ios/BreakpadController.h",
833 "src/client/ios/BreakpadController.mm", 879 "src/client/ios/BreakpadController.mm",
834 "src/client/ios/handler/ios_exception_minidump_generator.h", 880 "src/client/ios/handler/ios_exception_minidump_generator.h",
835 "src/client/ios/handler/ios_exception_minidump_generator.mm", 881 "src/client/ios/handler/ios_exception_minidump_generator.mm",
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 988
943 if (is_android) { 989 if (is_android) {
944 # TODO(GYP_GONE) Delete this after we've converted everything to GN. 990 # TODO(GYP_GONE) Delete this after we've converted everything to GN.
945 group("breakpad_unittests_deps") { 991 group("breakpad_unittests_deps") {
946 testonly = true 992 testonly = true
947 deps = [ 993 deps = [
948 ":breakpad_unittests", 994 ":breakpad_unittests",
949 ] 995 ]
950 } 996 }
951 } 997 }
OLDNEW
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698