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

Unified Diff: headless/BUILD.gn

Issue 2820453003: Reland Enable crashpad for Mac. (Closed)
Patch Set: Updated upstream Created 3 years, 8 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
« no previous file with comments | « no previous file | headless/lib/headless_browser_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/BUILD.gn
diff --git a/headless/BUILD.gn b/headless/BUILD.gn
index bf9b1534fbbc7127a7d68eca09c9c77cef984095..de78c612c4d7e99506d64ad13a19ef23e896e337 100644
--- a/headless/BUILD.gn
+++ b/headless/BUILD.gn
@@ -351,7 +351,9 @@ component("headless") {
}
}
- if (!is_mac) {
+ if (is_mac) {
+ deps += [ ":mac_helpers" ]
+ } else {
deps += [ "//ui/aura" ]
}
@@ -458,6 +460,22 @@ repack("headless_browser_tests_pak") {
]
}
+if (is_mac) {
+ copy("mac_helpers") {
+ sources = [
+ "$root_out_dir/crashpad_handler",
+ ]
+
+ deps = [
+ "//third_party/crashpad/crashpad/handler:crashpad_handler",
+ ]
+
+ outputs = [
+ "$root_out_dir/Helpers/{{source_file_part}}",
+ ]
+ }
+}
+
test("headless_browsertests") {
sources = [
"lib/embedder_mojo_browsertest.cc",
@@ -487,6 +505,10 @@ test("headless_browsertests") {
"test/data/",
]
+ if (is_mac) {
+ data += [ "$root_out_dir/Helpers/crashpad_handler" ]
+ }
+
defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
deps = [
« no previous file with comments | « no previous file | headless/lib/headless_browser_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698