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

Unified Diff: build/secondary/third_party/crashpad/crashpad/compat/BUILD.gn

Issue 1417673004: Make unit_tests compile in Mac GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mac
Patch Set: . Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: build/secondary/third_party/crashpad/crashpad/compat/BUILD.gn
diff --git a/build/secondary/third_party/crashpad/crashpad/compat/BUILD.gn b/build/secondary/third_party/crashpad/crashpad/compat/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..904fa5436321a287e1c002ca5b986aaf7b51ebde
--- /dev/null
+++ b/build/secondary/third_party/crashpad/crashpad/compat/BUILD.gn
@@ -0,0 +1,58 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+config("compat_config") {
+ if (is_win) {
+ include_dirs = [ "win" ]
+ } else if (is_mac) {
+ include_dirs = [ "mac" ]
+ }
+}
+
+source_set("compat") {
+ sources = []
+ if (is_mac) {
+ sources += [
+ "mac/AvailabilityMacros.h",
+ "mac/kern/exc_resource.h",
+ "mac/mach-o/getsect.cc",
+ "mac/mach-o/getsect.h",
+ "mac/mach-o/loader.h",
+ "mac/mach/mach.h",
+ "mac/sys/resource.h",
+ ]
+ } else {
+ sources += [ "non_mac/mach/mach.h" ]
+ }
+
+ if (is_win) {
+ sources += [
+ "win/getopt.h",
+ "win/strings.cc",
+ "win/strings.h",
+ "win/sys/types.h",
+ "win/time.cc",
+ "win/time.h",
+ "win/winnt.h",
+ ]
+ } else {
+ sources += [
+ "non_win/dbghelp.h",
+ "non_win/minwinbase.h",
+ "non_win/timezoneapi.h",
+ "non_win/verrsrc.h",
+ "non_win/windows.h",
+ "non_win/winnt.h",
+ ]
+ }
+
+ public_configs = [ ":compat_config" ]
+
+ deps = []
+ if (is_mac) {
+ deps += [ "//third_party/crashpad/crashpad/third_party/apple_cctools" ]
+ } else if (is_win) {
+ deps += [ "//third_party/crashpad/crashpad/third_party/getopt" ]
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698