Request Document: go/android3p
For CL Reviewers: go/android3p#reviewing-a-cl
For Build Team: go/ab-third-party-imports
Bug: http://b/413100836
Test: libudev-zero
Original import of the code can be found at: https://googleplex-android.googlesource.com/platform/external/libudev-zero/+/refs/heads/third-party-review.
Security Questionnaire: http://b/413100836#comment1

Change-Id: I17b30efbd9e0785dd8ccf8a7cb77017e166af9fb
This commit is contained in:
Mark Yacoub
2025-05-12 12:20:39 -04:00
parent bbeb7ad51c
commit 9dd049e2e0
4 changed files with 66 additions and 0 deletions

49
Android.bp Normal file
View File

@@ -0,0 +1,49 @@
package {
default_applicable_licenses: ["external_libudev_zero_license"],
}
license {
name: "external_libudev_zero_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-ISC",
],
license_text: [
"LICENSE",
],
}
cc_genrule {
name: "libudev_zero_copy_headers",
srcs: ["udev.h"],
out: ["libudev.h"],
cmd: "cp $(in) $(out)",
}
cc_library_static {
name: "libudev-zero",
visibility: [
"//external/igt-gpu-tools",
],
srcs: [
"udev.c",
"udev_list.c",
"udev_device.c",
"udev_monitor.c",
"udev_enumerate.c",
],
generated_headers: [
"libudev_zero_copy_headers",
],
export_generated_headers: [
"libudev_zero_copy_headers",
],
cflags: [
"-Wall",
"-Wextra",
"-Wpedantic",
"-Wmissing-prototypes",
"-Wstrict-prototypes",
"-Wno-unused-parameter",
],
}