| Index: third_party/cld/BUILD.gn
|
| diff --git a/third_party/cld/BUILD.gn b/third_party/cld/BUILD.gn
|
| index 67ce03ce0454d39ad13940f0bedd7e8f2af6e7a6..a42196733c810770e97b82ed8ceaa9a915510c21 100644
|
| --- a/third_party/cld/BUILD.gn
|
| +++ b/third_party/cld/BUILD.gn
|
| @@ -2,9 +2,14 @@
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| +import("//testing/test.gni")
|
| +
|
| config("cld_config") {
|
| defines = [ "CLD_WINDOWS" ]
|
| include_dirs = [ "." ]
|
| + if (is_clang) {
|
| + cflags = [ "-Wno-unused-function" ]
|
| + }
|
| }
|
|
|
| source_set("cld") {
|
| @@ -33,6 +38,13 @@ source_set("cld") {
|
| "base/template_util.h",
|
| "base/type_traits.h",
|
| "base/vlog_is_on.h",
|
| + "encodings/compact_enc_det/detail_head_string.inc",
|
| + "encodings/compact_enc_det/compact_enc_det.cc",
|
| + "encodings/compact_enc_det/compact_enc_det.h",
|
| + "encodings/compact_enc_det/compact_enc_det_generated_tables.h",
|
| + "encodings/compact_enc_det/compact_enc_det_generated_tables2.h",
|
| + "encodings/compact_enc_det/compact_enc_det_hint_code.h",
|
| + "encodings/compact_enc_det/compact_enc_det_hint_code.cc",
|
| "encodings/compact_lang_det/cldutil.cc",
|
| "encodings/compact_lang_det/cldutil.h",
|
| "encodings/compact_lang_det/cldutil_dbg.h",
|
| @@ -110,3 +122,16 @@ source_set("cld") {
|
| "//third_party/icu:icuuc",
|
| ]
|
| }
|
| +
|
| +test("cld_unittests") {
|
| + sources = [
|
| + "encodings/compact_enc_det/compact_enc_det_unittest.cc",
|
| + "encodings/compact_lang_det/compact_lang_det_unittest_small.cc"
|
| + ]
|
| +
|
| + deps = [
|
| + ":cld",
|
| + "//testing/gtest",
|
| + "//testing/gtest:gtest_main",
|
| + ]
|
| +}
|
|
|