[email protected] | 50ae9f1 | 2013-08-29 18:03:22 | [diff] [blame] | 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. |
| 4 | |
| 5 | { |
| 6 | 'targets': [ |
| 7 | { |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 8 | # GN version: //components/variations |
[email protected] | 50ae9f1 | 2013-08-29 18:03:22 | [diff] [blame] | 9 | 'target_name': 'variations', |
| 10 | 'type': 'static_library', |
| 11 | 'include_dirs': [ |
| 12 | '..', |
| 13 | ], |
| 14 | 'dependencies': [ |
[email protected] | f561a7c | 2014-08-22 01:18:03 | [diff] [blame] | 15 | # List of dependencies is intentionally very minimal. Please avoid |
| 16 | # adding extra dependencies without first checking with OWNERS. |
[email protected] | 50ae9f1 | 2013-08-29 18:03:22 | [diff] [blame] | 17 | '../base/base.gyp:base', |
brettw | 81d760e | 2014-11-25 20:30:10 | [diff] [blame] | 18 | '../base/base.gyp:base_prefs', |
[email protected] | 50ae9f1 | 2013-08-29 18:03:22 | [diff] [blame] | 19 | '../third_party/mt19937ar/mt19937ar.gyp:mt19937ar', |
[email protected] | 50ae9f1 | 2013-08-29 18:03:22 | [diff] [blame] | 20 | ], |
| 21 | 'sources': [ |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 22 | # Note: sources list duplicated in GN build. |
[email protected] | b3610d4 | 2014-05-19 18:07:23 | [diff] [blame] | 23 | 'variations/active_field_trials.cc', |
| 24 | 'variations/active_field_trials.h', |
[email protected] | b5cbe7f | 2014-07-03 13:12:17 | [diff] [blame] | 25 | 'variations/android/component_jni_registrar.cc', |
| 26 | 'variations/android/component_jni_registrar.h', |
| 27 | 'variations/android/variations_associated_data_android.cc', |
| 28 | 'variations/android/variations_associated_data_android.h', |
[email protected] | 88a7831f | 2014-05-19 15:19:13 | [diff] [blame] | 29 | 'variations/caching_permuted_entropy_provider.cc', |
| 30 | 'variations/caching_permuted_entropy_provider.h', |
[email protected] | 50ae9f1 | 2013-08-29 18:03:22 | [diff] [blame] | 31 | 'variations/entropy_provider.cc', |
| 32 | 'variations/entropy_provider.h', |
[email protected] | 7f72399 | 2014-04-14 19:53:43 | [diff] [blame] | 33 | 'variations/metrics_util.cc', |
| 34 | 'variations/metrics_util.h', |
[email protected] | 88a7831f | 2014-05-19 15:19:13 | [diff] [blame] | 35 | 'variations/pref_names.cc', |
| 36 | 'variations/pref_names.h', |
[email protected] | d4f8485 | 2013-11-08 01:05:35 | [diff] [blame] | 37 | 'variations/processed_study.cc', |
| 38 | 'variations/processed_study.h', |
[email protected] | ea15bd5 | 2014-07-14 22:42:50 | [diff] [blame] | 39 | 'variations/proto/client_variations.proto', |
[email protected] | 88a7831f | 2014-05-19 15:19:13 | [diff] [blame] | 40 | 'variations/proto/permuted_entropy_cache.proto', |
[email protected] | 10db3125 | 2013-09-05 18:10:12 | [diff] [blame] | 41 | 'variations/proto/study.proto', |
[email protected] | 88a7831f | 2014-05-19 15:19:13 | [diff] [blame] | 42 | 'variations/proto/variations_seed.proto', |
[email protected] | 7f72399 | 2014-04-14 19:53:43 | [diff] [blame] | 43 | 'variations/study_filtering.cc', |
| 44 | 'variations/study_filtering.h', |
[email protected] | 50ae9f1 | 2013-08-29 18:03:22 | [diff] [blame] | 45 | 'variations/variations_associated_data.cc', |
| 46 | 'variations/variations_associated_data.h', |
| 47 | 'variations/variations_seed_processor.cc', |
| 48 | 'variations/variations_seed_processor.h', |
[email protected] | 92e09a18 | 2014-01-08 18:21:00 | [diff] [blame] | 49 | 'variations/variations_seed_simulator.cc', |
| 50 | 'variations/variations_seed_simulator.h', |
[email protected] | 50ae9f1 | 2013-08-29 18:03:22 | [diff] [blame] | 51 | ], |
[email protected] | 50ae9f1 | 2013-08-29 18:03:22 | [diff] [blame] | 52 | 'variables': { |
| 53 | 'proto_in_dir': 'variations/proto', |
| 54 | 'proto_out_dir': 'components/variations/proto', |
| 55 | }, |
[email protected] | b5cbe7f | 2014-07-03 13:12:17 | [diff] [blame] | 56 | 'includes': [ '../build/protoc.gypi' ], |
| 57 | 'conditions': [ |
| 58 | ['OS == "android"', { |
| 59 | 'dependencies': [ |
| 60 | 'variations_jni_headers', |
| 61 | ], |
| 62 | }], |
| 63 | ], |
[email protected] | 50ae9f1 | 2013-08-29 18:03:22 | [diff] [blame] | 64 | }, |
[email protected] | f561a7c | 2014-08-22 01:18:03 | [diff] [blame] | 65 | { |
brettw | 81d760e | 2014-11-25 20:30:10 | [diff] [blame] | 66 | # GN version: //components/variations/net:net |
[email protected] | f561a7c | 2014-08-22 01:18:03 | [diff] [blame] | 67 | 'target_name': 'variations_http_provider', |
| 68 | 'type': 'static_library', |
| 69 | 'include_dirs': [ |
| 70 | '..', |
| 71 | ], |
| 72 | 'dependencies': [ |
| 73 | '../base/base.gyp:base', |
brettw | 81d760e | 2014-11-25 20:30:10 | [diff] [blame] | 74 | '../net/net.gyp:net', |
| 75 | '../url/url.gyp:url_lib', |
[email protected] | f561a7c | 2014-08-22 01:18:03 | [diff] [blame] | 76 | 'components.gyp:google_core_browser', |
asvitkine | e0dbdbe | 2014-10-31 21:59:57 | [diff] [blame] | 77 | "components.gyp:metrics", |
[email protected] | f561a7c | 2014-08-22 01:18:03 | [diff] [blame] | 78 | 'variations', |
| 79 | ], |
garykac | 0cde643 | 2014-11-07 00:50:51 | [diff] [blame] | 80 | 'export_dependent_settings': [ |
| 81 | "components.gyp:metrics", |
| 82 | ], |
[email protected] | f561a7c | 2014-08-22 01:18:03 | [diff] [blame] | 83 | 'sources': [ |
isherman | 3be67db | 2014-10-24 05:57:44 | [diff] [blame] | 84 | 'variations/net/variations_http_header_provider.cc', |
| 85 | 'variations/net/variations_http_header_provider.h', |
[email protected] | f561a7c | 2014-08-22 01:18:03 | [diff] [blame] | 86 | ], |
| 87 | }, |
[email protected] | 50ae9f1 | 2013-08-29 18:03:22 | [diff] [blame] | 88 | ], |
[email protected] | b5cbe7f | 2014-07-03 13:12:17 | [diff] [blame] | 89 | 'conditions': [ |
| 90 | ['OS=="android"', { |
| 91 | 'targets': [ |
| 92 | { |
cjhopman | 11a68cb | 2014-10-13 22:47:54 | [diff] [blame] | 93 | # GN version: //components/variations/android:variations_java |
[email protected] | b5cbe7f | 2014-07-03 13:12:17 | [diff] [blame] | 94 | 'target_name': 'variations_java', |
| 95 | 'type': 'none', |
| 96 | 'dependencies': [ |
| 97 | '../base/base.gyp:base', |
| 98 | ], |
| 99 | 'variables': { |
| 100 | 'java_in_dir': 'variations/android/java', |
| 101 | }, |
| 102 | 'includes': [ '../build/java.gypi' ], |
| 103 | }, |
| 104 | { |
cjhopman | 11a68cb | 2014-10-13 22:47:54 | [diff] [blame] | 105 | # GN version: //components/variations:jni |
[email protected] | b5cbe7f | 2014-07-03 13:12:17 | [diff] [blame] | 106 | 'target_name': 'variations_jni_headers', |
| 107 | 'type': 'none', |
| 108 | 'sources': [ |
| 109 | 'variations/android/java/src/org/chromium/components/variations/VariationsAssociatedData.java', |
| 110 | ], |
| 111 | 'variables': { |
| 112 | 'jni_gen_package': 'variations', |
| 113 | }, |
| 114 | 'includes': [ '../build/jni_generator.gypi' ], |
| 115 | }, |
| 116 | ], |
| 117 | }], |
| 118 | ] |
[email protected] | 50ae9f1 | 2013-08-29 18:03:22 | [diff] [blame] | 119 | } |