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

Unified Diff: third_party/cld/BUILD.gn

Issue 1956183002: CL for perf tryjob on linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/text/TextEncodingDetector.cpp ('k') | third_party/cld/base/basictypes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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",
+ ]
+}
« no previous file with comments | « third_party/WebKit/Source/platform/text/TextEncodingDetector.cpp ('k') | third_party/cld/base/basictypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698