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

Side by Side 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: Run translate unittests on iOS 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 unified diff | Download patch
« no previous file with comments | « components/components_tests.gypi ('k') | components/translate/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'targets': [ 6 'targets': [
7 { 7 {
8 'target_name': 'sessions', 8 'target_name': 'translate_common',
9 'type': '<(component)', 9 'type': 'static_library',
10 'dependencies': [ 10 'dependencies': [
11 '../base/base.gyp:base', 11 '../base/base.gyp:base',
12 '../content/content.gyp:content_browser',
13 '../skia/skia.gyp:skia',
14 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
15 '../url/url.gyp:url_lib', 12 '../url/url.gyp:url_lib',
16 ], 13 ],
17 'include_dirs': [ 14 'include_dirs': [
18 '..', 15 '..',
19 ], 16 ],
20 'defines': [
21 'SESSIONS_IMPLEMENTATION',
22 ],
23 'sources': [ 17 'sources': [
24 'sessions/serialized_navigation_entry.cc', 18 'translate/common/translate_constants.cc',
25 'sessions/serialized_navigation_entry.h', 19 'translate/common/translate_constants.h',
26 ], 20 'translate/common/translate_metrics.cc',
27 'conditions': [ 21 'translate/common/translate_metrics.h',
28 ['OS != "ios" and chrome_multiple_dll != 1', { 22 'translate/common/translate_switches.cc',
29 'dependencies': [ 23 'translate/common/translate_switches.h',
30 '../webkit/glue/webkit_glue.gyp:glue', 24 'translate/common/translate_util.cc',
31 ] 25 'translate/common/translate_util.h',
32 }],
33 ['android_webview_build == 0', {
34 'dependencies': [
35 '../sync/sync.gyp:sync',
36 ]
37 }],
38 ], 26 ],
39 }, 27 },
40 { 28 {
41 'target_name': 'sessions_test_support', 29 'target_name': 'translate_language_detection',
42 'type': 'static_library', 30 'type': 'static_library',
43 'defines!': ['SESSIONS_IMPLEMENTATION'],
44 'dependencies': [ 31 'dependencies': [
45 '../skia/skia.gyp:skia', 32 'translate_common',
46 '../testing/gtest.gyp:gtest', 33 '../base/base.gyp:base',
34 '../url/url.gyp:url_lib',
47 ], 35 ],
48 'include_dirs': [ 36 'include_dirs': [
49 '..', 37 '..',
50 ], 38 ],
51 'sources': [ 39 'sources': [
52 'sessions/serialized_navigation_entry_test_helper.cc', 40 'translate/language_detection/language_detection_util.cc',
53 'sessions/serialized_navigation_entry_test_helper.h', 41 'translate/language_detection/language_detection_util.h',
54 ], 42 ],
55 'conditions': [ 43 'conditions': [
56 ['android_webview_build == 0', { 44 ['cld_version==0 or cld_version==1', {
57 'dependencies': [ 45 'dependencies': [
58 '../sync/sync.gyp:sync', 46 '<(DEPTH)/third_party/cld/cld.gyp:cld',
59 ] 47 ],
48 }],
49 ['cld_version==0 or cld_version==2', {
50 'dependencies': [
51 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2',
52 ],
60 }], 53 }],
61 ], 54 ],
62 }, 55 },
63 ], 56 ],
64 } 57 }
OLDNEW
« no previous file with comments | « components/components_tests.gypi ('k') | components/translate/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698