OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 | 6 |
7 # Specifies which language identification model to use: CLD2 or CLD3. | 7 # Specifies which language identification model to use: CLD2 or CLD3. |
8 cld_version = 2 | 8 cld_version = 3 |
9 | 9 |
10 buildflag_header("cld_version") { | 10 buildflag_header("cld_version") { |
11 header = "cld_version.h" | 11 header = "cld_version.h" |
12 flags = [ "CLD_VERSION=$cld_version" ] | 12 flags = [ "CLD_VERSION=$cld_version" ] |
13 } | 13 } |
14 | 14 |
15 group("cld") { | 15 group("cld") { |
16 public_deps = [ | 16 public_deps = [ |
17 ":cld_version", | 17 ":cld_version", |
18 ] | 18 ] |
19 if (cld_version == 2) { | 19 if (cld_version == 2) { |
20 public_deps += [ "//third_party/cld_2" ] | 20 public_deps += [ "//third_party/cld_2" ] |
21 } else if (cld_version == 3) { | 21 } else if (cld_version == 3) { |
22 public_deps += [ "//third_party/cld_3/src/src:cld_3" ] | 22 public_deps += [ "//third_party/cld_3/src/src:cld_3" ] |
23 } else { | 23 } else { |
24 assert(false, "CLD version should be 2 or 3") | 24 assert(false, "CLD version should be 2 or 3") |
25 } | 25 } |
26 } | 26 } |
OLD | NEW |