OLD | NEW |
1 # Copyright 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': 'translate_common', | 8 'target_name': 'translate_core_browser', |
9 'type': 'static_library', | 9 'type': 'static_library', |
10 'dependencies': [ | 10 'dependencies': [ |
| 11 'translate_core_common', |
11 '../base/base.gyp:base', | 12 '../base/base.gyp:base', |
12 '../url/url.gyp:url_lib', | 13 '../url/url.gyp:url_lib', |
13 ], | 14 ], |
14 'include_dirs': [ | 15 'include_dirs': [ |
15 '..', | 16 '..', |
16 ], | 17 ], |
17 'sources': [ | 18 'sources': [ |
18 'translate/common/translate_constants.cc', | 19 'translate/core/browser/page_translated_details.h', |
19 'translate/common/translate_constants.h', | 20 'translate/core/browser/translate_error_details.h', |
20 'translate/common/translate_metrics.cc', | 21 'translate/core/browser/translate_event_details.cc', |
21 'translate/common/translate_metrics.h', | 22 'translate/core/browser/translate_event_details.h', |
22 'translate/common/translate_switches.cc', | 23 ], |
23 'translate/common/translate_switches.h', | 24 }, |
24 'translate/common/translate_util.cc', | 25 { |
25 'translate/common/translate_util.h', | 26 'target_name': 'translate_core_common', |
| 27 'type': 'static_library', |
| 28 'dependencies': [ |
| 29 '../base/base.gyp:base', |
| 30 '../url/url.gyp:url_lib', |
| 31 ], |
| 32 'include_dirs': [ |
| 33 '..', |
| 34 ], |
| 35 'sources': [ |
| 36 'translate/core/common/translate_constants.cc', |
| 37 'translate/core/common/translate_constants.h', |
| 38 'translate/core/common/translate_errors.h', |
| 39 'translate/core/common/translate_metrics.cc', |
| 40 'translate/core/common/translate_metrics.h', |
| 41 'translate/core/common/translate_switches.cc', |
| 42 'translate/core/common/translate_switches.h', |
| 43 'translate/core/common/translate_util.cc', |
| 44 'translate/core/common/translate_util.h', |
| 45 'translate/core/common/language_detection_details.cc', |
| 46 'translate/core/common/language_detection_details.h', |
26 ], | 47 ], |
27 }, | 48 }, |
28 { | 49 { |
29 'target_name': 'translate_language_detection', | 50 'target_name': 'translate_language_detection', |
30 'type': 'static_library', | 51 'type': 'static_library', |
31 'dependencies': [ | 52 'dependencies': [ |
32 'translate_common', | 53 'translate_core_common', |
33 '../base/base.gyp:base', | 54 '../base/base.gyp:base', |
34 '../url/url.gyp:url_lib', | 55 '../url/url.gyp:url_lib', |
35 ], | 56 ], |
36 'include_dirs': [ | 57 'include_dirs': [ |
37 '..', | 58 '..', |
38 ], | 59 ], |
39 'sources': [ | 60 'sources': [ |
40 'translate/language_detection/language_detection_util.cc', | 61 'translate/language_detection/language_detection_util.cc', |
41 'translate/language_detection/language_detection_util.h', | 62 'translate/language_detection/language_detection_util.h', |
42 ], | 63 ], |
43 'conditions': [ | 64 'conditions': [ |
44 ['cld_version==0 or cld_version==1', { | 65 ['cld_version==0 or cld_version==1', { |
45 'dependencies': [ | 66 'dependencies': [ |
46 '<(DEPTH)/third_party/cld/cld.gyp:cld', | 67 '<(DEPTH)/third_party/cld/cld.gyp:cld', |
47 ], | 68 ], |
48 }], | 69 }], |
49 ['cld_version==0 or cld_version==2', { | 70 ['cld_version==0 or cld_version==2', { |
50 'dependencies': [ | 71 'dependencies': [ |
51 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2', | 72 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2', |
52 ], | 73 ], |
53 }], | 74 }], |
54 ], | 75 ], |
55 }, | 76 }, |
56 ], | 77 ], |
57 } | 78 } |
OLD | NEW |