Android.bp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //
  2. // Licensed under the Apache License, Version 2.0 (the "License");
  3. // you may not use this file except in compliance with the License.
  4. // You may obtain a copy of the License at
  5. //
  6. // http://www.apache.org/licenses/LICENSE-2.0
  7. //
  8. // Unless required by applicable law or agreed to in writing, software
  9. // distributed under the License is distributed on an "AS IS" BASIS,
  10. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. // See the License for the specific language governing permissions and
  12. // limitations under the License.
  13. package {
  14. default_applicable_licenses: ["Android-Apache-2.0"],
  15. }
  16. // add start
  17. bootstrap_go_package {
  18. name: "oemlock-ndk",
  19. pkgPath: "vendor/thead/opensource/hal_default/oemlock",
  20. deps: [
  21. "soong-android",
  22. "soong-cc",
  23. ],
  24. srcs: [
  25. "oemlock_ndk.go",
  26. ],
  27. pluginFor: ["soong_build"],
  28. }
  29. cc_oemlock_binary {
  30. name: "oemlock_libs_defaults",
  31. }
  32. cc_binary {
  33. name: "android.hardware.oemlock-service.th1520",
  34. relative_install_path: "hw",
  35. init_rc: ["android.hardware.oemlock-service.th1520.rc"],
  36. vintf_fragments: ["android.hardware.oemlock-service.th1520.xml"],
  37. vendor: true,
  38. defaults: ["oemlock_libs_defaults"],
  39. srcs: [
  40. "service.cpp",
  41. "OemLock.cpp",
  42. ],
  43. shared_libs: [
  44. "libbase",
  45. "libbinder_ndk",
  46. ],
  47. }