Home | History | Annotate | Download | only in serial
      1 # Copyright 2014 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       # GN version: //device/serial:serial_mojo
     12       'target_name': 'device_serial_mojo',
     13       # The type of this target must be none. This is so that resources can
     14       # depend upon this target for generating the js bindings files. Any
     15       # generated cpp files must be listed explicitly in device_serial
     16       'type': 'none',
     17       'includes': [
     18         '../../mojo/public/tools/bindings/mojom_bindings_generator.gypi',
     19       ],
     20       'sources': [
     21         'data_stream.mojom',
     22         'data_stream_serialization.mojom',
     23         'serial.mojom',
     24       ],
     25     },
     26     {
     27       # GN version: //device/serial
     28       'target_name': 'device_serial',
     29       'type': 'static_library',
     30       'conditions': [
     31         ['use_udev == 1', {
     32           'dependencies': [
     33             '../../build/linux/system.gyp:udev',
     34           ],
     35         }, {
     36           'sources!': [
     37             'serial_device_enumerator_linux.cc',
     38             'serial_device_enumerator_linux.h',
     39           ],
     40         }],
     41       ],
     42       'dependencies': [
     43         'device_serial_mojo',
     44         '../../mojo/mojo_base.gyp:mojo_cpp_bindings',
     45         '../../net/net.gyp:net',
     46       ],
     47       'export_dependent_settings': [
     48         'device_serial_mojo',
     49         '../../mojo/mojo_base.gyp:mojo_cpp_bindings',
     50       ],
     51       'sources': [
     52         '<(SHARED_INTERMEDIATE_DIR)/device/serial/data_stream.mojom.cc',
     53         '<(SHARED_INTERMEDIATE_DIR)/device/serial/data_stream.mojom.h',
     54         '<(SHARED_INTERMEDIATE_DIR)/device/serial/data_stream_serialization.mojom.cc',
     55         '<(SHARED_INTERMEDIATE_DIR)/device/serial/data_stream_serialization.mojom.h',
     56         '<(SHARED_INTERMEDIATE_DIR)/device/serial/serial.mojom.cc',
     57         '<(SHARED_INTERMEDIATE_DIR)/device/serial/serial.mojom.h',
     58         'async_waiter.cc',
     59         'async_waiter.h',
     60         'buffer.cc',
     61         'buffer.h',
     62         'data_receiver.cc',
     63         'data_receiver.h',
     64         'data_sender.cc',
     65         'data_sender.h',
     66         'data_sink_receiver.cc',
     67         'data_sink_receiver.h',
     68         'data_source_sender.cc',
     69         'data_source_sender.h',
     70         'serial_connection.cc',
     71         'serial_connection.h',
     72         'serial_connection_factory.cc',
     73         'serial_connection_factory.h',
     74         'serial_device_enumerator.cc',
     75         'serial_device_enumerator.h',
     76         'serial_device_enumerator_linux.cc',
     77         'serial_device_enumerator_linux.h',
     78         'serial_device_enumerator_mac.cc',
     79         'serial_device_enumerator_mac.h',
     80         'serial_device_enumerator_win.cc',
     81         'serial_device_enumerator_win.h',
     82         'serial_io_handler.cc',
     83         'serial_io_handler.h',
     84         'serial_io_handler_posix.cc',
     85         'serial_io_handler_posix.h',
     86         'serial_io_handler_win.cc',
     87         'serial_io_handler_win.h',
     88         'serial_service_impl.cc',
     89         'serial_service_impl.h',
     90       ],
     91     },
     92     {
     93       # GN version: //device/serial:test_util
     94       'target_name': 'device_serial_test_util',
     95       'type': 'static_library',
     96       'dependencies': [
     97         'device_serial',
     98         'device_serial_mojo',
     99       ],
    100       'sources': [
    101         'test_serial_io_handler.cc',
    102         'test_serial_io_handler.h',
    103       ],
    104     },
    105   ],
    106 }
    107