Home | History | Annotate | Download | only in chromeos-dbus-bindings
      1 {
      2   'target_defaults': {
      3     'variables': {
      4       'deps': [
      5         'libbrillo-<(libbase_ver)',
      6         'libchrome-<(libbase_ver)',
      7       ],
      8     },
      9     'cflags': [
     10       '-Wextra',
     11       '-Wno-unused-parameter',  # for scoped_ptr.h, included indirectly
     12     ],
     13     'cflags_cc': [
     14       '-fno-strict-aliasing',
     15       '-Woverloaded-virtual',
     16     ],
     17     'include_dirs': ['..'],
     18   },
     19   'targets': [
     20     {
     21       'target_name': 'libchromeos-dbus-bindings',
     22       'type': 'static_library',
     23       'sources': [
     24         'adaptor_generator.cc',
     25         'dbus_signature.cc',
     26         'header_generator.cc',
     27         'indented_text.cc',
     28         'method_name_generator.cc',
     29         'name_parser.cc',
     30         'proxy_generator.cc',
     31         'xml_interface_parser.cc',
     32       ],
     33       'variables': {
     34         'exported_deps': [
     35           'expat',
     36         ],
     37         'deps': [
     38           'dbus-1',
     39           '<@(exported_deps)',
     40         ],
     41       },
     42       'all_dependent_settings': {
     43         'variables': {
     44           'deps': [
     45             '<@(exported_deps)',
     46           ],
     47         },
     48       },
     49       'link_settings': {
     50         'variables': {
     51           'deps': [
     52             'expat',
     53           ],
     54         },
     55       },
     56     },
     57     {
     58       'target_name': 'generate-chromeos-dbus-bindings',
     59       'type': 'executable',
     60       'dependencies': ['libchromeos-dbus-bindings'],
     61       'sources': [
     62         'generate_chromeos_dbus_bindings.cc',
     63       ]
     64     },
     65   ],
     66   'conditions': [
     67     ['USE_test == 1', {
     68       'targets': [
     69         {
     70           'target_name': 'chromeos_dbus_bindings_unittest',
     71           'type': 'executable',
     72           'dependencies': ['libchromeos-dbus-bindings'],
     73           'includes': ['../../common-mk/common_test.gypi'],
     74           'sources': [
     75             'testrunner.cc',
     76             'adaptor_generator_unittest.cc',
     77             'dbus_signature_unittest.cc',
     78             'indented_text_unittest.cc',
     79             'method_name_generator_unittest.cc',
     80             'name_parser_unittest.cc',
     81             'proxy_generator_mock_unittest.cc',
     82             'proxy_generator_unittest.cc',
     83             'test_utils.cc',
     84             'xml_interface_parser_unittest.cc',
     85           ],
     86         },
     87       ],
     88     }],
     89   ],
     90 }
     91