Android.bp 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. // Copyright (C) 2016 The Android Open Source Project
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. cc_library_shared {
  15. name: "liblshal",
  16. shared_libs: [
  17. "libbase",
  18. "libcutils",
  19. "libutils",
  20. "libhidlbase",
  21. "libhidltransport",
  22. "libhidl-gen-hash",
  23. "libhidl-gen-utils",
  24. "libvintf",
  25. ],
  26. static_libs: [
  27. "libprocpartition",
  28. ],
  29. srcs: [
  30. "DebugCommand.cpp",
  31. "HelpCommand.cpp",
  32. "Lshal.cpp",
  33. "ListCommand.cpp",
  34. "PipeRelay.cpp",
  35. "TableEntry.cpp",
  36. "TextTable.cpp",
  37. "utils.cpp",
  38. ],
  39. cflags: [
  40. "-Wall",
  41. "-Werror",
  42. ],
  43. }
  44. cc_defaults {
  45. name: "lshal_defaults",
  46. shared_libs: [
  47. "libbase",
  48. "libhidlbase",
  49. "libhidl-gen-utils",
  50. "libhidltransport",
  51. "liblshal",
  52. "libutils",
  53. ],
  54. static_libs: [
  55. "libprocpartition",
  56. ],
  57. cflags: ["-Wall", "-Werror"],
  58. }
  59. cc_binary {
  60. name: "lshal",
  61. defaults: ["lshal_defaults"],
  62. srcs: [
  63. "main.cpp"
  64. ]
  65. }
  66. cc_test {
  67. name: "lshal_test",
  68. defaults: ["lshal_defaults"],
  69. gtest: true,
  70. static_libs: [
  71. "libgmock"
  72. ],
  73. shared_libs: [
  74. "libvintf",
  75. "[email protected]"
  76. ],
  77. srcs: [
  78. "test.cpp"
  79. ]
  80. }