Content settings: remove some plugin-related code/resources when... there are no...
[chromium-blink-merge.git] / components / variations.gypi
blob349d45161ec568c53319c811d6df5bc0c313e5e5
1 # Copyright (c) 2012 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/variations
9       'target_name': 'variations',
10       'type': 'static_library',
11       'include_dirs': [
12         '..',
13       ],
14       'dependencies': [
15         # List of dependencies is intentionally very minimal. Please avoid
16         # adding extra dependencies without first checking with OWNERS.
17         '../base/base.gyp:base',
18         '../base/base.gyp:base_prefs',
19         '../crypto/crypto.gyp:crypto',
20         '../third_party/mt19937ar/mt19937ar.gyp:mt19937ar',
21         '../third_party/protobuf/protobuf.gyp:protobuf_lite',
22         'compression',
23         'crash_keys',
24       ],
25       'sources': [
26         # Note: sources list duplicated in GN build.
27         'variations/active_field_trials.cc',
28         'variations/active_field_trials.h',
29         'variations/android/component_jni_registrar.cc',
30         'variations/android/component_jni_registrar.h',
31         'variations/android/variations_associated_data_android.cc',
32         'variations/android/variations_associated_data_android.h',
33         'variations/caching_permuted_entropy_provider.cc',
34         'variations/caching_permuted_entropy_provider.h',
35         'variations/entropy_provider.cc',
36         'variations/entropy_provider.h',
37         'variations/experiment_labels.cc',
38         'variations/experiment_labels.h',
39         'variations/metrics_util.cc',
40         'variations/metrics_util.h',
41         'variations/pref_names.cc',
42         'variations/pref_names.h',
43         'variations/processed_study.cc',
44         'variations/processed_study.h',
45         'variations/proto/client_variations.proto',
46         'variations/proto/permuted_entropy_cache.proto',
47         'variations/proto/study.proto',
48         'variations/proto/variations_seed.proto',
49         'variations/study_filtering.cc',
50         'variations/study_filtering.h',
51         'variations/variations_associated_data.cc',
52         'variations/variations_associated_data.h',
53         'variations/variations_experiment_util.cc',
54         'variations/variations_experiment_util.h',
55         'variations/variations_request_scheduler.cc',
56         'variations/variations_request_scheduler.h',
57         'variations/variations_request_scheduler_mobile.cc',
58         'variations/variations_request_scheduler_mobile.h',
59         'variations/variations_seed_processor.cc',
60         'variations/variations_seed_processor.h',
61         'variations/variations_seed_simulator.cc',
62         'variations/variations_seed_simulator.h',
63         'variations/variations_seed_store.cc',
64         'variations/variations_seed_store.h',
65         'variations/variations_switches.cc',
66         'variations/variations_switches.h',
67         'variations/variations_url_constants.cc',
68         'variations/variations_url_constants.h',
69         'variations/variations_util.cc',
70         'variations/variations_util.h',
71       ],
72       'variables': {
73         'proto_in_dir': 'variations/proto',
74         'proto_out_dir': 'components/variations/proto',
75       },
76       'includes': [ '../build/protoc.gypi' ],
77       'conditions': [
78         ['OS == "android"', {
79           'dependencies': [
80             'variations_jni_headers',
81           ],
82         }],
83         ['OS!="android" and OS!="ios"', {
84           'sources!': [
85             'variations/variations_request_scheduler_mobile.cc',
86           ],
87         }],
88       ],
89     },
90     {
91       # GN version: //components/variations/service
92       'target_name': 'variations_service',
93       'type': 'static_library',
94       'include_dirs': [
95         '..',
96       ],
97       'dependencies': [
98         '../base/base.gyp:base',
99         '../base/base.gyp:base_prefs',
100         '../net/net.gyp:net',
101         '../ui/base/ui_base.gyp:ui_base',
102         'metrics',
103         'network_time',
104         'pref_registry',
105         'variations',
106         'version_info',
107         'web_resource',
108       ],
109       'sources': [
110         'variations/service/variations_service.cc',
111         'variations/service/variations_service.h',
112         'variations/service/variations_service_client.h',
113       ],
114     },
115     {
116       # GN version: //components/variations/net:net
117       'target_name': 'variations_http_provider',
118       'type': 'static_library',
119       'include_dirs': [
120         '..',
121       ],
122       'dependencies': [
123         '../base/base.gyp:base',
124         '../net/net.gyp:net',
125         '../url/url.gyp:url_lib',
126         'components.gyp:google_core_browser',
127         'components.gyp:metrics',
128         'variations',
129       ],
130       'export_dependent_settings': [
131         'components.gyp:metrics',
132       ],
133       'sources': [
134         'variations/net/variations_http_header_provider.cc',
135         'variations/net/variations_http_header_provider.h',
136       ],
137     },
138   ],
139   'conditions': [
140     ['OS=="android"', {
141       'targets': [
142         {
143           # GN version: //components/variations/android:variations_java
144           'target_name': 'variations_java',
145           'type': 'none',
146           'dependencies': [
147             '../base/base.gyp:base',
148           ],
149           'variables': {
150             'java_in_dir': 'variations/android/java',
151           },
152           'includes': [ '../build/java.gypi' ],
153         },
154         {
155           # GN version: //components/variations:jni
156           'target_name': 'variations_jni_headers',
157           'type': 'none',
158           'sources': [
159             'variations/android/java/src/org/chromium/components/variations/VariationsAssociatedData.java',
160           ],
161           'variables': {
162             'jni_gen_package': 'variations',
163           },
164           'includes': [ '../build/jni_generator.gypi' ],
165         },
166       ],
167     }],
168   ]