Add google_apis_unittests, midi_unittests to GN swarming.
[chromium-blink-merge.git] / components / variations.gypi
blobdb2bfb0712ad655a545e05c3380eeceb2a2ff5a8
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       ],
23       'sources': [
24         # Note: sources list duplicated in GN build.
25         'variations/active_field_trials.cc',
26         'variations/active_field_trials.h',
27         'variations/android/component_jni_registrar.cc',
28         'variations/android/component_jni_registrar.h',
29         'variations/android/variations_associated_data_android.cc',
30         'variations/android/variations_associated_data_android.h',
31         'variations/caching_permuted_entropy_provider.cc',
32         'variations/caching_permuted_entropy_provider.h',
33         'variations/entropy_provider.cc',
34         'variations/entropy_provider.h',
35         'variations/experiment_labels.cc',
36         'variations/experiment_labels.h',
37         'variations/metrics_util.cc',
38         'variations/metrics_util.h',
39         'variations/pref_names.cc',
40         'variations/pref_names.h',
41         'variations/processed_study.cc',
42         'variations/processed_study.h',
43         'variations/proto/client_variations.proto',
44         'variations/proto/permuted_entropy_cache.proto',
45         'variations/proto/study.proto',
46         'variations/proto/variations_seed.proto',
47         'variations/study_filtering.cc',
48         'variations/study_filtering.h',
49         'variations/variations_associated_data.cc',
50         'variations/variations_associated_data.h',
51         'variations/variations_experiment_util.cc',
52         'variations/variations_experiment_util.h',
53         'variations/variations_request_scheduler.cc',
54         'variations/variations_request_scheduler.h',
55         'variations/variations_request_scheduler_mobile.cc',
56         'variations/variations_request_scheduler_mobile.h',
57         'variations/variations_seed_processor.cc',
58         'variations/variations_seed_processor.h',
59         'variations/variations_seed_simulator.cc',
60         'variations/variations_seed_simulator.h',
61         'variations/variations_seed_store.cc',
62         'variations/variations_seed_store.h',
63         'variations/variations_service_client.h',
64         'variations/variations_url_constants.cc',
65         'variations/variations_url_constants.h',
66       ],
67       'variables': {
68         'proto_in_dir': 'variations/proto',
69         'proto_out_dir': 'components/variations/proto',
70       },
71       'includes': [ '../build/protoc.gypi' ],
72       'conditions': [
73         ['OS == "android"', {
74           'dependencies': [
75             'variations_jni_headers',
76           ],
77         }],
78         ['OS!="android" and OS!="ios"', {
79           'sources!': [
80             'variations/variations_request_scheduler_mobile.cc',
81           ],
82         }],
83       ],
84     },
85     {
86       # GN version: //components/variations/net:net
87       'target_name': 'variations_http_provider',
88       'type': 'static_library',
89       'include_dirs': [
90         '..',
91       ],
92       'dependencies': [
93         '../base/base.gyp:base',
94         '../net/net.gyp:net',
95         '../url/url.gyp:url_lib',
96         'components.gyp:google_core_browser',
97         "components.gyp:metrics",
98         'variations',
99       ],
100       'export_dependent_settings': [
101         "components.gyp:metrics",
102       ],
103       'sources': [
104         'variations/net/variations_http_header_provider.cc',
105         'variations/net/variations_http_header_provider.h',
106       ],
107     },
108   ],
109   'conditions': [
110     ['OS=="android"', {
111       'targets': [
112         {
113           # GN version: //components/variations/android:variations_java
114           'target_name': 'variations_java',
115           'type': 'none',
116           'dependencies': [
117             '../base/base.gyp:base',
118           ],
119           'variables': {
120             'java_in_dir': 'variations/android/java',
121           },
122           'includes': [ '../build/java.gypi' ],
123         },
124         {
125           # GN version: //components/variations:jni
126           'target_name': 'variations_jni_headers',
127           'type': 'none',
128           'sources': [
129             'variations/android/java/src/org/chromium/components/variations/VariationsAssociatedData.java',
130           ],
131           'variables': {
132             'jni_gen_package': 'variations',
133           },
134           'includes': [ '../build/jni_generator.gypi' ],
135         },
136       ],
137     }],
138   ]