base: Use scoped_ptr for ownership of pointers in unittests.
[chromium-blink-merge.git] / components / rappor.gypi
blob88c77f0c5e06937390cc07222bef1f39137c8bce
1 # Copyright 2014 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.
6   'targets': [
7     {
8       # GN version: //components/rappor
9       'target_name': 'rappor',
10       'type': 'static_library',
11       'include_dirs': [
12         '..',
13       ],
14       'dependencies': [
15         '../base/base.gyp:base',
16         '../crypto/crypto.gyp:crypto',
17         '../net/net.gyp:net',
18         '../third_party/smhasher/smhasher.gyp:cityhash',
19         'metrics',
20         'variations',
21       ],
22       'sources': [
23         # Note: sources list duplicated in GN build.
24         'rappor/bloom_filter.cc',
25         'rappor/bloom_filter.h',
26         'rappor/byte_vector_utils.cc',
27         'rappor/byte_vector_utils.h',
28         'rappor/log_uploader.cc',
29         'rappor/log_uploader.h',
30         'rappor/log_uploader_interface.h',
31         'rappor/proto/rappor_metric.proto',
32         'rappor/rappor_metric.cc',
33         'rappor/rappor_metric.h',
34         'rappor/rappor_parameters.cc',
35         'rappor/rappor_parameters.h',
36         'rappor/rappor_pref_names.cc',
37         'rappor/rappor_pref_names.h',
38         'rappor/rappor_prefs.cc',
39         'rappor/rappor_prefs.h',
40         'rappor/rappor_service.cc',
41         'rappor/rappor_service.h',
42         'rappor/rappor_utils.cc',
43         'rappor/rappor_utils.h',
44         'rappor/reports.cc',
45         'rappor/reports.h',
46         'rappor/sample.cc',
47         'rappor/sample.h',
48         'rappor/sampler.cc',
49         'rappor/sampler.h',
50       ],
51       'variables': {
52         'proto_in_dir': 'rappor/proto',
53         'proto_out_dir': 'components/rappor/proto',
54       },
55       'includes': [ '../build/protoc.gypi' ],
56     },
57     {
58       # GN version: //components/rappor:test_support
59       'target_name': 'rappor_test_support',
60       'type': 'static_library',
61       'include_dirs': [
62         '..',
63       ],
64       'dependencies': [
65         'rappor',
66       ],
67       'sources': [
68         'rappor/test_log_uploader.cc',
69         'rappor/test_log_uploader.h',
70         'rappor/test_rappor_service.cc',
71         'rappor/test_rappor_service.h',
72       ],
73     },
74   ],