summaryrefslogtreecommitdiffstats
path: root/components/web_resource.gypi
blob: 59e25510995a5698f5278b4bc3004fa3024fa150 (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
# Copyright 2014 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': [
    {
      # GN version: //components/web_resource
      'target_name': 'web_resource',
      'type': 'static_library',
      'include_dirs': [
        '..',
      ],
      'dependencies': [
        '../base/base.gyp:base',
        '../ui/base/ui_base.gyp:ui_base',
        '../net/net.gyp:net',
        'pref_registry',
        'version_info',
      ],
      'sources': [
        'web_resource/eula_accepted_notifier.cc',
        'web_resource/eula_accepted_notifier.h',
        'web_resource/notification_promo.cc',
        'web_resource/notification_promo.h',
        'web_resource/notification_promo_mobile_ntp.cc',
        'web_resource/notification_promo_mobile_ntp.h',
        'web_resource/promo_resource_service.cc',
        'web_resource/promo_resource_service.h',
        'web_resource/resource_request_allowed_notifier.cc',
        'web_resource/resource_request_allowed_notifier.h',
        'web_resource/web_resource_pref_names.cc',
        'web_resource/web_resource_pref_names.h',
        'web_resource/web_resource_service.cc',
        'web_resource/web_resource_service.h',
        'web_resource/web_resource_switches.cc',
        'web_resource/web_resource_switches.h',
      ],
      'conditions': [
        ['OS!="ios" and OS!="android"', {
          'sources!': [
            'web_resource/notification_promo_mobile_ntp.cc',
            'web_resource/notification_promo_mobile_ntp.h',
          ],
        }],
      ],
    },
    {
      # GN version: //components/web_resources:test_support
      'target_name': 'web_resource_test_support',
      'type': 'static_library',
      'include_dirs': [
        '..',
      ],
      'dependencies': [
        'web_resource',
      ],
      'sources': [
        'web_resource/resource_request_allowed_notifier_test_util.cc',
        'web_resource/resource_request_allowed_notifier_test_util.h',
      ],
    },
  ],
}