OLD | NEW |
(Empty) | |
| 1 # Copyright 2016 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 libudev_functions = [ |
| 8 "udev_device_get_action", |
| 9 "udev_device_get_devnode", |
| 10 "udev_device_get_parent", |
| 11 "udev_device_get_parent_with_subsystem_devtype", |
| 12 "udev_device_get_property_value", |
| 13 "udev_device_get_subsystem", |
| 14 "udev_device_get_sysattr_value", |
| 15 "udev_device_get_sysname", |
| 16 "udev_device_get_syspath", |
| 17 "udev_device_new_from_devnum", |
| 18 "udev_device_new_from_subsystem_sysname", |
| 19 "udev_device_new_from_syspath", |
| 20 "udev_device_unref", |
| 21 "udev_enumerate_add_match_subsystem", |
| 22 "udev_enumerate_get_list_entry", |
| 23 "udev_enumerate_new", |
| 24 "udev_enumerate_scan_devices", |
| 25 "udev_enumerate_unref", |
| 26 "udev_list_entry_get_next", |
| 27 "udev_list_entry_get_name", |
| 28 "udev_monitor_enable_receiving", |
| 29 "udev_monitor_filter_add_match_subsystem_devtype", |
| 30 "udev_monitor_get_fd", |
| 31 "udev_monitor_new_from_netlink", |
| 32 "udev_monitor_receive_device", |
| 33 "udev_monitor_unref", |
| 34 "udev_new", |
| 35 "udev_set_log_fn", |
| 36 "udev_set_log_priority", |
| 37 "udev_unref", |
| 38 ] |
| 39 |
| 40 # This generates a target named "udev0_loader". |
| 41 generate_library_loader("udev0_loader") { |
| 42 name = "LibUdev0Loader" |
| 43 output_h = "libudev0.h" |
| 44 output_cc = "libudev0_loader.cc" |
| 45 header = "\"third_party/libudev/libudev0.h\"" |
| 46 |
| 47 functions = libudev_functions |
| 48 } |
| 49 |
| 50 # This generates a target named "udev1_loader". |
| 51 generate_library_loader("udev1_loader") { |
| 52 name = "LibUdev1Loader" |
| 53 output_h = "libudev1.h" |
| 54 output_cc = "libudev1_loader.cc" |
| 55 header = "\"third_party/libudev/libudev1.h\"" |
| 56 |
| 57 functions = libudev_functions |
| 58 } |
| 59 |
| 60 group("libudev") { |
| 61 public_deps = [ |
| 62 ":udev0_loader", |
| 63 ":udev1_loader", |
| 64 ] |
| 65 } |
OLD | NEW |