Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: device/serial/serial.gyp

Issue 467983002: Make udev target disappear on linux when use_udev==0 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « device/device_tests.gyp ('k') | third_party/libusb/libusb.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 }, 8 },
9 'targets': [ 9 'targets': [
10 { 10 {
11 # GN version: //device/serial:serial_mojo 11 # GN version: //device/serial:serial_mojo
12 'target_name': 'device_serial_mojo', 12 'target_name': 'device_serial_mojo',
13 # The type of this target must be none. This is so that resources can 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 14 # depend upon this target for generating the js bindings files. Any
15 # generated cpp files must be listed explicitly in device_serial 15 # generated cpp files must be listed explicitly in device_serial
16 'type': 'none', 16 'type': 'none',
17 'includes': [ 17 'includes': [
18 '../../mojo/public/tools/bindings/mojom_bindings_generator.gypi', 18 '../../mojo/public/tools/bindings/mojom_bindings_generator.gypi',
19 ], 19 ],
20 'sources': [ 20 'sources': [
21 'serial.mojom', 21 'serial.mojom',
22 'data_stream.mojom', 22 'data_stream.mojom',
23 ], 23 ],
24 }, 24 },
25 { 25 {
26 # GN version: //device/serial 26 # GN version: //device/serial
27 'target_name': 'device_serial', 27 'target_name': 'device_serial',
28 'type': 'static_library', 28 'type': 'static_library',
29 'conditions': [ 29 'conditions': [
30 ['OS=="linux"', { 30 ['use_udev == 1', {
31 'dependencies': [ 31 'dependencies': [
32 '../../build/linux/system.gyp:udev', 32 '../../build/linux/system.gyp:udev',
33 ], 33 ],
34 }, {
35 'sources!': [
36 'serial_device_enumerator_linux.cc',
37 'serial_device_enumerator_linux.h',
38 ],
34 }], 39 }],
35 ], 40 ],
36 'dependencies': [ 41 'dependencies': [
37 'device_serial_mojo', 42 'device_serial_mojo',
38 '../../mojo/mojo_base.gyp:mojo_cpp_bindings', 43 '../../mojo/mojo_base.gyp:mojo_cpp_bindings',
39 '../../net/net.gyp:net', 44 '../../net/net.gyp:net',
40 ], 45 ],
41 'export_dependent_settings': [ 46 'export_dependent_settings': [
42 'device_serial_mojo', 47 'device_serial_mojo',
43 '../../mojo/mojo_base.gyp:mojo_cpp_bindings', 48 '../../mojo/mojo_base.gyp:mojo_cpp_bindings',
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 'device_serial', 90 'device_serial',
86 'device_serial_mojo', 91 'device_serial_mojo',
87 ], 92 ],
88 'sources': [ 93 'sources': [
89 'test_serial_io_handler.cc', 94 'test_serial_io_handler.cc',
90 'test_serial_io_handler.h', 95 'test_serial_io_handler.h',
91 ], 96 ],
92 }, 97 },
93 ], 98 ],
94 } 99 }
OLDNEW
« no previous file with comments | « device/device_tests.gyp ('k') | third_party/libusb/libusb.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698