Android.bp 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. cc_test_library {
  16. name: "libnetd_test_tun_interface",
  17. defaults: ["netd_defaults"],
  18. srcs: [
  19. "tun_interface.cpp"
  20. ],
  21. export_include_dirs: ["."],
  22. shared_libs: [
  23. "libbase",
  24. "libnetutils",
  25. ],
  26. }
  27. cc_test_library {
  28. name: "libnetd_test_unsol_service",
  29. defaults: ["netd_defaults"],
  30. srcs: [
  31. "TestUnsolService.cpp"
  32. ],
  33. include_dirs: [
  34. "system/netd/include",
  35. ],
  36. shared_libs: [
  37. "libbase",
  38. "libbinder",
  39. "libcutils",
  40. "liblog",
  41. "libnetutils",
  42. "libsysutils",
  43. "libutils",
  44. "netd_aidl_interface-cpp",
  45. ],
  46. }
  47. cc_test {
  48. name: "netd_integration_test",
  49. test_suites: ["device-tests"],
  50. require_root: true,
  51. defaults: ["netd_defaults"],
  52. srcs: [
  53. ":netd_integration_test_shared",
  54. "binder_test.cpp",
  55. "bpf_base_test.cpp",
  56. "netd_test.cpp",
  57. "netlink_listener_test.cpp",
  58. ],
  59. include_dirs: ["system/netd/server"],
  60. shared_libs: [
  61. "libbase",
  62. "libbinder",
  63. "libcrypto",
  64. "libcutils",
  65. "liblog",
  66. "libnetd_client",
  67. "libnetutils",
  68. "libprocessgroup",
  69. "libssl",
  70. "libutils",
  71. ],
  72. static_libs: [
  73. "libcap",
  74. "libnetd_test_tun_interface",
  75. "libnetd_test_unsol_service",
  76. "libbpf_android",
  77. "liblogwrap",
  78. "libnetdbpf",
  79. "libnetdutils",
  80. "libqtaguid",
  81. "netd_aidl_interface-cpp",
  82. "netd_event_listener_interface-cpp",
  83. "oemnetd_aidl_interface-cpp",
  84. ],
  85. compile_multilib: "both",
  86. multilib: {
  87. lib32: {
  88. suffix: "32",
  89. },
  90. lib64: {
  91. suffix: "64",
  92. },
  93. },
  94. sanitize: {
  95. address: true,
  96. recover: [ "all" ],
  97. },
  98. }