summaryrefslogtreecommitdiffstats
path: root/o3d/statsreport/statsreport.gyp
blob: 7e106b49c9306160944fb4887bc2205cf87cab1c (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
120
121
122
123
124
125
126
127
128
129
130
# Copyright (c) 2009 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.

{
  'variables': {
    'chromium_code': 1,
  },
  'includes': [
    '../build/common.gypi',
  ],
  'target_defaults': {
    'include_dirs': [
      '..',
      '../..',
      '../../<(gtestdir)',
    ],
  },
  'targets': [],
  'conditions': [
    ['OS!="linux"',
      {
        'targets': [
          {
            'target_name': 'o3dStatsReport',
            'type': 'static_library',
            'sources': [
              'aggregator-mac.h',
              'aggregator-mac.mm',
              'aggregator-win32.cc',
              'aggregator-win32.h',
              'aggregator.cc',
              'aggregator.h',
              'common/const_product.h',
              'common/highres_timer-linux.cc',
              'common/highres_timer-linux.h',
              'common/highres_timer-mac.cc',
              'common/highres_timer-mac.h',
              'common/highres_timer-win32.cc',
              'common/highres_timer-win32.h',
              'common/highres_timer.h',
              'const-mac.h',
              'const-mac.mm',
              'const-win32.cc',
              'const-win32.h',
              'const_server.h',
              'formatter.cc',
              'formatter.h',
              'lock.h',
              'metrics.cc',
              'metrics.h',
              'persistent_iterator-win32.cc',
              'persistent_iterator-win32.h',
              'uploader-mac.mm',
              'uploader-win32.cc',
              'uploader.h',
              'uploader_aggregation-mac.mm',
              'uploader_aggregation-win32.cc',
              'util-win32.h',
            ],
            'conditions': [
              ['OS != "win"',
                {
                  'sources/': [
                    ['exclude', '(-win32)\.(cc|h)$'],
                  ],
                },
              ],
              ['OS != "linux"',
                {
                  'sources/': [
                    ['exclude', '(-linux)\.(cc|h)$'],
                  ],
                },
              ],
              ['OS != "mac"',
                {
                  'sources/': [
                    ['exclude', '(-mac)\.(cc|mm|h)$'],
                  ],
                },
              ],
            ],
          },
          {
            'target_name': 'o3dStatsReportTest',
            'type': 'none',
            'dependencies': [
              'o3dStatsReport',
            ],
            'direct_dependent_settings': {
              'sources': [
                'aggregator-win32_unittest.cc',
                'aggregator-win32_unittest.h',
                'aggregator_unittest.cc',
                'aggregator_unittest.h',
                'common/highres_timer_unittest.cc',
                'formatter_unittest.cc',
                'metrics_unittest.cc',
                'persistent_iterator-win32_unittest.cc',
              ],
              'conditions': [
                ['OS != "win"',
                  {
                    'sources/': [
                      ['exclude', '(-win32)_unittest\.(cc|h)$'],
                    ],
                  },
                ],
                ['OS != "mac"',
                  {
                    'sources/': [
                      ['exclude', '(-mac)_unittest\.(cc|mm|h)$'],
                    ],
                  },
                ],
              ],
            },
          },
        ],
      },
    ],
  ],
}

# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2: