| # 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", |
| ] |
| } |