Android.bp 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Copyright (C) 2019 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: "linkerconfig_defaults",
  18. cflags: [
  19. "-Wall",
  20. "-Werror",
  21. "-Wextra",
  22. ],
  23. static_libs: [
  24. "libbase",
  25. "liblog",
  26. ],
  27. header_libs: ["linkerconfig_headers"],
  28. }
  29. cc_library_headers {
  30. name: "linkerconfig_headers",
  31. export_include_dirs: ["include"],
  32. }
  33. cc_library_static {
  34. name: "linkerconfig_modules",
  35. defaults: [ "linkerconfig_defaults" ],
  36. srcs: [
  37. "modules/*.cc",
  38. ],
  39. }
  40. cc_test {
  41. name: "linkerconfig_modules_unittest",
  42. defaults: [ "linkerconfig_defaults" ],
  43. srcs: [
  44. "modules/tests/*_test.cc",
  45. ],
  46. static_libs: [
  47. "linkerconfig_modules",
  48. ],
  49. cflags: [
  50. "-g",
  51. "-Wunused",
  52. ],
  53. test_suites: ["general-tests"],
  54. }