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 = [ "ENABLE_KASKO=$enable_kasko" ] | 12 flags = [ "ENABLE_KASKO=$enable_kasko" ] |
13 } | 13 } |
14 | 14 |
15 if (enable_kasko) { | 15 if (enable_kasko) { |
16 assert(is_win, "Kasko only support Windows.") | 16 assert(is_win, "Kasko only support Windows.") |
17 assert(target_cpu == "x86", "Kasko only support 32 bits.") | 17 assert(target_cpu == "x86", "Kasko only support 32 bits.") |
18 assert(is_chrome_branded, | 18 |
19 "The Kasko client is only initialized in Chrome-branded builds.") | 19 # TODO(sebmarchand): Fix this once the Kasko dependency in SyzyAsan has been |
| 20 # removed for the non-official builds. |
| 21 #assert(is_chrome_branded, |
| 22 # "The Kasko client is only initialized in Chrome-branded builds.") |
20 | 23 |
21 config("kasko_config") { | 24 config("kasko_config") { |
22 visibility = [ ":*" ] | 25 visibility = [ ":*" ] |
23 include_dirs = [ "//third_party/kasko/binaries/include" ] | 26 include_dirs = [ "//third_party/kasko/binaries/include" ] |
24 lib_dirs = [ "//third_party/kasko/binaries" ] | 27 lib_dirs = [ "//third_party/kasko/binaries" ] |
25 libs = [ "kasko.dll.lib" ] | 28 libs = [ "kasko.dll.lib" ] |
26 } | 29 } |
27 | 30 |
28 # GYP version: target 'copy_kasko_dll' in third_party/kasko/kasko.gyp | 31 # GYP version: target 'copy_kasko_dll' in third_party/kasko/kasko.gyp |
29 copy("copy_kasko_dll") { | 32 copy("copy_kasko_dll") { |
(...skipping 15 matching lines...) Expand all Loading... |
45 ] | 48 ] |
46 public_configs = [ ":kasko_config" ] | 49 public_configs = [ ":kasko_config" ] |
47 } | 50 } |
48 } else { | 51 } else { |
49 group("kasko") { | 52 group("kasko") { |
50 public_deps = [ | 53 public_deps = [ |
51 ":kasko_features", | 54 ":kasko_features", |
52 ] | 55 ] |
53 } | 56 } |
54 } | 57 } |
OLD | NEW |