Home | History | Annotate | Download | only in components
      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     {
      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         '../third_party/mt19937ar/mt19937ar.gyp:mt19937ar',
     19       ],
     20       'sources': [
     21         # Note: sources list duplicated in GN build.
     22         'variations/active_field_trials.cc',
     23         'variations/active_field_trials.h',
     24         'variations/android/component_jni_registrar.cc',
     25         'variations/android/component_jni_registrar.h',
     26         'variations/android/variations_associated_data_android.cc',
     27         'variations/android/variations_associated_data_android.h',
     28         'variations/caching_permuted_entropy_provider.cc',
     29         'variations/caching_permuted_entropy_provider.h',
     30         'variations/entropy_provider.cc',
     31         'variations/entropy_provider.h',
     32         'variations/metrics_util.cc',
     33         'variations/metrics_util.h',
     34         'variations/pref_names.cc',
     35         'variations/pref_names.h',
     36         'variations/processed_study.cc',
     37         'variations/processed_study.h',
     38         'variations/proto/client_variations.proto',
     39         'variations/proto/permuted_entropy_cache.proto',
     40         'variations/proto/study.proto',
     41         'variations/proto/variations_seed.proto',
     42         'variations/study_filtering.cc',
     43         'variations/study_filtering.h',
     44         'variations/variations_associated_data.cc',
     45         'variations/variations_associated_data.h',
     46         'variations/variations_seed_processor.cc',
     47         'variations/variations_seed_processor.h',
     48         'variations/variations_seed_simulator.cc',
     49         'variations/variations_seed_simulator.h',
     50       ],
     51       'variables': {
     52         'proto_in_dir': 'variations/proto',
     53         'proto_out_dir': 'components/variations/proto',
     54       },
     55       'includes': [ '../build/protoc.gypi' ],
     56       'conditions': [
     57         ['OS == "android"', {
     58           'dependencies': [
     59             'variations_jni_headers',
     60           ],
     61         }],
     62       ],
     63     },
     64     {
     65       # GN version: //components/variations_http_provider
     66       'target_name': 'variations_http_provider',
     67       'type': 'static_library',
     68       'include_dirs': [
     69         '..',
     70       ],
     71       'dependencies': [
     72         '../base/base.gyp:base',
     73         'components.gyp:google_core_browser',
     74         'variations',
     75       ],
     76       'sources': [
     77         'variations/variations_http_header_provider.cc',
     78         'variations/variations_http_header_provider.h',
     79       ],
     80     },
     81   ],
     82   'conditions': [
     83     ['OS=="android"', {
     84       'targets': [
     85         {
     86           'target_name': 'variations_java',
     87           'type': 'none',
     88           'dependencies': [
     89             '../base/base.gyp:base',
     90           ],
     91           'variables': {
     92             'java_in_dir': 'variations/android/java',
     93           },
     94           'includes': [ '../build/java.gypi' ],
     95         },
     96         {
     97           # GN version: //components/variations:variations_java
     98           'target_name': 'variations_jni_headers',
     99           'type': 'none',
    100           'sources': [
    101             'variations/android/java/src/org/chromium/components/variations/VariationsAssociatedData.java',
    102           ],
    103           'variables': {
    104             'jni_gen_package': 'variations',
    105           },
    106           'includes': [ '../build/jni_generator.gypi' ],
    107         },
    108       ],
    109     }],
    110   ]
    111 }
    112