BUILD.gn 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #
  2. # Copyright 2017 Google, Inc.
  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. static_library("types") {
  17. cflags = [
  18. "-fvisibility=default",
  19. ]
  20. sources = [
  21. "bluetooth/uuid.cc",
  22. "le_address.cc",
  23. "raw_address.cc",
  24. ]
  25. include_dirs = [
  26. "//",
  27. ]
  28. deps = [
  29. "//third_party/libchrome:base",
  30. ]
  31. }
  32. executable("types_unittests") {
  33. testonly = true
  34. sources = [
  35. "test/raw_address_unittest.cc",
  36. "test/bluetooth/uuid_unittest.cc",
  37. ]
  38. include_dirs = [
  39. "//",
  40. ]
  41. libs = [
  42. "-ldl",
  43. "-lpthread",
  44. "-lresolv",
  45. "-lrt",
  46. "-lz",
  47. "-latomic",
  48. ]
  49. deps = [
  50. "//types",
  51. "//third_party/googletest:gmock_main",
  52. "//third_party/libchrome:base",
  53. ]
  54. }