BUILD.gn 975 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Copyright 2014 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("//third_party/widevine/cdm/widevine.gni")
  5. static_library("common") {
  6. sources = [
  7. "cdm_message_generator.cc",
  8. "cdm_message_generator.h",
  9. ]
  10. if (is_android) {
  11. sources += [
  12. "cdm_messages_android.h",
  13. "widevine_drm_delegate_android.cc",
  14. "widevine_drm_delegate_android.h",
  15. ]
  16. }
  17. deps = [
  18. "//base",
  19. "//content/public/common",
  20. "//ipc",
  21. "//media",
  22. ]
  23. if (enable_library_cdms) {
  24. sources += [
  25. "cdm_manifest.cc",
  26. "cdm_manifest.h",
  27. ]
  28. }
  29. }
  30. if (enable_library_cdms) {
  31. source_set("unit_tests") {
  32. testonly = true
  33. sources = [ "cdm_manifest_unittest.cc" ]
  34. deps = [
  35. ":common",
  36. "//content/public/common",
  37. "//media",
  38. "//media/cdm:cdm_api",
  39. "//testing/gmock",
  40. "//testing/gtest",
  41. ]
  42. }
  43. }