OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 | 6 |
7 static_library("renderer") { | 7 static_library("renderer") { |
8 sources = [ | 8 sources = [ |
| 9 "data_file_renderer_cld_data_provider.cc", |
| 10 "data_file_renderer_cld_data_provider.h", |
9 "renderer_cld_data_provider.cc", | 11 "renderer_cld_data_provider.cc", |
10 "renderer_cld_data_provider.h", | 12 "renderer_cld_data_provider.h", |
11 "renderer_cld_data_provider_factory.cc", | 13 "renderer_cld_data_provider_factory.cc", |
12 "renderer_cld_data_provider_factory.h", | 14 "renderer_cld_data_provider_factory.h", |
13 "renderer_cld_utils.cc", | 15 "renderer_cld_utils.cc", |
14 "renderer_cld_utils.h", | 16 "renderer_cld_utils.h", |
15 "translate_helper.cc", | 17 "translate_helper.cc", |
16 "translate_helper.h", | 18 "translate_helper.h", |
17 ] | 19 ] |
18 | 20 |
19 deps = [ | 21 deps = [ |
20 "//base", | 22 "//base", |
21 "//components/translate/content/common", | 23 "//components/translate/content/common", |
22 "//components/translate/core/common", | 24 "//components/translate/core/common", |
23 "//components/translate/core/language_detection", | 25 "//components/translate/core/language_detection", |
24 "//content/public/common", | 26 "//content/public/common", |
25 "//content/public/renderer", | 27 "//content/public/renderer", |
26 "//ipc", | 28 "//ipc", |
27 "//third_party/WebKit/public:blink", | 29 "//third_party/WebKit/public:blink", |
| 30 "//third_party/cld_2", |
28 "//url", | 31 "//url", |
29 "//v8", | 32 "//v8", |
30 ] | 33 ] |
31 | |
32 if (cld_version == 2) { | |
33 sources += [ | |
34 "data_file_renderer_cld_data_provider.cc", | |
35 "data_file_renderer_cld_data_provider.h", | |
36 ] | |
37 deps += [ "//third_party/cld_2" ] | |
38 } | |
39 } | 34 } |
OLD | NEW |