summaryrefslogtreecommitdiffstats
path: root/components/translate.gypi
diff options
context:
space:
mode:
authordroger@chromium.org <droger@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-04 16:03:09 +0000
committerdroger@chromium.org <droger@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-04 16:03:09 +0000
commit499e7c55f53e2a118c31fddd079456a3dbe8b35c (patch)
tree185e0a4be375f4b45276ea0472a0b472665ca1ba /components/translate.gypi
parentb38806a8ad4ecb73bfffaecfaab28a1dfe3a5402 (diff)
downloadchromium_src-499e7c55f53e2a118c31fddd079456a3dbe8b35c.zip
chromium_src-499e7c55f53e2a118c31fddd079456a3dbe8b35c.tar.gz
chromium_src-499e7c55f53e2a118c31fddd079456a3dbe8b35c.tar.bz2
Move language detection to a component
Language detection is used from the renderer on most platform, but from the browser on iOS. This CL moves it from chrome/common/ to a new "translate" component, which allows to track and address more cleanly dependencies issues. BUG=297777 Review URL: https://codereview.chromium.org/25531002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227015 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/translate.gypi')
-rw-r--r--components/translate.gypi57
1 files changed, 57 insertions, 0 deletions
diff --git a/components/translate.gypi b/components/translate.gypi
new file mode 100644
index 0000000..7c19fe8
--- /dev/null
+++ b/components/translate.gypi
@@ -0,0 +1,57 @@
+# Copyright 2013 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'targets': [
+ {
+ 'target_name': 'translate_common',
+ 'type': 'static_library',
+ 'dependencies': [
+ '../base/base.gyp:base',
+ '../url/url.gyp:url_lib',
+ ],
+ 'include_dirs': [
+ '..',
+ ],
+ 'sources': [
+ 'translate/common/translate_constants.cc',
+ 'translate/common/translate_constants.h',
+ 'translate/common/translate_metrics.cc',
+ 'translate/common/translate_metrics.h',
+ 'translate/common/translate_switches.cc',
+ 'translate/common/translate_switches.h',
+ 'translate/common/translate_util.cc',
+ 'translate/common/translate_util.h',
+ ],
+ },
+ {
+ 'target_name': 'translate_language_detection',
+ 'type': 'static_library',
+ 'dependencies': [
+ 'translate_common',
+ '../base/base.gyp:base',
+ '../url/url.gyp:url_lib',
+ ],
+ 'include_dirs': [
+ '..',
+ ],
+ 'sources': [
+ 'translate/language_detection/language_detection_util.cc',
+ 'translate/language_detection/language_detection_util.h',
+ ],
+ 'conditions': [
+ ['cld_version==0 or cld_version==1', {
+ 'dependencies': [
+ '<(DEPTH)/third_party/cld/cld.gyp:cld',
+ ],
+ }],
+ ['cld_version==0 or cld_version==2', {
+ 'dependencies': [
+ '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2',
+ ],
+ }],
+ ],
+ },
+ ],
+}