OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 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 import("//tools/generate_library_loader/generate_library_loader.gni") |
| 6 |
| 7 gypi_values = exec_script("//build/gypi_to_gn.py", |
| 8 [ rebase_path("../system.gyp") ], |
| 9 "scope", |
| 10 [ "../system.gyp" ]) |
| 11 |
| 12 # This generates a target named "udev0_loader". |
| 13 generate_library_loader("udev0_loader") { |
| 14 name = "LibUdev0Loader" |
| 15 output_h = "libudev0.h" |
| 16 output_cc = "libudev0_loader.cc" |
| 17 header = "\"third_party/libudev/libudev0.h\"" |
| 18 |
| 19 functions = gypi_values.libudev_functions |
| 20 } |
| 21 |
| 22 # This generates a target named "udev1_loader". |
| 23 generate_library_loader("udev1_loader") { |
| 24 name = "LibUdev1Loader" |
| 25 output_h = "libudev1.h" |
| 26 output_cc = "libudev1_loader.cc" |
| 27 header = "\"third_party/libudev/libudev1.h\"" |
| 28 |
| 29 functions = gypi_values.libudev_functions |
| 30 } |
| 31 |
| 32 group("udev") { |
| 33 public_deps = [ |
| 34 ":udev0_loader", |
| 35 ":udev1_loader", |
| 36 ] |
| 37 } |
OLD | NEW |