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

Unified Diff: components/translate.gypi

Issue 25531002: Move language detection to a component (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Minor changes Created 7 years, 2 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
Index: components/translate.gypi
diff --git a/components/translate.gypi b/components/translate.gypi
new file mode 100644
index 0000000000000000000000000000000000000000..22bbd4e235430b207ff71f385d12de7d6c2172de
--- /dev/null
+++ b/components/translate.gypi
@@ -0,0 +1,57 @@
+# Copyright (c) 2013 The Chromium Authors. All rights reserved.
Jói 2013/10/02 12:12:11 nit: I don't think we use the (c) any more.
droger 2013/10/02 12:33:12 Done.
+# 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',
+ ],
+ }],
+ ],
+ },
+ ],
+}

Powered by Google App Engine
This is Rietveld 408576698