Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1102)

Side by Side Diff: components/translate/content/common/BUILD.gn

Issue 422843009: Add a new CldDataSource class that can be queried at runtime. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add BUILD.gn Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « components/translate.gypi ('k') | components/translate/content/common/cld_data_source.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 }
OLDNEW
« no previous file with comments | « components/translate.gypi ('k') | components/translate/content/common/cld_data_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698