Revert "Fix broken channel icon in chrome://help on CrOS" and try again
[chromium-blink-merge.git] / components / variations.gypi
blobdfa3f0c5ddff6592f8881ca897663f8f99ae6983
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_url_constants.cc',
66         'variations/variations_url_constants.h',
67         'variations/variations_util.cc',
68         'variations/variations_util.h',
69       ],
70       'variables': {
71         'proto_in_dir': 'variations/proto',
72         'proto_out_dir': 'components/variations/proto',
73       },
74       'includes': [ '../build/protoc.gypi' ],
75       'conditions': [
76         ['OS == "android"', {
77           'dependencies': [
78             'variations_jni_headers',
79           ],
80         }],
81         ['OS!="android" and OS!="ios"', {
82           'sources!': [
83             'variations/variations_request_scheduler_mobile.cc',
84           ],
85         }],
86       ],
87     },
88     {
89       # GN version: //components/variations/service
90       'target_name': 'variations_service',
92       # TODO(blundell): Change to static_library once it has code in it.
93       'type': 'none',
94       'include_dirs': [
95         '..',
96       ],
97       'dependencies': [
98         '../base/base.gyp:base',
99       ],
100       'sources': [
101         'variations/service/variations_service_client.h',
102       ],
103     },
104     {
105       # GN version: //components/variations/net:net
106       'target_name': 'variations_http_provider',
107       'type': 'static_library',
108       'include_dirs': [
109         '..',
110       ],
111       'dependencies': [
112         '../base/base.gyp:base',
113         '../net/net.gyp:net',
114         '../url/url.gyp:url_lib',
115         'components.gyp:google_core_browser',
116         'components.gyp:metrics',
117         'variations',
118       ],
119       'export_dependent_settings': [
120         'components.gyp:metrics',
121       ],
122       'sources': [
123         'variations/net/variations_http_header_provider.cc',
124         'variations/net/variations_http_header_provider.h',
125       ],
126     },
127   ],
128   'conditions': [
129     ['OS=="android"', {
130       'targets': [
131         {
132           # GN version: //components/variations/android:variations_java
133           'target_name': 'variations_java',
134           'type': 'none',
135           'dependencies': [
136             '../base/base.gyp:base',
137           ],
138           'variables': {
139             'java_in_dir': 'variations/android/java',
140           },
141           'includes': [ '../build/java.gypi' ],
142         },
143         {
144           # GN version: //components/variations:jni
145           'target_name': 'variations_jni_headers',
146           'type': 'none',
147           'sources': [
148             'variations/android/java/src/org/chromium/components/variations/VariationsAssociatedData.java',
149           ],
150           'variables': {
151             'jni_gen_package': 'variations',
152           },
153           'includes': [ '../build/jni_generator.gypi' ],
154         },
155       ],
156     }],
157   ]