summaryrefslogtreecommitdiffstats
path: root/components/scheduler/scheduler.gyp
blob: aa9a15a171c34412c7a85eaadc87407276732aa3 (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
# 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.

{
  'variables': {
    # This turns on e.g. the filename-based detection of which
    # platforms to include source files on (e.g. files ending in
    # _mac.h or _mac.cc are only compiled on MacOSX).
    'chromium_code': 1,
  },
  'includes': [
    'scheduler.gypi',
  ],
  'targets': [
    {
      # GN version: //components/scheduler:scheduler
      'target_name': 'scheduler',
      'type': '<(component)',
      'dependencies': [
        '../../base/base.gyp:base',
        '../../cc/cc.gyp:cc',
        '../../third_party/WebKit/public/blink.gyp:blink',
        '../../ui/gfx/gfx.gyp:gfx',
      ],
      'include_dirs': [
        '../..',
      ],
      'defines': [
        'SCHEDULER_IMPLEMENTATION',
      ],
      # Disable c4267 warnings until we fix size_t to int truncations.
      'msvs_disabled_warnings': [ 4267, ],
      'sources': [
        '<@(scheduler_sources)',
      ],
      'export_dependent_settings': [
        '../../third_party/WebKit/public/blink.gyp:blink',
      ],
    },
    {
      # GN version: //components/scheduler:test_support
      'target_name': 'scheduler_test_support',
      'type': 'static_library',
      'include_dirs': [
        '../..',
      ],
      'sources': [
        '<@(scheduler_test_support_sources)',
      ],
    },
  ],
}