BUILD.gn 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Copyright 2015 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. import("//build/config/chromeos/ui_mode.gni")
  5. static_library("rlz") {
  6. sources = [
  7. "rlz_tracker.cc",
  8. "rlz_tracker.h",
  9. "rlz_tracker_delegate.h",
  10. ]
  11. if (is_ios) {
  12. sources += [ "rlz_tracker_ios.cc" ]
  13. }
  14. if (is_mac) {
  15. sources += [ "rlz_tracker_mac.cc" ]
  16. }
  17. if (is_win) {
  18. sources += [ "rlz_tracker_win.cc" ]
  19. }
  20. if (is_chromeos_ash) {
  21. sources += [ "rlz_tracker_chromeos.cc" ]
  22. }
  23. deps = [
  24. "//base",
  25. "//build:chromeos_buildflags",
  26. "//components/google/core/common",
  27. "//net",
  28. "//rlz:rlz_lib",
  29. "//services/network/public/cpp:cpp",
  30. ]
  31. if (is_ios) {
  32. deps += [ "//ui/base" ]
  33. }
  34. }
  35. source_set("unit_tests") {
  36. testonly = true
  37. sources = [ "rlz_tracker_unittest.cc" ]
  38. deps = [
  39. ":rlz",
  40. "//build:chromeos_buildflags",
  41. "//net:test_support",
  42. "//rlz:test_support",
  43. "//services/network/public/cpp:cpp",
  44. "//ui/base",
  45. ]
  46. if (is_chromeos_ash) {
  47. deps += [ "//chromeos/system" ]
  48. }
  49. }