Android.bp 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Copyright (C) 2018 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: "sepolicy_tools_defaults",
  18. cflags: [
  19. "-Wall",
  20. "-Werror",
  21. ],
  22. static_libs: ["libsepol"],
  23. stl: "none",
  24. }
  25. cc_binary_host {
  26. name: "checkseapp",
  27. defaults: ["sepolicy_tools_defaults"],
  28. srcs: ["check_seapp.c"],
  29. whole_static_libs: ["libpcre2"],
  30. cflags: ["-DLINK_SEPOL_STATIC"],
  31. }
  32. cc_binary_host {
  33. name: "checkfc",
  34. defaults: ["sepolicy_tools_defaults"],
  35. srcs: ["checkfc.c"],
  36. static_libs: ["libselinux"],
  37. }
  38. cc_binary_host {
  39. name: "sepolicy-check",
  40. defaults: ["sepolicy_tools_defaults"],
  41. srcs: ["sepolicy-check.c"],
  42. }
  43. cc_binary_host {
  44. name: "version_policy",
  45. defaults: ["sepolicy_tools_defaults"],
  46. srcs: ["version_policy.c"],
  47. }
  48. cc_prebuilt_binary {
  49. name: "insertkeys.py",
  50. srcs: ["insertkeys.py"],
  51. host_supported: true,
  52. }