| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
| 6 import("//build/config/sanitizers/sanitizers.gni") | 6 import("//build/config/sanitizers/sanitizers.gni") |
| 7 | 7 |
| 8 declare_args() { | 8 declare_args() { |
| 9 # Enable the Kasko crash reporter. Enabled by default on syzyasan build. | 9 # Enable the Kasko crash reporter. Enabled by default on syzyasan build. |
| 10 enable_kasko = is_syzyasan | 10 enable_kasko = is_syzyasan |
| 11 | 11 |
| 12 # Enable the reporting of browser hangs with Kasko. | 12 # Enable the reporting of browser hangs with Kasko. |
| 13 enable_kasko_hang_reports = false | 13 enable_kasko_hang_reports = false |
| 14 |
| 15 # Enable the reporting of failed browser rendez-vous with Kasko. |
| 16 enable_kasko_failed_rdv_reports = false |
| 14 } | 17 } |
| 15 | 18 |
| 16 # GYP version: target 'kasko_features' in third_party/kasko/kasko.gyp | 19 # GYP version: target 'kasko_features' in third_party/kasko/kasko.gyp |
| 17 buildflag_header("kasko_features") { | 20 buildflag_header("kasko_features") { |
| 18 header = "kasko_features.h" | 21 header = "kasko_features.h" |
| 19 flags = [ | 22 flags = [ |
| 20 "ENABLE_KASKO=$enable_kasko", | 23 "ENABLE_KASKO=$enable_kasko", |
| 21 "ENABLE_KASKO_HANG_REPORTS=$enable_kasko_hang_reports", | 24 "ENABLE_KASKO_HANG_REPORTS=$enable_kasko_hang_reports", |
| 25 "ENABLE_KASKO_FAILED_RDV_REPORTS=$enable_kasko_failed_rdv_reports", |
| 22 ] | 26 ] |
| 23 } | 27 } |
| 24 | 28 |
| 25 if (enable_kasko) { | 29 if (enable_kasko) { |
| 26 assert(is_win, "Kasko only support Windows.") | 30 assert(is_win, "Kasko only support Windows.") |
| 27 assert(target_cpu == "x86", "Kasko only support 32 bits.") | 31 assert(target_cpu == "x86", "Kasko only support 32 bits.") |
| 28 assert(is_chrome_branded, | 32 assert(is_chrome_branded, |
| 29 "The Kasko client is only initialized in Chrome-branded builds.") | 33 "The Kasko client is only initialized in Chrome-branded builds.") |
| 30 | 34 |
| 31 config("kasko_config") { | 35 config("kasko_config") { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 55 ] | 59 ] |
| 56 public_configs = [ ":kasko_config" ] | 60 public_configs = [ ":kasko_config" ] |
| 57 } | 61 } |
| 58 } else { | 62 } else { |
| 59 group("kasko") { | 63 group("kasko") { |
| 60 public_deps = [ | 64 public_deps = [ |
| 61 ":kasko_features", | 65 ":kasko_features", |
| 62 ] | 66 ] |
| 63 } | 67 } |
| 64 } | 68 } |
| OLD | NEW |