# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/buildflag_header.gni")

# Specifies which language identification model to use: CLD2 or CLD3.
cld_version = 3

buildflag_header("cld_version") {
  header = "cld_version.h"
  flags = [ "CLD_VERSION=$cld_version" ]
}

group("cld") {
  public_deps = [
    ":cld_version",
  ]
  if (cld_version == 2) {
    public_deps += [ "//third_party/cld_2" ]
  } else if (cld_version == 3) {
    public_deps += [ "//third_party/cld_3/src/src:cld_3" ]
  } else {
    assert(false, "CLD version should be 2 or 3")
  }
}
