1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
6 defines = [ "CLD_WINDOWS" ]
10 static_library("cld") {
12 "encodings/compact_lang_det/cldutil.cc",
13 "encodings/compact_lang_det/cldutil.h",
14 "encodings/compact_lang_det/cldutil_dbg.h",
15 "encodings/compact_lang_det/cldutil_dbg_empty.cc",
16 "encodings/compact_lang_det/compact_lang_det.cc",
17 "encodings/compact_lang_det/compact_lang_det.h",
18 "encodings/compact_lang_det/compact_lang_det_impl.cc",
19 "encodings/compact_lang_det/compact_lang_det_impl.h",
20 "encodings/compact_lang_det/ext_lang_enc.cc",
21 "encodings/compact_lang_det/ext_lang_enc.h",
22 "encodings/compact_lang_det/getonescriptspan.cc",
23 "encodings/compact_lang_det/getonescriptspan.h",
24 "encodings/compact_lang_det/letterscript_enum.cc",
25 "encodings/compact_lang_det/letterscript_enum.h",
26 "encodings/compact_lang_det/string_byte_sink.cc",
27 "encodings/compact_lang_det/string_byte_sink.h",
28 "encodings/compact_lang_det/subsetsequence.cc",
29 "encodings/compact_lang_det/subsetsequence.h",
30 "encodings/compact_lang_det/tote.cc",
31 "encodings/compact_lang_det/tote.h",
32 "encodings/compact_lang_det/utf8propjustletter.h",
33 "encodings/compact_lang_det/utf8propletterscriptnum.h",
34 "encodings/compact_lang_det/utf8scannotjustletterspecial.h",
35 "encodings/compact_lang_det/generated/cld_generated_score_quadchrome_0406.cc",
36 "encodings/compact_lang_det/generated/compact_lang_det_generated_cjkbis_0.cc",
37 "encodings/compact_lang_det/generated/compact_lang_det_generated_ctjkvz.cc",
38 "encodings/compact_lang_det/generated/compact_lang_det_generated_deltaoctachrome.cc",
39 "encodings/compact_lang_det/generated/compact_lang_det_generated_meanscore.h",
40 "encodings/compact_lang_det/generated/compact_lang_det_generated_quadschrome.cc",
41 "encodings/compact_lang_det/win/cld_basictypes.h",
42 "encodings/compact_lang_det/win/cld_commandlineflags.h",
43 "encodings/compact_lang_det/win/cld_google.h",
44 "encodings/compact_lang_det/win/cld_htmlutils.h",
45 "encodings/compact_lang_det/win/cld_htmlutils_windows.cc",
46 "encodings/compact_lang_det/win/cld_logging.h",
47 "encodings/compact_lang_det/win/cld_macros.h",
48 "encodings/compact_lang_det/win/cld_strtoint.h",
49 "encodings/compact_lang_det/win/cld_unicodetext.cc",
50 "encodings/compact_lang_det/win/cld_unicodetext.h",
51 "encodings/compact_lang_det/win/cld_unilib.h",
52 "encodings/compact_lang_det/win/cld_unilib_windows.cc",
53 "encodings/compact_lang_det/win/cld_utf.h",
54 "encodings/compact_lang_det/win/cld_utf8statetable.cc",
55 "encodings/compact_lang_det/win/cld_utf8statetable.h",
56 "encodings/compact_lang_det/win/cld_utf8utils.h",
57 "encodings/compact_lang_det/win/cld_utf8utils_windows.cc",
58 "encodings/internal/encodings.cc",
59 "encodings/proto/encodings.pb.h",
60 "encodings/public/encodings.h",
61 "languages/internal/languages.cc",
62 "languages/proto/languages.pb.h",
63 "languages/public/languages.h",
65 "base/build_config.h",
67 "base/commandlineflags.h",
68 "base/global_strip_options.h",
73 "base/dynamic_annotations.h",
75 "base/stl_decl_msvc.h",
76 "base/log_severity.h",
81 "base/template_util.h",
85 # We have conflicting versions of some base files.
86 "//build/config/compiler:default_include_dirs",
87 "//build/config/compiler:chromium_code",
89 configs += [ "//build/config/compiler:no_chromium_code" ]
90 direct_dependent_configs = [ ":cld_config" ]
93 defines = [ "COMPILER_MSVC" ]
95 "/wd4005", # Macro defined twice.
96 "/wd4006", # #undef expected an identifier.
97 "/wd4309", # Truncation of constant value.
98 "/wd4267", # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int
101 defines = [ "COMPILER_GCC" ]
105 "//third_party/icu:icuuc",
108 forward_dependent_configs_from = [
109 "//third_party/icu:icuuc",