BUILD.gn 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Copyright 2017 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("//media/media_options.gni")
  5. source_set("device_monitors") {
  6. # Do not expand the visibility here without double-checking with OWNERS, this
  7. # is a roll-up target which is part of the //media component. Most other DEPs
  8. # should be using //media and not directly DEP this roll-up target.
  9. visibility = [ "//media" ]
  10. sources = []
  11. configs += [ "//media:subcomponent_config" ]
  12. deps = [
  13. "//base",
  14. "//media/audio",
  15. "//media/base",
  16. ]
  17. if (use_udev) {
  18. deps += [ "//device/udev_linux" ]
  19. sources += [
  20. "device_monitor_udev.cc",
  21. "device_monitor_udev.h",
  22. ]
  23. }
  24. if (is_mac) {
  25. sources += [
  26. "device_monitor_mac.h",
  27. "device_monitor_mac.mm",
  28. ]
  29. frameworks = [ "Foundation.framework" ]
  30. }
  31. if (is_win) {
  32. sources += [
  33. "system_message_window_win.cc",
  34. "system_message_window_win.h",
  35. ]
  36. }
  37. }
  38. source_set("unit_tests") {
  39. testonly = true
  40. sources = []
  41. deps = [
  42. "//base",
  43. "//base/test:test_support",
  44. "//media:test_support",
  45. "//testing/gmock",
  46. "//testing/gtest",
  47. ]
  48. if (is_win) {
  49. sources += [ "system_message_window_win_unittest.cc" ]
  50. }
  51. }