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',
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',
68 'proto_in_dir': 'variations/proto',
69 'proto_out_dir': 'components/variations/proto',
71 'includes': [ '../build/protoc.gypi' ],
75 'variations_jni_headers',
78 ['OS!="android" and OS!="ios"', {
80 'variations/variations_request_scheduler_mobile.cc',
86 # GN version: //components/variations/net:net
87 'target_name': 'variations_http_provider',
88 'type': 'static_library',
93 '../base/base.gyp:base',
95 '../url/url.gyp:url_lib',
96 'components.gyp:google_core_browser',
97 "components.gyp:metrics",
100 'export_dependent_settings': [
101 "components.gyp:metrics",
104 'variations/net/variations_http_header_provider.cc',
105 'variations/net/variations_http_header_provider.h',
113 # GN version: //components/variations/android:variations_java
114 'target_name': 'variations_java',
117 '../base/base.gyp:base',
120 'java_in_dir': 'variations/android/java',
122 'includes': [ '../build/java.gypi' ],
125 # GN version: //components/variations:jni
126 'target_name': 'variations_jni_headers',
129 'variations/android/java/src/org/chromium/components/variations/VariationsAssociatedData.java',
132 'jni_gen_package': 'variations',
134 'includes': [ '../build/jni_generator.gypi' ],