Fix a typo in the MB mixin for official builds.
[chromium-blink-merge.git] / components / variations.gypi
blob562bcbb2e010284a2e58dac4d7524e5be4ea2133
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         'data_use_measurement_core',
103         'metrics',
104         'network_time',
105         'pref_registry',
106         'variations',
107         'version_info',
108         'web_resource',
109       ],
110       'sources': [
111         'variations/service/variations_service.cc',
112         'variations/service/variations_service.h',
113         'variations/service/variations_service_client.h',
114       ],
115     },
116     {
117       # GN version: //components/variations/net:net
118       'target_name': 'variations_http_provider',
119       'type': 'static_library',
120       'include_dirs': [
121         '..',
122       ],
123       'dependencies': [
124         '../base/base.gyp:base',
125         '../net/net.gyp:net',
126         '../url/url.gyp:url_lib',
127         'components.gyp:google_core_browser',
128         'components.gyp:metrics',
129         'variations',
130       ],
131       'export_dependent_settings': [
132         'components.gyp:metrics',
133       ],
134       'sources': [
135         'variations/net/variations_http_header_provider.cc',
136         'variations/net/variations_http_header_provider.h',
137       ],
138     },
139   ],
140   'conditions': [
141     ['OS=="android"', {
142       'targets': [
143         {
144           # GN version: //components/variations/android:variations_java
145           'target_name': 'variations_java',
146           'type': 'none',
147           'dependencies': [
148             '../base/base.gyp:base',
149           ],
150           'variables': {
151             'java_in_dir': 'variations/android/java',
152           },
153           'includes': [ '../build/java.gypi' ],
154         },
155         {
156           # GN version: //components/variations:jni
157           'target_name': 'variations_jni_headers',
158           'type': 'none',
159           'sources': [
160             'variations/android/java/src/org/chromium/components/variations/VariationsAssociatedData.java',
161           ],
162           'variables': {
163             'jni_gen_package': 'variations',
164           },
165           'includes': [ '../build/jni_generator.gypi' ],
166         },
167       ],
168     }],
169   ]