summaryrefslogtreecommitdiffstats
path: root/mojo/mojo_platform_handle.gyp
blob: 46ce6c79ae3cc4ab6eb29e23055c86c007f5869f (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
# Copyright 2016 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,
  },
  'targets': [
    {
      # GN version: //mojo/platform_handle:platform_handle/platform_handle_impl
      'target_name': 'platform_handle',
      'type': '<(component)',
      'include_dirs': [
        '../..',
      ],
      'defines': [
        'PLATFORM_HANDLE_IMPLEMENTATION'
      ],
      'sources': [
        'platform_handle/platform_handle.h',
        'platform_handle/platform_handle_functions.h',
        'platform_handle/platform_handle_functions.cc',
      ],
      'dependencies': [
        'mojo_edk.gyp:mojo_system_impl',
        'mojo_public.gyp:mojo_cpp_bindings',
      ]
    }
  ]
}