1# Copyright (c) 2012 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. 4 5{ 6 'includes': [ 7 '../../build/win_precompile.gypi', 8 ], 9 'targets': [ 10 { 11 'target_name': 'cld', 12 'type': 'static_library', 13 'dependencies': [ 14 '../icu/icu.gyp:icuuc', 15 ], 16 'export_dependent_settings': [ 17 '../icu/icu.gyp:icuuc', 18 ], 19 'include_dirs': [ 20 '.', 21 ], 22 'defines': [ 23 'CLD_WINDOWS', 24 ], 25 'sources': [ 26 'encodings/compact_lang_det/cldutil.cc', 27 'encodings/compact_lang_det/cldutil.h', 28 'encodings/compact_lang_det/cldutil_dbg.h', 29 'encodings/compact_lang_det/cldutil_dbg_empty.cc', 30 'encodings/compact_lang_det/compact_lang_det.cc', 31 'encodings/compact_lang_det/compact_lang_det.h', 32 'encodings/compact_lang_det/compact_lang_det_impl.cc', 33 'encodings/compact_lang_det/compact_lang_det_impl.h', 34 'encodings/compact_lang_det/ext_lang_enc.cc', 35 'encodings/compact_lang_det/ext_lang_enc.h', 36 'encodings/compact_lang_det/getonescriptspan.cc', 37 'encodings/compact_lang_det/getonescriptspan.h', 38 'encodings/compact_lang_det/letterscript_enum.cc', 39 'encodings/compact_lang_det/letterscript_enum.h', 40 'encodings/compact_lang_det/string_byte_sink.cc', 41 'encodings/compact_lang_det/string_byte_sink.h', 42 'encodings/compact_lang_det/subsetsequence.cc', 43 'encodings/compact_lang_det/subsetsequence.h', 44 'encodings/compact_lang_det/tote.cc', 45 'encodings/compact_lang_det/tote.h', 46 'encodings/compact_lang_det/utf8propjustletter.h', 47 'encodings/compact_lang_det/utf8propletterscriptnum.h', 48 'encodings/compact_lang_det/utf8scannotjustletterspecial.h', 49 'encodings/compact_lang_det/generated/cld_generated_score_quadchrome_0406.cc', 50 'encodings/compact_lang_det/generated/compact_lang_det_generated_cjkbis_0.cc', 51 'encodings/compact_lang_det/generated/compact_lang_det_generated_ctjkvz.cc', 52 'encodings/compact_lang_det/generated/compact_lang_det_generated_deltaoctachrome.cc', 53 'encodings/compact_lang_det/generated/compact_lang_det_generated_meanscore.h', 54 'encodings/compact_lang_det/generated/compact_lang_det_generated_quadschrome.cc', 55 'encodings/compact_lang_det/win/cld_basictypes.h', 56 'encodings/compact_lang_det/win/cld_commandlineflags.h', 57 'encodings/compact_lang_det/win/cld_google.h', 58 'encodings/compact_lang_det/win/cld_htmlutils.h', 59 'encodings/compact_lang_det/win/cld_htmlutils_windows.cc', 60 'encodings/compact_lang_det/win/cld_logging.h', 61 'encodings/compact_lang_det/win/cld_macros.h', 62 'encodings/compact_lang_det/win/cld_strtoint.h', 63 'encodings/compact_lang_det/win/cld_unicodetext.cc', 64 'encodings/compact_lang_det/win/cld_unicodetext.h', 65 'encodings/compact_lang_det/win/cld_unilib.h', 66 'encodings/compact_lang_det/win/cld_unilib_windows.cc', 67 'encodings/compact_lang_det/win/cld_utf.h', 68 'encodings/compact_lang_det/win/cld_utf8statetable.cc', 69 'encodings/compact_lang_det/win/cld_utf8statetable.h', 70 'encodings/compact_lang_det/win/cld_utf8utils.h', 71 'encodings/compact_lang_det/win/cld_utf8utils_windows.cc', 72 'encodings/internal/encodings.cc', 73 'encodings/proto/encodings.pb.h', 74 'encodings/public/encodings.h', 75 'languages/internal/languages.cc', 76 'languages/proto/languages.pb.h', 77 'languages/public/languages.h', 78 'base/basictypes.h', 79 'base/build_config.h', 80 'base/casts.h', 81 'base/commandlineflags.h', 82 'base/global_strip_options.h', 83 'base/logging.h', 84 'base/macros.h', 85 'base/port.h', 86 'base/crash.h', 87 'base/dynamic_annotations.h', 88 'base/scoped_ptr.h', 89 'base/stl_decl_msvc.h', 90 'base/log_severity.h', 91 'base/strtoint.h', 92 'base/vlog_is_on.h', 93 'base/string_util.h', 94 'base/type_traits.h', 95 'base/template_util.h', 96 ], 97 'direct_dependent_settings': { 98 'defines': [ 99 'CLD_WINDOWS', 100 ], 101 'include_dirs': [ 102 '.', 103 ], 104 }, 105 'conditions': [ 106 ['OS=="win"', { 107 'direct_dependent_settings': { 108 'defines': [ 109 'COMPILER_MSVC', 110 ], 111 }, 112 # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int 113 'msvs_disabled_warnings': [4005, 4006, 4018, 4244, 4309, 4800, 4267], 114 }, { 115 'direct_dependent_settings': { 116 'defines': [ 117 'COMPILER_GCC', 118 ], 119 }, 120 }], 121 ], 122 }, 123 ], 124} 125