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

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

Issue 2507213002: Switching from CLD2 to CLD3 (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698