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 '../base/base.gyp:base', | 11 '../base/base.gyp:base', |
blundell
2014/01/06 12:04:52
Should this depend on translate_core_common?
droger
2014/01/06 13:21:31
Yes. Done.
| |
12 '../url/url.gyp:url_lib', | 12 '../url/url.gyp:url_lib', |
13 ], | 13 ], |
14 'include_dirs': [ | 14 'include_dirs': [ |
15 '..', | 15 '..', |
16 ], | 16 ], |
17 'sources': [ | 17 'sources': [ |
18 'translate/common/translate_constants.cc', | 18 'translate/core/browser/page_translated_details.h', |
19 'translate/common/translate_constants.h', | 19 'translate/core/browser/translate_error_details.h', |
blundell
2014/01/06 12:04:52
This file is duplicated below.
droger
2014/01/06 13:21:31
No, it's slightly different ("event" instead of "e
| |
20 'translate/common/translate_metrics.cc', | 20 'translate/core/browser/translate_event_details.cc', |
21 'translate/common/translate_metrics.h', | 21 'translate/core/browser/translate_event_details.h', |
22 'translate/common/translate_switches.cc', | 22 ], |
23 'translate/common/translate_switches.h', | 23 }, |
24 'translate/common/translate_util.cc', | 24 { |
25 'translate/common/translate_util.h', | 25 'target_name': 'translate_core_common', |
26 'type': 'static_library', | |
27 'dependencies': [ | |
28 '../base/base.gyp:base', | |
29 '../url/url.gyp:url_lib', | |
30 ], | |
31 'include_dirs': [ | |
32 '..', | |
33 ], | |
34 'sources': [ | |
35 'translate/core/common/translate_constants.cc', | |
36 'translate/core/common/translate_constants.h', | |
37 'translate/core/common/translate_errors.h', | |
38 'translate/core/common/translate_metrics.cc', | |
39 'translate/core/common/translate_metrics.h', | |
40 'translate/core/common/translate_switches.cc', | |
41 'translate/core/common/translate_switches.h', | |
42 'translate/core/common/translate_util.cc', | |
43 'translate/core/common/translate_util.h', | |
44 'translate/core/common/language_detection_details.cc', | |
45 'translate/core/common/language_detection_details.h', | |
26 ], | 46 ], |
27 }, | 47 }, |
28 { | 48 { |
29 'target_name': 'translate_language_detection', | 49 'target_name': 'translate_language_detection', |
30 'type': 'static_library', | 50 'type': 'static_library', |
31 'dependencies': [ | 51 'dependencies': [ |
32 'translate_common', | 52 'translate_core_common', |
33 '../base/base.gyp:base', | 53 '../base/base.gyp:base', |
34 '../url/url.gyp:url_lib', | 54 '../url/url.gyp:url_lib', |
35 ], | 55 ], |
36 'include_dirs': [ | 56 'include_dirs': [ |
37 '..', | 57 '..', |
38 ], | 58 ], |
39 'sources': [ | 59 'sources': [ |
40 'translate/language_detection/language_detection_util.cc', | 60 'translate/language_detection/language_detection_util.cc', |
41 'translate/language_detection/language_detection_util.h', | 61 'translate/language_detection/language_detection_util.h', |
42 ], | 62 ], |
43 'conditions': [ | 63 'conditions': [ |
44 ['cld_version==0 or cld_version==1', { | 64 ['cld_version==0 or cld_version==1', { |
45 'dependencies': [ | 65 'dependencies': [ |
46 '<(DEPTH)/third_party/cld/cld.gyp:cld', | 66 '<(DEPTH)/third_party/cld/cld.gyp:cld', |
47 ], | 67 ], |
48 }], | 68 }], |
49 ['cld_version==0 or cld_version==2', { | 69 ['cld_version==0 or cld_version==2', { |
50 'dependencies': [ | 70 'dependencies': [ |
51 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2', | 71 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2', |
52 ], | 72 ], |
53 }], | 73 }], |
54 ], | 74 ], |
55 }, | 75 }, |
56 ], | 76 ], |
57 } | 77 } |
OLD | NEW |