BUILD.gn 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. import("//build/config/ui.gni")
  2. static_library("brightray") {
  3. deps = [
  4. "//base",
  5. "//base:base_static",
  6. "//content/public/browser",
  7. "//content/shell:copy_shell_resources",
  8. "//net:extras",
  9. "//net:net_with_v8",
  10. "//skia",
  11. "//ui/views",
  12. ]
  13. include_dirs = [ ".." ]
  14. if (is_linux) {
  15. deps += [ "//build/config/linux/gtk" ]
  16. }
  17. extra_source_filters = []
  18. if (is_mac) {
  19. extra_source_filters += [
  20. "*_views.cc",
  21. "*_views.h",
  22. "*\bviews/*",
  23. ]
  24. }
  25. set_sources_assignment_filter(
  26. sources_assignment_filter + extra_source_filters)
  27. sources = [
  28. "browser/brightray_paths.h",
  29. "browser/browser_client.cc",
  30. "browser/browser_client.h",
  31. "browser/browser_main_parts.cc",
  32. "browser/browser_main_parts.h",
  33. "browser/browser_main_parts_mac.mm",
  34. "browser/devtools_manager_delegate.cc",
  35. "browser/devtools_manager_delegate.h",
  36. "browser/devtools_ui.cc",
  37. "browser/devtools_ui.h",
  38. "browser/inspectable_web_contents.cc",
  39. "browser/inspectable_web_contents.h",
  40. "browser/inspectable_web_contents_delegate.h",
  41. "browser/inspectable_web_contents_impl.cc",
  42. "browser/inspectable_web_contents_impl.h",
  43. "browser/inspectable_web_contents_view.h",
  44. "browser/inspectable_web_contents_view_delegate.cc",
  45. "browser/inspectable_web_contents_view_delegate.h",
  46. "browser/inspectable_web_contents_view_mac.h",
  47. "browser/inspectable_web_contents_view_mac.mm",
  48. "browser/linux/libnotify_loader.cc",
  49. "browser/linux/libnotify_loader.h",
  50. "browser/linux/libnotify_notification.cc",
  51. "browser/linux/libnotify_notification.h",
  52. "browser/linux/notification_presenter_linux.cc",
  53. "browser/linux/notification_presenter_linux.h",
  54. "browser/mac/bry_inspectable_web_contents_view.h",
  55. "browser/mac/bry_inspectable_web_contents_view.mm",
  56. "browser/mac/cocoa_notification.h",
  57. "browser/mac/cocoa_notification.mm",
  58. "browser/mac/event_dispatching_window.h",
  59. "browser/mac/event_dispatching_window.mm",
  60. "browser/mac/notification_center_delegate.h",
  61. "browser/mac/notification_center_delegate.mm",
  62. "browser/mac/notification_presenter_mac.h",
  63. "browser/mac/notification_presenter_mac.mm",
  64. "browser/media/media_capture_devices_dispatcher.cc",
  65. "browser/media/media_capture_devices_dispatcher.h",
  66. "browser/media/media_device_id_salt.cc",
  67. "browser/media/media_device_id_salt.h",
  68. "browser/media/media_stream_devices_controller.cc",
  69. "browser/media/media_stream_devices_controller.h",
  70. "browser/net/require_ct_delegate.cc",
  71. "browser/net/require_ct_delegate.h",
  72. "browser/notification.cc",
  73. "browser/notification.h",
  74. "browser/notification_delegate.h",
  75. "browser/notification_presenter.cc",
  76. "browser/notification_presenter.h",
  77. "browser/platform_notification_service.cc",
  78. "browser/platform_notification_service.h",
  79. "browser/views/inspectable_web_contents_view_views.cc",
  80. "browser/views/inspectable_web_contents_view_views.h",
  81. "browser/views/views_delegate.cc",
  82. "browser/views/views_delegate.h",
  83. "browser/web_ui_controller_factory.cc",
  84. "browser/web_ui_controller_factory.h",
  85. "browser/win/notification_presenter_win.cc",
  86. "browser/win/notification_presenter_win.h",
  87. "browser/win/notification_presenter_win7.cc",
  88. "browser/win/notification_presenter_win7.h",
  89. "browser/win/scoped_hstring.cc",
  90. "browser/win/scoped_hstring.h",
  91. "browser/win/win32_desktop_notifications/common.h",
  92. "browser/win/win32_desktop_notifications/desktop_notification_controller.cc",
  93. "browser/win/win32_desktop_notifications/desktop_notification_controller.h",
  94. "browser/win/win32_desktop_notifications/toast.cc",
  95. "browser/win/win32_desktop_notifications/toast.h",
  96. "browser/win/win32_desktop_notifications/toast_uia.cc",
  97. "browser/win/win32_desktop_notifications/toast_uia.h",
  98. "browser/win/win32_notification.cc",
  99. "browser/win/win32_notification.h",
  100. "browser/win/windows_toast_notification.cc",
  101. "browser/win/windows_toast_notification.h",
  102. "browser/zoom_level_delegate.cc",
  103. "browser/zoom_level_delegate.h",
  104. "common/application_info.cc",
  105. "common/application_info.h",
  106. "common/application_info_mac.mm",
  107. "common/application_info_win.cc",
  108. "common/content_client.cc",
  109. "common/content_client.h",
  110. "common/mac/main_application_bundle.h",
  111. "common/mac/main_application_bundle.mm",
  112. "common/main_delegate.cc",
  113. "common/main_delegate.h",
  114. "common/main_delegate_mac.mm",
  115. "common/platform_util.h",
  116. "common/platform_util_linux.cc",
  117. ]
  118. set_sources_assignment_filter(sources_assignment_filter)
  119. sources += [
  120. "//chrome/browser/devtools/devtools_contents_resizing_strategy.cc",
  121. "//chrome/browser/devtools/devtools_contents_resizing_strategy.h",
  122. "//chrome/browser/devtools/devtools_embedder_message_dispatcher.cc",
  123. "//chrome/browser/devtools/devtools_embedder_message_dispatcher.h",
  124. "//chrome/browser/devtools/devtools_file_system_indexer.cc",
  125. "//chrome/browser/devtools/devtools_file_system_indexer.h",
  126. ]
  127. }