| OLD | NEW |
| (Empty) |
| 1 # Copyright 2015 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 'targets': [ | |
| 7 { | |
| 8 'target_name': 'battor_agent', | |
| 9 'type': 'executable', | |
| 10 'include_dirs': [ | |
| 11 '../..', | |
| 12 ], | |
| 13 'dependencies': [ | |
| 14 'battor_agent_lib', | |
| 15 '../../device/serial/serial.gyp:device_serial', | |
| 16 '../../device/serial/serial.gyp:device_serial_mojo', | |
| 17 '../../mojo/mojo_edk.gyp:mojo_system_impl', | |
| 18 ], | |
| 19 'sources': [ | |
| 20 'battor_agent_bin.cc', | |
| 21 ], | |
| 22 }, | |
| 23 { | |
| 24 'target_name': 'battor_agent_lib', | |
| 25 'type': 'static_library', | |
| 26 'include_dirs': [ | |
| 27 '../..', | |
| 28 ], | |
| 29 'sources': [ | |
| 30 'battor_agent.cc', | |
| 31 'battor_agent.h', | |
| 32 'battor_connection.cc', | |
| 33 'battor_connection.h', | |
| 34 'battor_connection_impl.cc', | |
| 35 'battor_connection_impl.h', | |
| 36 'battor_error.cc', | |
| 37 'battor_error.h', | |
| 38 'battor_finder.cc', | |
| 39 'battor_finder.h', | |
| 40 'battor_sample_converter.cc', | |
| 41 'battor_sample_converter.h', | |
| 42 'serial_utils.cc', | |
| 43 'serial_utils.h', | |
| 44 ], | |
| 45 'dependencies': [ | |
| 46 '../../base/base.gyp:base', | |
| 47 '../../device/serial/serial.gyp:device_serial', | |
| 48 '../../device/serial/serial.gyp:device_serial_mojo', | |
| 49 ] | |
| 50 }, | |
| 51 { | |
| 52 'target_name': 'battor_agent_unittests', | |
| 53 'type': '<(gtest_target_type)', | |
| 54 'dependencies': [ | |
| 55 'battor_agent_lib', | |
| 56 '../../base/base.gyp:base', | |
| 57 '../../base/base.gyp:run_all_unittests', | |
| 58 '../../base/base.gyp:test_support_base', | |
| 59 '../../device/serial/serial.gyp:device_serial', | |
| 60 '../../device/serial/serial.gyp:device_serial_test_util', | |
| 61 '../../mojo/mojo_edk.gyp:mojo_system_impl', | |
| 62 '../../testing/gmock.gyp:gmock', | |
| 63 '../../testing/gtest.gyp:gtest', | |
| 64 ], | |
| 65 'sources': [ | |
| 66 'battor_agent_unittest.cc', | |
| 67 'battor_connection_impl_unittest.cc', | |
| 68 'battor_protocol_types_unittest.cc', | |
| 69 'battor_sample_converter_unittest.cc', | |
| 70 'serial_utils_unittest.cc', | |
| 71 ], | |
| 72 }, | |
| 73 ], | |
| 74 'conditions': [ | |
| 75 ['test_isolation_mode != "noop"', { | |
| 76 'targets': [ | |
| 77 { | |
| 78 'target_name': 'battor_agent_unittests_run', | |
| 79 'type': 'none', | |
| 80 'dependencies': [ | |
| 81 'battor_agent_unittests', | |
| 82 ], | |
| 83 'includes': [ | |
| 84 '../../build/isolate.gypi', | |
| 85 ], | |
| 86 'sources': [ | |
| 87 'battor_agent_unittests.isolate', | |
| 88 ], | |
| 89 }, | |
| 90 ], | |
| 91 }], | |
| 92 ], | |
| 93 } | |
| OLD | NEW |