summaryrefslogtreecommitdiffstats
path: root/third_party/cros_dbus_cplusplus/cros_dbus_cplusplus.gyp
blob: c9c54194de7af986b842f1f41afa987281cc6d9c (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
# Copyright (c) 2012 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.

# This is used to build parts of dbus-c++ in Chromium on Linux.
# TODO(thestig) Add support for system dbus-c++ in the future if it becomes
# compatible with the CrOS fork.
{
  'targets': [
    {
      'target_name': 'dbus_cplusplus',
      'type': 'shared_library',
      'dependencies': [
        '../../build/linux/system.gyp:dbus',
        '../../build/linux/system.gyp:glib',
      ],
      'sources': [
        'source/src/connection.cpp',
        'source/src/connection_p.h',
        'source/src/debug.cpp',
        'source/src/dispatcher.cpp',
        'source/src/dispatcher_p.h',
        'source/src/error.cpp',
        'source/src/eventloop-integration.cpp',
        'source/src/eventloop.cpp',
        'source/src/glib-integration.cpp',
        'source/src/interface.cpp',
        'source/src/internalerror.h',
        'source/src/introspection.cpp',
        'source/src/message.cpp',
        'source/src/message_p.h',
        'source/src/object.cpp',
        'source/src/pendingcall.cpp',
        'source/src/pendingcall_p.h',
        'source/src/property.cpp',
        'source/src/server.cpp',
        'source/src/server_p.h',
        'source/src/types.cpp',
      ],
      'cflags!': [
        '-fno-exceptions',
      ],
      'defines': [
        'DBUS_HAS_RECURSIVE_MUTEX',
        'DBUS_HAS_THREADS_INIT_DEFAULT',
        'GCC_HASCLASSVISIBILITY',
      ],
      'direct_dependent_settings': {
        'cflags!': [
          '-fno-exceptions',
        ],
        'defines': [
          'DBUS_HAS_RECURSIVE_MUTEX',
          'DBUS_HAS_THREADS_INIT_DEFAULT',
          'GCC_HASCLASSVISIBILITY',
        ],
        'include_dirs': [
          'source/include',
        ],
      },
      'include_dirs': [
        'source/include',
      ],
    },
  ],
}