Revert of Componentize TemplateURLService (https://codereview.chromium.org/367023002/)
[chromium-blink-merge.git] / components / variations.gypi
blob2ae6ffca8a6521eea21473505394672bb6f1dbaf
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         '../base/base.gyp:base',
16         '../third_party/mt19937ar/mt19937ar.gyp:mt19937ar',
17       ],
18       'sources': [
19         'variations/active_field_trials.cc',
20         'variations/active_field_trials.h',
21         'variations/android/component_jni_registrar.cc',
22         'variations/android/component_jni_registrar.h',
23         'variations/android/variations_associated_data_android.cc',
24         'variations/android/variations_associated_data_android.h',
25         'variations/caching_permuted_entropy_provider.cc',
26         'variations/caching_permuted_entropy_provider.h',
27         'variations/entropy_provider.cc',
28         'variations/entropy_provider.h',
29         'variations/metrics_util.cc',
30         'variations/metrics_util.h',
31         'variations/pref_names.cc',
32         'variations/pref_names.h',
33         'variations/processed_study.cc',
34         'variations/processed_study.h',
35         'variations/proto/permuted_entropy_cache.proto',
36         'variations/proto/study.proto',
37         'variations/proto/variations_seed.proto',
38         'variations/study_filtering.cc',
39         'variations/study_filtering.h',
40         'variations/variations_associated_data.cc',
41         'variations/variations_associated_data.h',
42         'variations/variations_seed_processor.cc',
43         'variations/variations_seed_processor.h',
44         'variations/variations_seed_simulator.cc',
45         'variations/variations_seed_simulator.h',
46       ],
47       'variables': {
48         'proto_in_dir': 'variations/proto',
49         'proto_out_dir': 'components/variations/proto',
50       },
51       'includes': [ '../build/protoc.gypi' ],
52       'conditions': [
53         ['OS == "android"', {
54           'dependencies': [
55             'variations_jni_headers',
56           ],
57         }],
58       ],
59     },
60   ],
61   'conditions': [
62     ['OS=="android"', {
63       'targets': [
64         {
65           'target_name': 'variations_java',
66           'type': 'none',
67           'dependencies': [
68             '../base/base.gyp:base',
69           ],
70           'variables': {
71             'java_in_dir': 'variations/android/java',
72           },
73           'includes': [ '../build/java.gypi' ],
74         },
75         {
76           'target_name': 'variations_jni_headers',
77           'type': 'none',
78           'sources': [
79             'variations/android/java/src/org/chromium/components/variations/VariationsAssociatedData.java',
80           ],
81           'variables': {
82             'jni_gen_package': 'variations',
83           },
84           'includes': [ '../build/jni_generator.gypi' ],
85         },
86       ],
87     }],
88   ]