|
@@ -15,18 +15,36 @@ package {
|
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
|
}
|
|
|
|
|
|
+// add start
|
|
|
+bootstrap_go_package {
|
|
|
+ name: "oemlock-ndk",
|
|
|
+ pkgPath: "vendor/thead/opensource/hal_default/oemlock",
|
|
|
+ deps: [
|
|
|
+ "soong-android",
|
|
|
+ "soong-cc",
|
|
|
+ ],
|
|
|
+ srcs: [
|
|
|
+ "oemlock_ndk.go",
|
|
|
+ ],
|
|
|
+ pluginFor: ["soong_build"],
|
|
|
+}
|
|
|
+
|
|
|
+cc_oemlock_binary {
|
|
|
+ name: "oemlock_libs_defaults",
|
|
|
+}
|
|
|
+
|
|
|
cc_binary {
|
|
|
name: "android.hardware.oemlock-service.th1520",
|
|
|
relative_install_path: "hw",
|
|
|
init_rc: ["android.hardware.oemlock-service.th1520.rc"],
|
|
|
vintf_fragments: ["android.hardware.oemlock-service.th1520.xml"],
|
|
|
vendor: true,
|
|
|
+ defaults: ["oemlock_libs_defaults"],
|
|
|
srcs: [
|
|
|
"service.cpp",
|
|
|
"OemLock.cpp",
|
|
|
],
|
|
|
shared_libs: [
|
|
|
- "android.hardware.oemlock-V1-ndk_platform",
|
|
|
"libbase",
|
|
|
"libbinder_ndk",
|
|
|
],
|