Add R_8 GPU memory buffers format.
[chromium-blink-merge.git] / components / precache.gypi
blob0bd41da2260c25d8023293aa8698d8a7be99d210
1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
6   'targets': [
7     {
8       # GN Version: //components/precache/content
9       'target_name': 'precache_content',
10       'type': 'static_library',
11       'dependencies': [
12         'precache_core',
13         '../base/base.gyp:base',
14         '../content/content.gyp:content_browser',
15         '../url/url.gyp:url_lib',
16       ],
17       'include_dirs': [
18         '..',
19       ],
20       'sources': [
21         # Note: sources list duplicated in GN build.
22         'precache/content/precache_manager.cc',
23         'precache/content/precache_manager.h',
24         'precache/content/precache_manager_factory.cc',
25         'precache/content/precache_manager_factory.h',
26       ],
27     },
28     {
29       # GN version: //components/precache/core
30       'target_name': 'precache_core',
31       'type': 'static_library',
32       'dependencies': [
33         'precache_core_proto',
34         '../base/base.gyp:base',
35         '../third_party/protobuf/protobuf.gyp:protobuf_lite',
36         '../url/url.gyp:url_lib',
37       ],
38       'include_dirs': [
39         '..',
40       ],
41       'sources': [
42         'precache/core/precache_database.cc',
43         'precache/core/precache_database.h',
44         'precache/core/precache_fetcher.cc',
45         'precache/core/precache_fetcher.h',
46         'precache/core/precache_switches.cc',
47         'precache/core/precache_switches.h',
48         'precache/core/precache_url_table.cc',
49         'precache/core/precache_url_table.h',
50         'precache/core/url_list_provider.h',
51       ],
52       'includes': [ 'precache/precache_defines.gypi', ],
53       'direct_dependent_settings': {
54         # Make direct dependents also include the precache defines. This allows
55         # the unit tests to use these defines.
56         'includes': [ 'precache/precache_defines.gypi', ],
57       },
58     },
59     {
60       # GN version: //components/precache/core:proto
61       'target_name': 'precache_core_proto',
62       'type': 'static_library',
63       'sources': [
64         'precache/core/proto/precache.proto',
65       ],
66       'variables': {
67         'proto_in_dir': 'precache/core/proto',
68         'proto_out_dir': 'components/precache/core/proto',
69       },
70       'includes': [ '../build/protoc.gypi', ],
71     },
72   ],
73   'conditions': [
74     ['OS=="android"', {
75       'targets': [{
76         'target_name': 'precache_java',
77         'type': 'none',
78         'dependencies': [
79           '../base/base.gyp:base',
80           '../content/content.gyp:content_java',
81         ],
82         'variables': {
83           'java_in_dir': 'precache/android/java',
84         },
85         'includes': [ '../build/java.gypi' ],
86       }, {
87         'target_name': 'precache_javatests',
88         'type': 'none',
89         'dependencies': [
90           'precache_java',
91           '../base/base.gyp:base_java_test_support',
92         ],
93         'variables': {
94           'java_in_dir': 'precache/android/javatests',
95         },
96         'includes': [ '../build/java.gypi' ],
97       }],
98     }],
99   ],