| OLD | NEW |
| (Empty) |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 import("//build/buildflag_header.gni") | |
| 6 import("//build/config/chrome_build.gni") | |
| 7 import("//third_party/kasko/kasko.gni") | |
| 8 | |
| 9 buildflag_header("kasko_features") { | |
| 10 header = "kasko_features.h" | |
| 11 flags = [ "ENABLE_KASKO=$enable_kasko" ] | |
| 12 } | |
| 13 | |
| 14 if (enable_kasko) { | |
| 15 assert(is_win, "Kasko only support Windows.") | |
| 16 assert(target_cpu == "x86", "Kasko only support 32 bits.") | |
| 17 | |
| 18 # TODO(sebmarchand): Fix this once the Kasko dependency in SyzyAsan has been | |
| 19 # removed for the non-official builds. | |
| 20 #assert(is_chrome_branded, | |
| 21 # "The Kasko client is only initialized in Chrome-branded builds.") | |
| 22 | |
| 23 config("kasko_config") { | |
| 24 visibility = [ ":*" ] | |
| 25 include_dirs = [ "//third_party/kasko/binaries/include" ] | |
| 26 lib_dirs = [ "//third_party/kasko/binaries" ] | |
| 27 libs = [ "kasko.dll.lib" ] | |
| 28 } | |
| 29 | |
| 30 copy("copy_kasko_dll") { | |
| 31 visibility = [ ":*" ] | |
| 32 sources = [ | |
| 33 "//third_party/kasko/binaries/kasko.dll", | |
| 34 "//third_party/kasko/binaries/kasko.dll.pdb", | |
| 35 ] | |
| 36 outputs = [ | |
| 37 "$root_out_dir/{{source_file_part}}", | |
| 38 ] | |
| 39 } | |
| 40 | |
| 41 group("kasko") { | |
| 42 public_deps = [ | |
| 43 ":copy_kasko_dll", | |
| 44 ":kasko_features", | |
| 45 ] | |
| 46 public_configs = [ ":kasko_config" ] | |
| 47 } | |
| 48 } else { | |
| 49 group("kasko") { | |
| 50 public_deps = [ | |
| 51 ":kasko_features", | |
| 52 ] | |
| 53 } | |
| 54 } | |
| OLD | NEW |