Android.bp 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // Copyright (C) 2019 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 {
  15. name: "libcgrouprc",
  16. host_supported: true,
  17. recovery_available: true,
  18. // Do not ever mark this as vendor_available; otherwise, vendor modules
  19. // that links to the static library will behave unexpectedly. All on-device
  20. // modules should use libprocessgroup which links to the LL-NDK library
  21. // defined below. The static library is built for tests.
  22. vendor_available: false,
  23. srcs: [
  24. "cgroup_controller.cpp",
  25. "cgroup_file.cpp",
  26. ],
  27. cflags: [
  28. "-Wall",
  29. "-Werror",
  30. ],
  31. export_include_dirs: [
  32. "include",
  33. ],
  34. header_libs: [
  35. "libprocessgroup_headers",
  36. ],
  37. shared_libs: [
  38. "libbase",
  39. ],
  40. static_libs: [
  41. "libcgrouprc_format",
  42. ],
  43. stubs: {
  44. symbol_file: "libcgrouprc.llndk.txt",
  45. versions: ["29"],
  46. },
  47. target: {
  48. linux: {
  49. version_script: "libcgrouprc.llndk.txt",
  50. },
  51. },
  52. }
  53. llndk_library {
  54. name: "libcgrouprc",
  55. symbol_file: "libcgrouprc.llndk.txt",
  56. export_include_dirs: [
  57. "include",
  58. ],
  59. }