Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(431)

Side by Side Diff: third_party/kasko/BUILD.gn

Issue 2350843003: Remove GYP annotations from third_party GN files. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/errorprone/BUILD.gn ('k') | third_party/libjingle/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
10 buildflag_header("kasko_features") { 9 buildflag_header("kasko_features") {
11 header = "kasko_features.h" 10 header = "kasko_features.h"
12 flags = [ "ENABLE_KASKO=$enable_kasko" ] 11 flags = [ "ENABLE_KASKO=$enable_kasko" ]
13 } 12 }
14 13
15 if (enable_kasko) { 14 if (enable_kasko) {
16 assert(is_win, "Kasko only support Windows.") 15 assert(is_win, "Kasko only support Windows.")
17 assert(target_cpu == "x86", "Kasko only support 32 bits.") 16 assert(target_cpu == "x86", "Kasko only support 32 bits.")
18 17
19 # TODO(sebmarchand): Fix this once the Kasko dependency in SyzyAsan has been 18 # TODO(sebmarchand): Fix this once the Kasko dependency in SyzyAsan has been
20 # removed for the non-official builds. 19 # removed for the non-official builds.
21 #assert(is_chrome_branded, 20 #assert(is_chrome_branded,
22 # "The Kasko client is only initialized in Chrome-branded builds.") 21 # "The Kasko client is only initialized in Chrome-branded builds.")
23 22
24 config("kasko_config") { 23 config("kasko_config") {
25 visibility = [ ":*" ] 24 visibility = [ ":*" ]
26 include_dirs = [ "//third_party/kasko/binaries/include" ] 25 include_dirs = [ "//third_party/kasko/binaries/include" ]
27 lib_dirs = [ "//third_party/kasko/binaries" ] 26 lib_dirs = [ "//third_party/kasko/binaries" ]
28 libs = [ "kasko.dll.lib" ] 27 libs = [ "kasko.dll.lib" ]
29 } 28 }
30 29
31 # GYP version: target 'copy_kasko_dll' in third_party/kasko/kasko.gyp
32 copy("copy_kasko_dll") { 30 copy("copy_kasko_dll") {
33 visibility = [ ":*" ] 31 visibility = [ ":*" ]
34 sources = [ 32 sources = [
35 "//third_party/kasko/binaries/kasko.dll", 33 "//third_party/kasko/binaries/kasko.dll",
36 "//third_party/kasko/binaries/kasko.dll.pdb", 34 "//third_party/kasko/binaries/kasko.dll.pdb",
37 ] 35 ]
38 outputs = [ 36 outputs = [
39 "$root_out_dir/{{source_file_part}}", 37 "$root_out_dir/{{source_file_part}}",
40 ] 38 ]
41 } 39 }
42 40
43 # GYP version: target 'kasko' in third_party/kasko/kasko.gyp
44 group("kasko") { 41 group("kasko") {
45 public_deps = [ 42 public_deps = [
46 ":copy_kasko_dll", 43 ":copy_kasko_dll",
47 ":kasko_features", 44 ":kasko_features",
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 }
OLDNEW
« no previous file with comments | « third_party/errorprone/BUILD.gn ('k') | third_party/libjingle/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698