Android.bp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. //
  2. // Copyright (C) 2013-2014 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-tests-defaults",
  18. cflags: [
  19. "-fstack-protector-all",
  20. "-g",
  21. "-Wall",
  22. "-Wextra",
  23. "-Werror",
  24. "-fno-builtin",
  25. ],
  26. }
  27. // -----------------------------------------------------------------------------
  28. // Benchmarks
  29. // ----------------------------------------------------------------------------
  30. // Build benchmarks for the device. Run with:
  31. // adb shell /data/nativetest/logcat-benchmarks/logcat-benchmarks
  32. cc_benchmark {
  33. name: "logcat-benchmarks",
  34. defaults: ["logcat-tests-defaults"],
  35. srcs: ["logcat_benchmark.cpp"],
  36. shared_libs: ["libbase"],
  37. }
  38. // -----------------------------------------------------------------------------
  39. // Unit tests.
  40. // -----------------------------------------------------------------------------
  41. // Build tests for the device (with .so). Run with:
  42. // adb shell /data/nativetest/logcat-unit-tests/logcat-unit-tests
  43. cc_test {
  44. name: "logcat-unit-tests",
  45. defaults: ["logcat-tests-defaults"],
  46. shared_libs: ["libbase"],
  47. static_libs: ["liblog"],
  48. srcs: [
  49. "logcat_test.cpp",
  50. "logcatd_test.cpp",
  51. ],
  52. }