Home | History | Annotate | Download | only in dbus
      1 # Copyright (c) 2012 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.
      4 
      5 {
      6   'variables': {
      7     'chromium_code': 1,
      8   },
      9   'targets': [
     10     {
     11       'target_name': 'dbus',
     12       'type': '<(component)',
     13       'dependencies': [
     14         '../base/base.gyp:base',
     15         '../build/linux/system.gyp:dbus',
     16         '../third_party/protobuf/protobuf.gyp:protobuf_lite',
     17       ],
     18       'export_dependent_settings': [
     19         '../base/base.gyp:base',
     20       ],
     21       'defines': [
     22         'DBUS_IMPLEMENTATION',
     23       ],
     24       'sources': [
     25         'bus.cc',
     26         'bus.h',
     27         'dbus_export.h',
     28         'dbus_statistics.cc',
     29         'dbus_statistics.h',
     30         'exported_object.cc',
     31         'exported_object.h',
     32         'file_descriptor.cc',
     33         'file_descriptor.h',
     34         'message.cc',
     35         'message.h',
     36         'object_manager.cc',
     37         'object_manager.h',
     38         'object_path.cc',
     39         'object_path.h',
     40         'object_proxy.cc',
     41         'object_proxy.h',
     42         'property.cc',
     43         'property.h',
     44         'scoped_dbus_error.h',
     45         'string_util.cc',
     46         'string_util.h',
     47         'values_util.cc',
     48         'values_util.h',
     49       ],
     50     },
     51     {
     52       # Protobuf compiler / generator test protocol buffer
     53       'target_name': 'dbus_test_proto',
     54       'type': 'static_library',
     55       'sources': [ 'test_proto.proto' ],
     56       'variables': {
     57         'proto_out_dir': 'dbus',
     58       },
     59       'includes': [ '../build/protoc.gypi' ],
     60     },
     61     {
     62       # This target contains mocks that can be used to write unit tests
     63       # without issuing actual D-Bus calls.
     64       'target_name': 'dbus_test_support',
     65       'type': 'static_library',
     66       'dependencies': [
     67         '../build/linux/system.gyp:dbus',
     68         '../testing/gmock.gyp:gmock',
     69         'dbus',
     70       ],
     71       'sources': [
     72         'mock_bus.cc',
     73         'mock_bus.h',
     74         'mock_exported_object.cc',
     75         'mock_exported_object.h',
     76         'mock_object_manager.cc',
     77         'mock_object_manager.h',
     78         'mock_object_proxy.cc',
     79         'mock_object_proxy.h',
     80       ],
     81       'include_dirs': [
     82         '..',
     83       ],
     84     },
     85     {
     86       'target_name': 'dbus_unittests',
     87       'type': 'executable',
     88       'dependencies': [
     89         '../base/base.gyp:test_support_base',
     90         '../build/linux/system.gyp:dbus',
     91         '../testing/gmock.gyp:gmock',
     92         '../testing/gtest.gyp:gtest',
     93         'dbus',
     94         'dbus_test_proto',
     95         'dbus_test_support',
     96       ],
     97       'sources': [
     98         'bus_unittest.cc',
     99         'dbus_statistics_unittest.cc',
    100         'end_to_end_async_unittest.cc',
    101         'end_to_end_sync_unittest.cc',
    102         'message_unittest.cc',
    103         'mock_unittest.cc',
    104         'object_manager_unittest.cc',
    105         'object_proxy_unittest.cc',
    106         'property_unittest.cc',
    107         'run_all_unittests.cc',
    108         'signal_sender_verification_unittest.cc',
    109         'string_util_unittest.cc',
    110         'test_service.cc',
    111         'test_service.h',
    112         'values_util_unittest.cc',
    113       ],
    114       'include_dirs': [
    115         '..',
    116       ],
    117     },
    118     {
    119       'target_name': 'dbus_test_server',
    120       'type': 'executable',
    121       'dependencies': [
    122         '../base/base.gyp:test_support_base',
    123         '../base/base.gyp:base',
    124         '../build/linux/system.gyp:dbus',
    125         'dbus',
    126       ],
    127       'sources': [
    128         'test_server.cc',
    129         'test_service.cc',
    130         'test_service.h',
    131       ],
    132       'include_dirs': [
    133         '..',
    134       ],
    135     },
    136   ],
    137 }
    138