BUILD.gn 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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("//testing/test.gni")
  5. group("all") {
  6. testonly = true
  7. deps = [ ":service_manager" ]
  8. if (!is_ios) {
  9. deps += [
  10. # These tests heavily rely on service binaries, which are not supported on
  11. # iOS.
  12. "//services/service_manager/tests",
  13. ]
  14. }
  15. }
  16. source_set("service_manager") {
  17. sources = [
  18. "background_service_manager.cc",
  19. "background_service_manager.h",
  20. "catalog.cc",
  21. "catalog.h",
  22. "service_instance.cc",
  23. "service_instance.h",
  24. "service_instance_registry.cc",
  25. "service_instance_registry.h",
  26. "service_manager.cc",
  27. "service_manager.h",
  28. "service_process_host.h",
  29. "service_process_launcher_delegate.h",
  30. "service_process_launcher_factory.h",
  31. "switches.cc",
  32. "switches.h",
  33. ]
  34. configs += [ "//build/config/compiler:wexit_time_destructors" ]
  35. deps = [
  36. "//base/third_party/dynamic_annotations",
  37. "//build:chromeos_buildflags",
  38. "//components/services/filesystem:lib",
  39. "//components/services/filesystem/public/mojom",
  40. "//sandbox/policy",
  41. "//ui/base",
  42. ]
  43. public_deps = [
  44. "//base",
  45. "//mojo/public/cpp/bindings",
  46. "//sandbox/policy/mojom",
  47. "//services/service_manager/public/cpp",
  48. "//services/service_manager/public/mojom",
  49. ]
  50. if (!is_ios) {
  51. sources += [
  52. "service_process_launcher.cc",
  53. "service_process_launcher.h",
  54. ]
  55. deps += [
  56. "//mojo/core/embedder",
  57. "//services/service_manager/public/cpp/service_executable:switches",
  58. ]
  59. }
  60. if (is_linux || is_chromeos) {
  61. deps += [ "//sandbox/linux:sandbox_services" ]
  62. }
  63. }