Android.bp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. //
  2. // Copyright (C) 2006 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: "logcat_defaults",
  18. cflags: [
  19. "-Wall",
  20. "-Wextra",
  21. "-Werror",
  22. ],
  23. shared_libs: [
  24. "libbase",
  25. "libpcrecpp",
  26. "libprocessgroup",
  27. ],
  28. static_libs: ["liblog"],
  29. logtags: ["event.logtags"],
  30. }
  31. cc_binary {
  32. name: "logcat",
  33. defaults: ["logcat_defaults"],
  34. srcs: [
  35. "logcat_main.cpp",
  36. "logcat.cpp",
  37. ],
  38. }
  39. cc_binary {
  40. name: "logcatd",
  41. defaults: ["logcat_defaults"],
  42. srcs: [
  43. "logcatd_main.cpp",
  44. "logcat.cpp",
  45. ],
  46. }
  47. cc_prebuilt_binary {
  48. name: "logpersist.start",
  49. srcs: ["logpersist"],
  50. init_rc: ["logcatd.rc"],
  51. required: ["logcatd"],
  52. symlinks: [
  53. "logpersist.stop",
  54. "logpersist.cat",
  55. ],
  56. strip: {
  57. none: true,
  58. },
  59. }