Android.bp 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. //
  2. // Copyright (C) 2017 The Android Open Source Project
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License");
  5. // you may not use this file except in compliance with the License.
  6. // You may obtain a copy of the License at
  7. //
  8. // http://www.apache.org/licenses/LICENSE-2.0
  9. //
  10. // Unless required by applicable law or agreed to in writing, software
  11. // distributed under the License is distributed on an "AS IS" BASIS,
  12. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. // See the License for the specific language governing permissions and
  14. // limitations under the License.
  15. //
  16. cc_defaults {
  17. name: "libperfmgr_defaults",
  18. local_include_dirs: ["include"],
  19. shared_libs: [
  20. "libbase",
  21. "libutils",
  22. ],
  23. static_libs: [
  24. "libjsoncpp",
  25. ],
  26. cflags: [
  27. "-Wall",
  28. "-Werror",
  29. ],
  30. tidy: true,
  31. tidy_checks: [
  32. "android-*",
  33. "cert-*",
  34. "clang-analyzer-security*",
  35. ],
  36. tidy_flags: [
  37. "-warnings-as-errors=android-*,clang-analyzer-security*,cert-*"
  38. ],
  39. }
  40. cc_library {
  41. name: "libperfmgr",
  42. vendor_available: true,
  43. defaults: ["libperfmgr_defaults"],
  44. export_include_dirs: ["include"],
  45. srcs: [
  46. "RequestGroup.cc",
  47. "Node.cc",
  48. "FileNode.cc",
  49. "PropertyNode.cc",
  50. "NodeLooperThread.cc",
  51. "HintManager.cc",
  52. ]
  53. }
  54. cc_test {
  55. name: "libperfmgr_test",
  56. defaults: ["libperfmgr_defaults"],
  57. static_libs: ["libperfmgr"],
  58. srcs: [
  59. "tests/RequestGroupTest.cc",
  60. "tests/FileNodeTest.cc",
  61. "tests/PropertyNodeTest.cc",
  62. "tests/NodeLooperThreadTest.cc",
  63. "tests/HintManagerTest.cc",
  64. ]
  65. }
  66. cc_binary {
  67. name: "perfmgr_config_verifier",
  68. defaults: ["libperfmgr_defaults"],
  69. static_libs: ["libperfmgr"],
  70. srcs: [
  71. "tools/ConfigVerifier.cc",
  72. ]
  73. }