| 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 "cld_data_source.cc", |
| 10 "cld_data_source.h", |
| 11 "data_file_cld_data_provider_messages.cc", |
| 12 "data_file_cld_data_provider_messages.h", |
| 9 "translate_messages.cc", | 13 "translate_messages.cc", |
| 10 "translate_messages.h", | 14 "translate_messages.h", |
| 11 "cld_data_source.h", | |
| 12 ] | 15 ] |
| 13 | 16 |
| 14 deps = [ | 17 deps = [ |
| 15 "//base", | 18 "//base", |
| 16 "//components/translate/core/common", | 19 "//components/translate/core/common", |
| 17 "//components/translate/core/language_detection", | 20 "//components/translate/core/language_detection", |
| 18 "//content/public/common", | 21 "//content/public/common", |
| 19 "//ipc", | 22 "//ipc", |
| 20 ] | 23 ] |
| 21 | 24 |
| 22 if (cld2_data_source == "standalone" || cld2_data_source == "component") { | |
| 23 sources += [ | |
| 24 "data_file_cld_data_provider_messages.cc", | |
| 25 "data_file_cld_data_provider_messages.h", | |
| 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 } | |
| 37 } | 25 } |
| OLD | NEW |