blob: 2d06fe09a8d763498a9b9f99e5aaed757fd3c705 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# 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.
import("//build/buildflag_header.gni")
import("//build/config/sanitizers/sanitizers.gni")
declare_args() {
# Enable the Kasko crash reporter. Enabled by default on syzyasan build.
enable_kasko = is_syzyasan
# Enable the reporting of browser hangs with Kasko.
enable_kasko_hang_reports = false
}
# GYP version: target 'kasko_features' in third_party/kasko/kasko.gyp
buildflag_header("kasko_features") {
header = "kasko_features.h"
flags = [
"ENABLE_KASKO=$enable_kasko",
"ENABLE_KASKO_HANG_REPORTS=$enable_kasko_hang_reports",
]
}
if (enable_kasko) {
assert(is_win, "Kasko only support Windows.")
assert(target_cpu == "x86", "Kasko only support 32 bits.")
assert(is_chrome_branded,
"The Kasko client is only initialized in Chrome-branded builds.")
config("kasko_config") {
visibility = [ ":*" ]
include_dirs = [ "//third_party/kasko/binaries/include" ]
lib_dirs = [ "//third_party/kasko/binaries" ]
libs = [ "kasko.dll.lib" ]
}
# GYP version: target 'copy_kasko_dll' in third_party/kasko/kasko.gyp
copy("copy_kasko_dll") {
visibility = [ ":*" ]
sources = [
"//third_party/kasko/binaries/kasko.dll",
"//third_party/kasko/binaries/kasko.dll.pdb",
]
outputs = [
"$root_out_dir/{{source_file_part}}",
]
}
# GYP version: target 'kasko' in third_party/kasko/kasko.gyp
group("kasko") {
public_deps = [
":copy_kasko_dll",
":kasko_features",
]
public_configs = [ ":kasko_config" ]
}
} else {
group("kasko") {
public_deps = [
":kasko_features",
]
}
}
|