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.
8 # GN version: //components/variations
9 'target_name': 'variations',
10 'type': 'static_library',
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',
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',
73 'proto_in_dir': 'variations/proto',
74 'proto_out_dir': 'components/variations/proto',
76 'includes': [ '../build/protoc.gypi' ],
80 'variations_jni_headers',
83 ['OS!="android" and OS!="ios"', {
85 'variations/variations_request_scheduler_mobile.cc',
91 # GN version: //components/variations/service
92 'target_name': 'variations_service',
93 'type': 'static_library',
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',
111 'variations/service/variations_service.cc',
112 'variations/service/variations_service.h',
113 'variations/service/variations_service_client.h',
117 # GN version: //components/variations/net:net
118 'target_name': 'variations_http_provider',
119 'type': 'static_library',
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',
131 'export_dependent_settings': [
132 'components.gyp:metrics',
135 'variations/net/variations_http_header_provider.cc',
136 'variations/net/variations_http_header_provider.h',
144 # GN version: //components/variations/android:variations_java
145 'target_name': 'variations_java',
148 '../base/base.gyp:base',
151 'java_in_dir': 'variations/android/java',
153 'includes': [ '../build/java.gypi' ],
156 # GN version: //components/variations:jni
157 'target_name': 'variations_jni_headers',
160 'variations/android/java/src/org/chromium/components/variations/VariationsAssociatedData.java',
163 'jni_gen_package': 'variations',
165 'includes': [ '../build/jni_generator.gypi' ],