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