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

Side by Side Diff: components/suggestions.gypi

Issue 630073002: [Suggestions] Create ImageEncoder, to abstract away image encode/decode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn fix Created 6 years, 2 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
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 { 5 {
6 'targets': [ 6 'targets': [
7 { 7 {
8 # GN version: //components/suggestions 8 # GN version: //components/suggestions
9 'target_name': 'suggestions', 9 'target_name': 'suggestions',
10 'type': 'static_library', 10 'type': 'static_library',
11 'include_dirs': [ 11 'include_dirs': [
12 '..', 12 '..',
13 ], 13 ],
14 'dependencies': [ 14 'dependencies': [
15 '../base/base.gyp:base', 15 '../base/base.gyp:base',
16 '../net/net.gyp:net', 16 '../net/net.gyp:net',
17 '../ui/gfx/gfx.gyp:gfx', 17 '../ui/gfx/gfx.gyp:gfx',
18 '../url/url.gyp:url_lib', 18 '../url/url.gyp:url_lib',
19 'components.gyp:keyed_service_core', 19 'components.gyp:keyed_service_core',
20 'components.gyp:pref_registry', 20 'components.gyp:pref_registry',
21 'components.gyp:variations', 21 'components.gyp:variations',
22 'components.gyp:variations_http_provider', 22 'components.gyp:variations_http_provider',
23 ], 23 ],
24 'sources': [ 24 'sources': [
25 'suggestions/blacklist_store.cc', 25 'suggestions/blacklist_store.cc',
26 'suggestions/blacklist_store.h', 26 'suggestions/blacklist_store.h',
27 'suggestions/image_encoder.h',
27 'suggestions/image_fetcher.h', 28 'suggestions/image_fetcher.h',
28 'suggestions/image_fetcher_delegate.h', 29 'suggestions/image_fetcher_delegate.h',
29 'suggestions/image_manager.cc', 30 'suggestions/image_manager.cc',
30 'suggestions/image_manager.h', 31 'suggestions/image_manager.h',
31 'suggestions/proto/suggestions.proto', 32 'suggestions/proto/suggestions.proto',
32 'suggestions/suggestions_pref_names.cc', 33 'suggestions/suggestions_pref_names.cc',
33 'suggestions/suggestions_pref_names.h', 34 'suggestions/suggestions_pref_names.h',
34 'suggestions/suggestions_service.cc', 35 'suggestions/suggestions_service.cc',
35 'suggestions/suggestions_service.h', 36 'suggestions/suggestions_service.h',
36 'suggestions/suggestions_store.cc', 37 'suggestions/suggestions_store.cc',
37 'suggestions/suggestions_store.h', 38 'suggestions/suggestions_store.h',
38 'suggestions/suggestions_utils.cc', 39 'suggestions/suggestions_utils.cc',
39 'suggestions/suggestions_utils.h', 40 'suggestions/suggestions_utils.h',
40 ], 41 ],
41 'variables': { 42 'variables': {
42 'proto_in_dir': 'suggestions/proto', 43 'proto_in_dir': 'suggestions/proto',
43 'proto_out_dir': 'components/suggestions/proto', 44 'proto_out_dir': 'components/suggestions/proto',
44 }, 45 },
45 'includes': [ '../build/protoc.gypi' ], 46 'includes': [ '../build/protoc.gypi' ],
46 }, 47 },
47 ], 48 # TODO(justincohen): iOS cannot depend on ui/gfx, so we should provide an
49 # implementation of the image encoder, and put this target in a block that
50 # excludes iOS.
51 {
52 # GN version: //components/suggestions:jpeg_image_encoder
53 'target_name': 'jpeg_image_encoder',
54 'type': 'static_library',
55 'dependencies': [
56 '../base/base.gyp:base',
57 '../ui/gfx/gfx.gyp:gfx',
58 'suggestions',
59 ],
60 'sources': [
61 'suggestions/jpeg/jpeg_image_encoder.cc',
62 'suggestions/jpeg/jpeg_image_encoder.h',
63 ],
64 }
65 ]
48 } 66 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698