Don't preload rarely seen large images
[chromium-blink-merge.git] / third_party / cld / BUILD.gn
blob0917f25529243826afa4cbe2c2b7d466f365588d
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.
5 config("cld_config") {
6   defines = [ "CLD_WINDOWS" ]
7   include_dirs = [ "." ]
10 source_set("cld") {
11   # The /win/ directory is used on all platforms.
12   set_sources_assignment_filter([])
14   # This target includes its own copy of "base" which confuses the header
15   # checker.
16   check_includes = false
18   sources = [
19     "base/basictypes.h",
20     "base/build_config.h",
21     "base/casts.h",
22     "base/commandlineflags.h",
23     "base/crash.h",
24     "base/dynamic_annotations.h",
25     "base/global_strip_options.h",
26     "base/log_severity.h",
27     "base/logging.h",
28     "base/macros.h",
29     "base/port.h",
30     "base/scoped_ptr.h",
31     "base/stl_decl_msvc.h",
32     "base/string_util.h",
33     "base/strtoint.h",
34     "base/template_util.h",
35     "base/type_traits.h",
36     "base/vlog_is_on.h",
37     "encodings/compact_lang_det/cldutil.cc",
38     "encodings/compact_lang_det/cldutil.h",
39     "encodings/compact_lang_det/cldutil_dbg.h",
40     "encodings/compact_lang_det/cldutil_dbg_empty.cc",
41     "encodings/compact_lang_det/compact_lang_det.cc",
42     "encodings/compact_lang_det/compact_lang_det.h",
43     "encodings/compact_lang_det/compact_lang_det_impl.cc",
44     "encodings/compact_lang_det/compact_lang_det_impl.h",
45     "encodings/compact_lang_det/ext_lang_enc.cc",
46     "encodings/compact_lang_det/ext_lang_enc.h",
47     "encodings/compact_lang_det/generated/cld_generated_score_quadchrome_0406.cc",
48     "encodings/compact_lang_det/generated/compact_lang_det_generated_cjkbis_0.cc",
49     "encodings/compact_lang_det/generated/compact_lang_det_generated_ctjkvz.cc",
50     "encodings/compact_lang_det/generated/compact_lang_det_generated_deltaoctachrome.cc",
51     "encodings/compact_lang_det/generated/compact_lang_det_generated_meanscore.h",
52     "encodings/compact_lang_det/generated/compact_lang_det_generated_quadschrome.cc",
53     "encodings/compact_lang_det/getonescriptspan.cc",
54     "encodings/compact_lang_det/getonescriptspan.h",
55     "encodings/compact_lang_det/letterscript_enum.cc",
56     "encodings/compact_lang_det/letterscript_enum.h",
57     "encodings/compact_lang_det/string_byte_sink.cc",
58     "encodings/compact_lang_det/string_byte_sink.h",
59     "encodings/compact_lang_det/subsetsequence.cc",
60     "encodings/compact_lang_det/subsetsequence.h",
61     "encodings/compact_lang_det/tote.cc",
62     "encodings/compact_lang_det/tote.h",
63     "encodings/compact_lang_det/utf8propjustletter.h",
64     "encodings/compact_lang_det/utf8propletterscriptnum.h",
65     "encodings/compact_lang_det/utf8scannotjustletterspecial.h",
66     "encodings/compact_lang_det/win/cld_basictypes.h",
67     "encodings/compact_lang_det/win/cld_commandlineflags.h",
68     "encodings/compact_lang_det/win/cld_google.h",
69     "encodings/compact_lang_det/win/cld_htmlutils.h",
70     "encodings/compact_lang_det/win/cld_htmlutils_windows.cc",
71     "encodings/compact_lang_det/win/cld_logging.h",
72     "encodings/compact_lang_det/win/cld_macros.h",
73     "encodings/compact_lang_det/win/cld_strtoint.h",
74     "encodings/compact_lang_det/win/cld_unicodetext.cc",
75     "encodings/compact_lang_det/win/cld_unicodetext.h",
76     "encodings/compact_lang_det/win/cld_unilib.h",
77     "encodings/compact_lang_det/win/cld_unilib_windows.cc",
78     "encodings/compact_lang_det/win/cld_utf.h",
79     "encodings/compact_lang_det/win/cld_utf8statetable.cc",
80     "encodings/compact_lang_det/win/cld_utf8statetable.h",
81     "encodings/compact_lang_det/win/cld_utf8utils.h",
82     "encodings/compact_lang_det/win/cld_utf8utils_windows.cc",
83     "encodings/internal/encodings.cc",
84     "encodings/proto/encodings.pb.h",
85     "encodings/public/encodings.h",
86     "languages/internal/languages.cc",
87     "languages/proto/languages.pb.h",
88     "languages/public/languages.h",
89   ]
91   configs -= [
92     # We have conflicting versions of some base files.
93     "//build/config/compiler:default_include_dirs",
94     "//build/config/compiler:chromium_code",
95   ]
96   configs += [ "//build/config/compiler:no_chromium_code" ]
97   public_configs = [ ":cld_config" ]
99   if (is_win) {
100     defines = [ "COMPILER_MSVC" ]
101     cflags = [
102       "/wd4005",  # Macro defined twice.
103       "/wd4006",  # #undef expected an identifier.
104       "/wd4309",  # Truncation of constant value.
105     ]
106   } else {
107     defines = [ "COMPILER_GCC" ]
108   }
110   public_deps = [
111     "//third_party/icu:icuuc",
112   ]