summaryrefslogtreecommitdiffstats
path: root/components/safe_browsing_db.gypi
blob: 7636168daf95a899b6b1a03f1f14ca2790ffbf80 (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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# Copyright 2015 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/safe_browsing_db:safe_browsing_db_shared
      'target_name': 'safe_browsing_db_shared',
      'type': 'static_library',
      'dependencies': [
        '../base/base.gyp:base',
        '../components/components.gyp:metrics',
        '../crypto/crypto.gyp:crypto',
        ':safebrowsing_proto',
      ],
      'sources': [
        # Note: sources list duplicated in GN build.
        'safe_browsing_db/database_manager.h',
        'safe_browsing_db/database_manager.cc',
        'safe_browsing_db/hit_report.h',
        'safe_browsing_db/hit_report.cc',
        'safe_browsing_db/prefix_set.h',
        'safe_browsing_db/prefix_set.cc',
        'safe_browsing_db/util.h',
        'safe_browsing_db/util.cc',
        'safe_browsing_db/v4_protocol_manager_util.h',
        'safe_browsing_db/v4_protocol_manager_util.cc',
        'safe_browsing_db/v4_get_hash_protocol_manager.h',
        'safe_browsing_db/v4_get_hash_protocol_manager.cc',
      ],
      'include_dirs': [
        '..',
      ],
      # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
      'msvs_disabled_warnings': [4267, ],
    },
    {
      # GN version: //components/safe_browsing_db
      'target_name': 'safe_browsing_db',
      'type': 'static_library',
      'dependencies': [
        ':safe_browsing_db_shared',
      ],
      'sources': [
      ],
      'include_dirs': [
        '..',
      ],
      # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
      'msvs_disabled_warnings': [4267, ],
    },
    {
      # GN version: //components/safe_browsing_db:safe_browsing_db_mobile
      'target_name': 'safe_browsing_db_mobile',
      'type': 'static_library',
      'dependencies': [
        ':safe_browsing_db_shared',
        ':safe_browsing_metadata_proto',
      ],
      'sources': [
        # Note: sources list duplicated in GN build.
        'safe_browsing_db/remote_database_managerh',
        'safe_browsing_db/remote_database_manager.cc',
        'safe_browsing_db/safe_browsing_api_handler.h',
        'safe_browsing_db/safe_browsing_api_handler.cc',
        'safe_browsing_db/safe_browsing_api_handler_util.h',
        'safe_browsing_db/safe_browsing_api_handler_util.cc',
      ],
      'include_dirs': [
        '..',
      ],
      # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
      'msvs_disabled_warnings': [4267, ],
    },
    {
      # GN version: //components/safe_browsing_db:proto
      # Protobuf compiler / generator for the Safe Browsing protocol buffer.
      'target_name': 'safebrowsing_proto',
      'type': 'static_library',
      'sources': [ 'safe_browsing_db/safebrowsing.proto' ],
      'variables': {
        'proto_in_dir': 'safe_browsing_db',
        'proto_out_dir': 'components/safe_browsing_db',
      },
      'includes': [ '../build/protoc.gypi' ]
    },
    {
      # Protobuf compiler / generator for the safebrowsing full hash metadata
      # protocol buffer.
      # GN version: //components/safe_browsing_db:metadata_proto
      'target_name': 'safe_browsing_metadata_proto',
      'type': 'static_library',
      'sources': [ 'safe_browsing_db/metadata.proto' ],
      'variables': {
        'proto_in_dir': 'safe_browsing_db',
        'proto_out_dir': 'components/safe_browsing_db',
      },
      'includes': [ '../build/protoc.gypi' ]
    },
    {
      # GN version: //components/safe_browsing_db:test_database_manager
      'target_name': 'test_database_manager',
      'type': 'static_library',
      'dependencies': [
        '../base/base.gyp:base',
        ':safe_browsing_db',
      ],
      'sources': [
        # Note: sources list duplicated in GN build.
        'safe_browsing_db/test_database_manager.h',
        'safe_browsing_db/test_database_manager.cc',
      ],
      'include_dirs': [
        '..',
      ],
    },
  ],
}