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 { | 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 'conditions': [ | 47 'conditions': [ |
47 ['OS == "ios"', { | 48 ['OS == "ios"', { |
48 'sources': [ | 49 'sources': [ |
49 'suggestions/image_encoder_ios.h', | |
50 'suggestions/image_encoder_ios.mm', | 50 'suggestions/image_encoder_ios.mm', |
51 ] | 51 ] |
52 }, { # 'OS != "ios"' | 52 }, { # 'OS != "ios"' |
53 'sources': [ | 53 'sources': [ |
54 'suggestions/image_encoder.cc', | 54 'suggestions/image_encoder.cc', |
55 'suggestions/image_encoder.h', | |
56 ] | 55 ] |
57 } | 56 } |
58 ]] | 57 ]] |
59 }, | 58 }, |
60 ], | 59 ], |
61 } | 60 } |
OLD | NEW |