BUILD.gn 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # Copyright 2019 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. import("//build/config/features.gni")
  6. declare_args() {
  7. # Controls the product part of the user agent calculated in sync_util.cc.
  8. sync_user_agent_product = "Chrome"
  9. }
  10. static_library("base") {
  11. sources = [
  12. "bind_to_task_runner.h",
  13. "client_tag_hash.cc",
  14. "client_tag_hash.h",
  15. "command_line_switches.cc",
  16. "command_line_switches.h",
  17. "data_type_histogram.cc",
  18. "data_type_histogram.h",
  19. "extensions_activity.cc",
  20. "extensions_activity.h",
  21. "features.cc",
  22. "features.h",
  23. "hash_util.cc",
  24. "hash_util.h",
  25. "invalidation_adapter.cc",
  26. "invalidation_adapter.h",
  27. "invalidation_helper.cc",
  28. "invalidation_helper.h",
  29. "legacy_directory_deletion.cc",
  30. "legacy_directory_deletion.h",
  31. "model_type.cc",
  32. "model_type.h",
  33. "page_transition_conversion.cc",
  34. "page_transition_conversion.h",
  35. "passphrase_enums.cc",
  36. "passphrase_enums.h",
  37. "pref_names.h",
  38. "progress_marker_map.cc",
  39. "progress_marker_map.h",
  40. "report_unrecoverable_error.cc",
  41. "report_unrecoverable_error.h",
  42. "stop_source.h",
  43. "sync_invalidation.cc",
  44. "sync_invalidation.h",
  45. "sync_mode.h",
  46. "sync_prefs.cc",
  47. "sync_prefs.h",
  48. "sync_stop_metadata_fate.h",
  49. "sync_util.cc",
  50. "sync_util.h",
  51. "syncer_error.cc",
  52. "syncer_error.h",
  53. "time.cc",
  54. "time.h",
  55. "unique_position.cc",
  56. "unique_position.h",
  57. "user_selectable_type.cc",
  58. "user_selectable_type.h",
  59. "weak_handle.cc",
  60. "weak_handle.h",
  61. ]
  62. public_deps = [
  63. "//base",
  64. "//components/invalidation/public",
  65. "//components/sync/protocol",
  66. "//third_party/metrics_proto",
  67. ]
  68. deps = [
  69. "//base",
  70. "//base:i18n",
  71. "//build:chromeos_buildflags",
  72. "//components/pref_registry",
  73. "//components/prefs",
  74. "//components/version_info",
  75. "//components/version_info:generate_version_info",
  76. "//crypto",
  77. "//net",
  78. "//third_party/zlib",
  79. "//ui/base",
  80. ]
  81. if (is_chromeos_ash) {
  82. deps += [ "//ash/constants" ]
  83. }
  84. defines = [ "SYNC_USER_AGENT_PRODUCT=$sync_user_agent_product" ]
  85. }