summaryrefslogtreecommitdiffstats
path: root/components/user_prefs.gypi
blob: cfeff21a5afac2673cfb6ee514d50d9c25b8bac1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'targets': [
    {
      'target_name': 'user_prefs',
      'type': '<(component)',
      'dependencies': [
        '../base/base.gyp:base',
        '../base/base.gyp:base_prefs',
      ],
      'include_dirs': [
        '..',
      ],
      'defines': [
        'USER_PREFS_IMPLEMENTATION',
      ],
      'sources': [
        'user_prefs/user_prefs.cc',
        'user_prefs/user_prefs.h',
        'user_prefs/user_prefs_export.h',
      ],
    },
    {
      'target_name': 'user_prefs_tracked',
      'type': 'static_library',
      'include_dirs': [
        '..',
      ],
      'dependencies': [
      ],
      'sources': [
        'user_prefs/tracked/device_id.h',
        'user_prefs/tracked/device_id_mac.cc',
        'user_prefs/tracked/device_id_stub.cc',
        'user_prefs/tracked/device_id_win.cc',
        'user_prefs/tracked/dictionary_hash_store_contents.cc',
        'user_prefs/tracked/dictionary_hash_store_contents.h',
        'user_prefs/tracked/hash_store_contents.h',
        'user_prefs/tracked/interceptable_pref_filter.cc',
        'user_prefs/tracked/interceptable_pref_filter.h',
        'user_prefs/tracked/pref_hash_calculator.cc',
        'user_prefs/tracked/pref_hash_calculator.h',
        'user_prefs/tracked/pref_hash_filter.cc',
        'user_prefs/tracked/pref_hash_filter.h',
        'user_prefs/tracked/pref_hash_store.h',
        'user_prefs/tracked/pref_hash_store_impl.cc',
        'user_prefs/tracked/pref_hash_store_impl.h',
        'user_prefs/tracked/pref_hash_store_transaction.h',
        'user_prefs/tracked/pref_names.cc',
        'user_prefs/tracked/pref_names.h',
        'user_prefs/tracked/pref_service_hash_store_contents.cc',
        'user_prefs/tracked/pref_service_hash_store_contents.h',
        'user_prefs/tracked/segregated_pref_store.cc',
        'user_prefs/tracked/segregated_pref_store.h',
        'user_prefs/tracked/tracked_atomic_preference.cc',
        'user_prefs/tracked/tracked_atomic_preference.h',
        'user_prefs/tracked/tracked_preference.h',
        'user_prefs/tracked/tracked_preference_helper.cc',
        'user_prefs/tracked/tracked_preference_helper.h',
        'user_prefs/tracked/tracked_preference_validation_delegate.h',
        'user_prefs/tracked/tracked_preferences_migration.cc',
        'user_prefs/tracked/tracked_preferences_migration.h',
        'user_prefs/tracked/tracked_split_preference.cc',
        'user_prefs/tracked/tracked_split_preference.h',
      ],
      'conditions': [
        ['OS=="win" or (OS=="mac" and OS!="ios")', {
          'sources!': [
            'user_prefs/tracked/device_id_stub.cc',
          ],
        }],
        ['OS=="ios"', {
          'sources!': [
            'user_prefs/tracked/device_id_mac.cc',
          ],
        }],
      ],

      # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
      'msvs_disabled_warnings': [4267, ],
    },
    {
      'target_name': 'user_prefs_tracked_test_support',
      'type': 'static_library',
      'include_dirs': [
        '..',
      ],
      'dependencies': [
      ],
      'sources': [
        'user_prefs/tracked/mock_validation_delegate.cc',
        'user_prefs/tracked/mock_validation_delegate.h',
      ],
    },
  ],
}