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("common") { | 7 static_library("common") { |
8 sources = [ | 8 sources = [ |
9 "translate_messages.cc", | 9 "translate_messages.cc", |
10 "translate_messages.h", | 10 "translate_messages.h", |
| 11 "cld_data_source.h", |
11 ] | 12 ] |
12 | 13 |
13 deps = [ | 14 deps = [ |
14 "//base", | 15 "//base", |
15 "//components/translate/core/common", | 16 "//components/translate/core/common", |
16 "//components/translate/core/language_detection", | 17 "//components/translate/core/language_detection", |
17 "//content/public/common", | 18 "//content/public/common", |
18 "//ipc", | 19 "//ipc", |
19 ] | 20 ] |
20 | 21 |
21 if (cld2_data_source == "standalone" || cld2_data_source == "component") { | 22 if (cld2_data_source == "standalone" || cld2_data_source == "component") { |
22 sources += [ | 23 sources += [ |
23 "data_file_cld_data_provider_messages.cc", | 24 "data_file_cld_data_provider_messages.cc", |
24 "data_file_cld_data_provider_messages.h", | 25 "data_file_cld_data_provider_messages.h", |
25 ] | 26 ] |
26 } | 27 } |
| 28 if (cld2_data_source == "standalone") { |
| 29 sources += [ "standalone_cld_data_source.cc" ] |
| 30 } |
| 31 if (cld2_data_source == "component") { |
| 32 sources += [ "component_cld_data_source.cc" ] |
| 33 } |
| 34 if (cld2_data_source == "static") { |
| 35 sources += [ "static_cld_data_source.cc" ] |
| 36 } |
27 } | 37 } |
OLD | NEW |