diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-20 21:40:01 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-20 21:40:01 +0000 |
commit | 7a1da46cc35ef42026395be35c473b521487b8cb (patch) | |
tree | d22d0cce88432ee36ee7252fb96e09138704cd52 /device/serial/BUILD.gn | |
parent | 6ffa9ec101e29c8e2c84fbda6ba60e97d36557ec (diff) | |
download | chromium_src-7a1da46cc35ef42026395be35c473b521487b8cb.zip chromium_src-7a1da46cc35ef42026395be35c473b521487b8cb.tar.gz chromium_src-7a1da46cc35ef42026395be35c473b521487b8cb.tar.bz2 |
Make chrome/common compile in GN
Adds extensions common API target and extensions templates.
Adds a number of new targets: widevine, flash, sync proto, metrics proto, device serial.
Minor enhancements to protobuf and mojo templates.
TBR=jamesr
Review URL: https://codereview.chromium.org/343233002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278828 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'device/serial/BUILD.gn')
-rw-r--r-- | device/serial/BUILD.gn | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/device/serial/BUILD.gn b/device/serial/BUILD.gn new file mode 100644 index 0000000..0b38e93 --- /dev/null +++ b/device/serial/BUILD.gn @@ -0,0 +1,37 @@ +# Copyright 2014 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//mojo/public/tools/bindings/mojom.gni") + +# GYP version: device/serial/serial.gyp:device_serial +static_library("serial") { + output_name = "device_serial" + + sources = [ + "serial_device_enumerator.cc", + "serial_device_enumerator.h", + "serial_device_enumerator_linux.cc", + "serial_device_enumerator_linux.h", + "serial_device_enumerator_mac.cc", + "serial_device_enumerator_mac.h", + "serial_device_enumerator_win.cc", + "serial_device_enumerator_win.h", + ] + + if (is_linux) { + configs += [ "//build/config/linux:udev" ] + } + + deps = [ + ":serial_mojo", + ] +} + +mojom("serial_mojo") { + visibility = ":serial" + + sources = [ + "serial.mojom", + ] +} |