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/chrome_build.gni") | 6 import("//build/config/chrome_build.gni") |
7 import("//third_party/kasko/kasko.gni") | 7 import("//third_party/kasko/kasko.gni") |
8 | 8 |
9 # GYP version: target 'kasko_features' in third_party/kasko/kasko.gyp | 9 # GYP version: target 'kasko_features' in third_party/kasko/kasko.gyp |
10 buildflag_header("kasko_features") { | 10 buildflag_header("kasko_features") { |
11 header = "kasko_features.h" | 11 header = "kasko_features.h" |
12 flags = [ | 12 flags = [ "ENABLE_KASKO=$enable_kasko" ] |
13 "ENABLE_KASKO=$enable_kasko", | |
14 "ENABLE_KASKO_HANG_REPORTS=$enable_kasko_hang_reports", | |
15 "ENABLE_KASKO_FAILED_RDV_REPORTS=$enable_kasko_failed_rdv_reports", | |
16 ] | |
17 } | 13 } |
18 | 14 |
19 if (enable_kasko) { | 15 if (enable_kasko) { |
20 assert(is_win, "Kasko only support Windows.") | 16 assert(is_win, "Kasko only support Windows.") |
21 assert(target_cpu == "x86", "Kasko only support 32 bits.") | 17 assert(target_cpu == "x86", "Kasko only support 32 bits.") |
22 assert(is_chrome_branded, | 18 assert(is_chrome_branded, |
23 "The Kasko client is only initialized in Chrome-branded builds.") | 19 "The Kasko client is only initialized in Chrome-branded builds.") |
24 | 20 |
25 config("kasko_config") { | 21 config("kasko_config") { |
26 visibility = [ ":*" ] | 22 visibility = [ ":*" ] |
(...skipping 22 matching lines...) Expand all Loading... |
49 ] | 45 ] |
50 public_configs = [ ":kasko_config" ] | 46 public_configs = [ ":kasko_config" ] |
51 } | 47 } |
52 } else { | 48 } else { |
53 group("kasko") { | 49 group("kasko") { |
54 public_deps = [ | 50 public_deps = [ |
55 ":kasko_features", | 51 ":kasko_features", |
56 ] | 52 ] |
57 } | 53 } |
58 } | 54 } |
OLD | NEW |