BUILD.gn 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815
  1. # Copyright 2015 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/ozone.gni")
  6. import("//build/config/ui.gni")
  7. import("//components/exo/buildflags.gni")
  8. import("//gpu/vulkan/features.gni")
  9. import("//testing/test.gni")
  10. import("//ui/base/ui_features.gni")
  11. source_set("wayland") {
  12. sources = [
  13. "overlay_prioritizer.cc",
  14. "overlay_prioritizer.h",
  15. "scoped_wl.cc",
  16. "scoped_wl.h",
  17. "serial_tracker.cc",
  18. "serial_tracker.h",
  19. "server.cc",
  20. "server.h",
  21. "server_util.cc",
  22. "server_util.h",
  23. "surface_augmenter.cc",
  24. "surface_augmenter.h",
  25. "wayland_display_observer.cc",
  26. "wayland_display_observer.h",
  27. "wayland_display_output.cc",
  28. "wayland_display_output.h",
  29. "wayland_display_util.cc",
  30. "wayland_display_util.h",
  31. "wayland_input_delegate.cc",
  32. "wayland_input_delegate.h",
  33. "wayland_pointer_delegate.cc",
  34. "wayland_pointer_delegate.h",
  35. "wayland_touch_delegate.cc",
  36. "wayland_touch_delegate.h",
  37. "wayland_watcher.cc",
  38. "wl_compositor.cc",
  39. "wl_compositor.h",
  40. "wl_data_device_manager.cc",
  41. "wl_data_device_manager.h",
  42. "wl_output.cc",
  43. "wl_output.h",
  44. "wl_seat.cc",
  45. "wl_seat.h",
  46. "wl_shm.cc",
  47. "wl_shm.h",
  48. "wl_subcompositor.cc",
  49. "wl_subcompositor.h",
  50. "wp_presentation.cc",
  51. "wp_presentation.h",
  52. "wp_viewporter.cc",
  53. "wp_viewporter.h",
  54. "zaura_shell.cc",
  55. "zaura_shell.h",
  56. "zcr_alpha_compositing.cc",
  57. "zcr_alpha_compositing.h",
  58. "zcr_secure_output.cc",
  59. "zcr_secure_output.h",
  60. "zcr_stylus.cc",
  61. "zcr_stylus.h",
  62. "zcr_vsync_feedback.cc",
  63. "zcr_vsync_feedback.h",
  64. "zwp_linux_explicit_synchronization.cc",
  65. "zwp_linux_explicit_synchronization.h",
  66. ]
  67. defines = [ "EXO_IMPLEMENTATION" ]
  68. deps = [
  69. "//base",
  70. "//build:chromeos_buildflags",
  71. "//components/exo",
  72. "//components/exo:buildflags",
  73. "//components/exo/wayland/protocol:aura_shell_protocol",
  74. "//components/exo/wayland/protocol:chrome_color_management_protocol",
  75. "//components/exo/wayland/protocol:overlay_prioritizer_protocol",
  76. "//components/exo/wayland/protocol:surface_augmenter_protocol",
  77. "//device/gamepad",
  78. "//services/viz/privileged/mojom/compositing",
  79. "//services/viz/public/mojom",
  80. "//skia",
  81. "//third_party/libsync",
  82. "//third_party/wayland:wayland_server",
  83. "//third_party/wayland-protocols:alpha_compositing_protocol",
  84. "//third_party/wayland-protocols:cursor_shapes_protocol",
  85. "//third_party/wayland-protocols:extended_drag",
  86. "//third_party/wayland-protocols:gaming_input_protocol",
  87. "//third_party/wayland-protocols:input_timestamps_protocol",
  88. "//third_party/wayland-protocols:keyboard_configuration_protocol",
  89. "//third_party/wayland-protocols:keyboard_extension_protocol",
  90. "//third_party/wayland-protocols:keyboard_shortcuts_inhibit_protocol",
  91. "//third_party/wayland-protocols:linux_explicit_synchronization_protocol",
  92. "//third_party/wayland-protocols:notification_shell_protocol",
  93. "//third_party/wayland-protocols:pointer_constraints_protocol",
  94. "//third_party/wayland-protocols:pointer_gestures_protocol",
  95. "//third_party/wayland-protocols:presentation_time_protocol",
  96. "//third_party/wayland-protocols:relative_pointer_protocol",
  97. "//third_party/wayland-protocols:remote_shell_protocol",
  98. "//third_party/wayland-protocols:secure_output_protocol",
  99. "//third_party/wayland-protocols:stylus_protocol",
  100. "//third_party/wayland-protocols:stylus_tools_protocol",
  101. "//third_party/wayland-protocols:text_input_extension_protocol",
  102. "//third_party/wayland-protocols:text_input_protocol",
  103. "//third_party/wayland-protocols:touchpad_haptics_protocol",
  104. "//third_party/wayland-protocols:viewporter_protocol",
  105. "//third_party/wayland-protocols:vsync_feedback_protocol",
  106. "//third_party/wayland-protocols:xdg_decoration_protocol",
  107. "//third_party/wayland-protocols:xdg_output_protocol",
  108. "//third_party/wayland-protocols:xdg_shell_protocol",
  109. "//ui/aura",
  110. "//ui/base",
  111. "//ui/base/dragdrop/mojom:mojom_shared",
  112. "//ui/display/manager",
  113. "//ui/events:dom_keycode_converter",
  114. "//ui/events:events_base",
  115. "//ui/events/devices:devices",
  116. "//ui/views",
  117. "//ui/wm:wm",
  118. "//ui/wm/public",
  119. ]
  120. if (use_ozone) {
  121. sources += [
  122. "zwp_linux_dmabuf.cc",
  123. "zwp_linux_dmabuf.h",
  124. ]
  125. deps += [
  126. "//build/config/linux/libdrm",
  127. "//third_party/wayland-protocols:linux_dmabuf_protocol",
  128. "//ui/ozone",
  129. ]
  130. if (is_chromeos_ash) {
  131. deps += [
  132. "//ash",
  133. "//ash/public/cpp",
  134. "//chromeos/ui/base",
  135. ]
  136. }
  137. }
  138. if (use_xkbcommon) {
  139. deps += [ "//ui/events/keycodes:xkb" ]
  140. }
  141. if (is_chromeos_ash) {
  142. sources += [
  143. "wayland_keyboard_delegate.cc",
  144. "wayland_keyboard_delegate.h",
  145. "wayland_positioner.cc",
  146. "wayland_positioner.h",
  147. "weston_test.h",
  148. "wl_shell.cc",
  149. "wl_shell.h",
  150. "xdg_shell.cc",
  151. "xdg_shell.h",
  152. "zcr_cursor_shapes.cc",
  153. "zcr_cursor_shapes.h",
  154. "zcr_extended_drag.cc",
  155. "zcr_extended_drag.h",
  156. "zcr_gaming_input.cc",
  157. "zcr_gaming_input.h",
  158. "zcr_keyboard_configuration.cc",
  159. "zcr_keyboard_configuration.h",
  160. "zcr_keyboard_extension.cc",
  161. "zcr_keyboard_extension.h",
  162. "zcr_notification_shell.cc",
  163. "zcr_notification_shell.h",
  164. "zcr_remote_shell.cc",
  165. "zcr_remote_shell.h",
  166. "zcr_remote_shell_event_mapping.h",
  167. "zcr_remote_shell_impl.cc",
  168. "zcr_remote_shell_impl.h",
  169. "zcr_remote_shell_v2.cc",
  170. "zcr_remote_shell_v2.h",
  171. "zcr_stylus_tools.cc",
  172. "zcr_stylus_tools.h",
  173. "zcr_touchpad_haptics.cc",
  174. "zcr_touchpad_haptics.h",
  175. "zwp_idle_inhibit_manager.cc",
  176. "zwp_idle_inhibit_manager.h",
  177. "zwp_input_timestamps_manager.cc",
  178. "zwp_input_timestamps_manager.h",
  179. "zwp_keyboard_shortcuts_inhibit_manager.cc",
  180. "zwp_keyboard_shortcuts_inhibit_manager.h",
  181. "zwp_pointer_constraints.cc",
  182. "zwp_pointer_constraints.h",
  183. "zwp_pointer_gestures.cc",
  184. "zwp_pointer_gestures.h",
  185. "zwp_relative_pointer_manager.cc",
  186. "zwp_relative_pointer_manager.h",
  187. "zwp_text_input_manager.cc",
  188. "zwp_text_input_manager.h",
  189. "zxdg_decoration_manager.h",
  190. "zxdg_output_manager.cc",
  191. "zxdg_output_manager.h",
  192. "zxdg_shell.cc",
  193. "zxdg_shell.h",
  194. ]
  195. if (enable_color_manager) {
  196. deps += [
  197. "//ash:ash",
  198. "//components/exo/wayland/protocol:chrome_color_management_protocol",
  199. "//ui/base/wayland:color_manager_util",
  200. ]
  201. sources += [
  202. "zcr_color_manager.cc",
  203. "zcr_color_manager.h",
  204. ]
  205. }
  206. deps += [
  207. "//services/device/public/mojom",
  208. "//services/device/wake_lock/power_save_blocker",
  209. "//third_party/wayland-protocols:idle_inhibit_protocol",
  210. "//ui/base/cursor/mojom:cursor_type",
  211. "//ui/base/wayland:wayland_server_input_types",
  212. "//ui/events/ozone/layout",
  213. ]
  214. }
  215. }
  216. static_library("weston_test") {
  217. testonly = true
  218. defines = [ "WESTON_TEST_IMPLEMENTATION" ]
  219. deps = [
  220. ":wayland",
  221. "//base",
  222. "//components/exo",
  223. "//third_party/wayland:wayland_server",
  224. "//third_party/wayland-protocols:weston_test",
  225. "//ui/base:test_support",
  226. "//ui/compositor",
  227. "//ui/wm",
  228. ]
  229. sources = [ "weston_test.cc" ]
  230. if (is_chromeos_ash) {
  231. deps += [ "//ash" ]
  232. }
  233. }
  234. static_library("weston_test_stub") {
  235. testonly = false
  236. defines = [ "WESTON_TEST_IMPLEMENTATION" ]
  237. sources = [ "weston_test_stub.cc" ]
  238. deps = [ ":wayland" ]
  239. }
  240. source_set("unit_tests") {
  241. testonly = true
  242. sources = [
  243. "server_unittest.cc",
  244. "test/wayland_server_test_base.cc",
  245. "test/wayland_server_test_base.h",
  246. ]
  247. deps = [
  248. ":wayland",
  249. "//base",
  250. "//base/test:test_support",
  251. "//build:chromeos_buildflags",
  252. "//components/exo",
  253. "//components/exo:test_support",
  254. "//components/exo/wayland/fuzzer:unit_tests",
  255. "//components/exo/wayland/protocol:aura_shell_protocol",
  256. "//components/exo/wayland/protocol:overlay_prioritizer_protocol",
  257. "//components/exo/wayland/protocol:surface_augmenter_protocol",
  258. "//skia",
  259. "//testing/gmock",
  260. "//testing/gtest",
  261. "//third_party/wayland:wayland_client",
  262. ]
  263. if (is_chromeos_ash) {
  264. sources += [
  265. "wayland_display_observer_unittest.cc",
  266. "wayland_display_util_unittest.cc",
  267. "wayland_keyboard_delegate_unittest.cc",
  268. "wayland_positioner_unittest.cc",
  269. "zaura_shell_unittest.cc",
  270. "zcr_remote_shell_impl_unittest.cc",
  271. "zcr_remote_shell_unittest.cc",
  272. ]
  273. deps += [
  274. "//ash",
  275. "//ash:test_support",
  276. "//ash/public/cpp",
  277. "//third_party/wayland-protocols:remote_shell_protocol",
  278. "//third_party/wayland-protocols:xdg_output_protocol",
  279. "//third_party/wayland-protocols:xdg_shell_protocol",
  280. "//ui/compositor",
  281. "//ui/compositor:test_support",
  282. "//ui/display",
  283. "//ui/gfx",
  284. "//ui/wm/public",
  285. ]
  286. }
  287. }
  288. config("client_support_config") {
  289. if (ozone_platform_drm) {
  290. defines = [ "USE_GBM" ]
  291. if (enable_vulkan) {
  292. defines += [ "USE_VULKAN" ]
  293. }
  294. }
  295. }
  296. source_set("client_support") {
  297. sources = [
  298. "clients/client_base.cc",
  299. "clients/client_base.h",
  300. "clients/client_helper.cc",
  301. "clients/client_helper.h",
  302. ]
  303. deps = [
  304. "//base",
  305. "//gpu/vulkan:vulkan",
  306. "//gpu/vulkan/init:init",
  307. "//ui/gl",
  308. "//ui/gl/init",
  309. ]
  310. public_deps = [
  311. "//components/exo/wayland/protocol:aura_shell_protocol",
  312. "//components/exo/wayland/protocol:chrome_color_management_protocol",
  313. "//components/exo/wayland/protocol:overlay_prioritizer_protocol",
  314. "//components/exo/wayland/protocol:surface_augmenter_protocol",
  315. "//skia",
  316. "//third_party/wayland:wayland_client",
  317. "//third_party/wayland-protocols:alpha_compositing_protocol",
  318. "//third_party/wayland-protocols:cursor_shapes_protocol",
  319. "//third_party/wayland-protocols:extended_drag",
  320. "//third_party/wayland-protocols:fullscreen_shell_protocol",
  321. "//third_party/wayland-protocols:gaming_input_protocol",
  322. "//third_party/wayland-protocols:idle_inhibit_protocol",
  323. "//third_party/wayland-protocols:input_timestamps_protocol",
  324. "//third_party/wayland-protocols:keyboard_configuration_protocol",
  325. "//third_party/wayland-protocols:keyboard_extension_protocol",
  326. "//third_party/wayland-protocols:keyboard_shortcuts_inhibit_protocol",
  327. "//third_party/wayland-protocols:linux_dmabuf_protocol",
  328. "//third_party/wayland-protocols:linux_dmabuf_protocol",
  329. "//third_party/wayland-protocols:linux_explicit_synchronization_protocol",
  330. "//third_party/wayland-protocols:notification_shell_protocol",
  331. "//third_party/wayland-protocols:pointer_constraints_protocol",
  332. "//third_party/wayland-protocols:pointer_gestures_protocol",
  333. "//third_party/wayland-protocols:presentation_time_protocol",
  334. "//third_party/wayland-protocols:presentation_time_protocol",
  335. "//third_party/wayland-protocols:relative_pointer_protocol",
  336. "//third_party/wayland-protocols:remote_shell_protocol",
  337. "//third_party/wayland-protocols:secure_output_protocol",
  338. "//third_party/wayland-protocols:stylus_protocol",
  339. "//third_party/wayland-protocols:stylus_tools_protocol",
  340. "//third_party/wayland-protocols:text_input_extension_protocol",
  341. "//third_party/wayland-protocols:text_input_protocol",
  342. "//third_party/wayland-protocols:touchpad_haptics_protocol",
  343. "//third_party/wayland-protocols:viewporter_protocol",
  344. "//third_party/wayland-protocols:vsync_feedback_protocol",
  345. "//third_party/wayland-protocols:vsync_feedback_protocol",
  346. "//third_party/wayland-protocols:weston_test",
  347. "//third_party/wayland-protocols:xdg_decoration_protocol",
  348. "//third_party/wayland-protocols:xdg_output_protocol",
  349. "//third_party/wayland-protocols:xdg_shell_protocol",
  350. ]
  351. if (ozone_platform_drm) {
  352. configs += [ "//ui/gl:gl_config" ]
  353. deps += [
  354. "//build/config/linux/libdrm",
  355. "//ui/ozone",
  356. ]
  357. public_deps += [ "//third_party/minigbm" ]
  358. }
  359. public_configs = [ ":client_support_config" ]
  360. }
  361. executable("wayland_rects_client") {
  362. sources = [ "clients/rects.cc" ]
  363. deps = [
  364. ":client_support",
  365. "//base",
  366. "//skia",
  367. "//third_party/wayland:wayland_client",
  368. "//third_party/wayland-protocols:input_timestamps_protocol",
  369. "//third_party/wayland-protocols:linux_dmabuf_protocol",
  370. "//third_party/wayland-protocols:presentation_time_protocol",
  371. "//ui/gfx/geometry",
  372. "//ui/gl",
  373. ]
  374. if (ozone_platform_drm) {
  375. configs += [ "//ui/gl:gl_config" ]
  376. defines = [ "USE_GBM" ]
  377. deps += [
  378. "//build/config/linux/libdrm",
  379. "//third_party/minigbm",
  380. ]
  381. }
  382. }
  383. source_set("simple") {
  384. sources = [
  385. "clients/simple.cc",
  386. "clients/simple.h",
  387. ]
  388. deps = [
  389. ":client_support",
  390. "//base",
  391. "//build/config/linux/libdrm",
  392. "//skia",
  393. "//third_party/wayland:wayland_client",
  394. "//third_party/wayland-protocols:linux_dmabuf_protocol",
  395. "//third_party/wayland-protocols:presentation_time_protocol",
  396. "//third_party/wayland-protocols:vsync_feedback_protocol",
  397. "//ui/gfx/geometry",
  398. "//ui/gl",
  399. ]
  400. if (ozone_platform_drm) {
  401. configs += [ "//ui/gl:gl_config" ]
  402. }
  403. }
  404. source_set("client_version_test") {
  405. sources = [
  406. "clients/test/client_version_test.cc",
  407. "clients/test/client_version_test.h",
  408. ]
  409. deps = [
  410. ":client_support",
  411. "//base",
  412. "//third_party/wayland:wayland_client",
  413. ]
  414. public_deps = []
  415. if (ozone_platform_drm) {
  416. configs += [ "//ui/gl:gl_config" ]
  417. }
  418. }
  419. source_set("fullscreen_shell") {
  420. sources = [
  421. "clients/fullscreen_shell.cc",
  422. "clients/fullscreen_shell.h",
  423. ]
  424. deps = [
  425. ":client_support",
  426. "//base",
  427. "//build/config/linux/libdrm",
  428. "//skia",
  429. "//third_party/wayland:wayland_client",
  430. "//third_party/wayland-protocols:linux_dmabuf_protocol",
  431. "//third_party/wayland-protocols:presentation_time_protocol",
  432. "//ui/gfx/geometry",
  433. "//ui/gl",
  434. ]
  435. if (ozone_platform_drm) {
  436. configs += [ "//ui/gl:gl_config" ]
  437. }
  438. }
  439. executable("wayland_simple_client") {
  440. sources = [ "clients/simple_main.cc" ]
  441. deps = [
  442. ":client_support",
  443. ":simple",
  444. "//base",
  445. ]
  446. }
  447. executable("wayland_client_version_binding") {
  448. sources = [ "clients/test/client_version_binding_main.cc" ]
  449. deps = [
  450. ":client_support",
  451. ":client_version_test",
  452. "//base",
  453. ]
  454. }
  455. executable("wayland_fullscreen_client") {
  456. sources = [ "clients/fullscreen_shell_main.cc" ]
  457. deps = [
  458. ":client_support",
  459. ":fullscreen_shell",
  460. "//base",
  461. ]
  462. }
  463. executable("wayland_subsurface_client") {
  464. sources = [ "clients/subsurface.cc" ]
  465. deps = [
  466. ":client_support",
  467. "//base",
  468. "//build/config/linux/libdrm",
  469. "//skia",
  470. "//third_party/wayland:wayland_client",
  471. "//third_party/wayland-protocols:linux_dmabuf_protocol",
  472. "//third_party/wayland-protocols:presentation_time_protocol",
  473. "//ui/gfx/geometry",
  474. "//ui/gl",
  475. ]
  476. if (ozone_platform_drm) {
  477. configs += [ "//ui/gl:gl_config" ]
  478. }
  479. }
  480. source_set("blur") {
  481. sources = [
  482. "clients/blur.cc",
  483. "clients/blur.h",
  484. ]
  485. deps = [
  486. ":client_support",
  487. "//base",
  488. "//build/config/linux/libdrm",
  489. "//skia",
  490. "//third_party/wayland:wayland_client",
  491. "//ui/gfx/geometry",
  492. "//ui/gl",
  493. ]
  494. if (ozone_platform_drm) {
  495. configs += [ "//ui/gl:gl_config" ]
  496. }
  497. }
  498. executable("wayland_blur_client") {
  499. sources = [ "clients/blur_main.cc" ]
  500. deps = [
  501. ":blur",
  502. ":client_support",
  503. "//base",
  504. ]
  505. }
  506. executable("wayland_info_client") {
  507. sources = [ "clients/info.cc" ]
  508. deps = [
  509. ":client_support",
  510. "//base",
  511. "//third_party/wayland:wayland_client",
  512. "//ui/gfx/geometry",
  513. ]
  514. }
  515. source_set("wayland_client_test_helper") {
  516. testonly = true
  517. sources = [
  518. "clients/test/wayland_client_test.cc",
  519. "clients/test/wayland_client_test.h",
  520. "clients/test/wayland_client_test_helper.cc",
  521. "clients/test/wayland_client_test_helper.h",
  522. "clients/test/wayland_client_test_server.cc",
  523. "clients/test/wayland_client_test_server.h",
  524. ]
  525. deps = [
  526. ":wayland",
  527. "//base",
  528. "//base/test:test_support",
  529. "//cc:test_support",
  530. "//components/exo",
  531. "//components/exo/wayland",
  532. "//components/viz/test:test_support",
  533. "//mojo/core/embedder",
  534. "//testing/gtest",
  535. "//ui/aura",
  536. "//ui/aura:test_support",
  537. "//ui/events:gesture_detection",
  538. "//ui/wm",
  539. ]
  540. data_deps = []
  541. if (is_chromeos_ash) {
  542. deps += [
  543. "//ash",
  544. "//ash:test_support",
  545. "//ash/public/cpp",
  546. ]
  547. }
  548. }
  549. test("wayland_client_tests") {
  550. testonly = true
  551. use_xvfb = use_xvfb_in_this_config
  552. sources = [
  553. "clients/interface_binding_test.cc",
  554. "clients/security_delegate_binding_test.cc",
  555. "clients/test/run_all_client_tests.cc",
  556. ]
  557. deps = [
  558. ":client_support",
  559. ":client_version_test",
  560. ":wayland_client_test_helper",
  561. "//components/exo",
  562. "//components/exo/wayland",
  563. "//ui/base",
  564. "//ui/color:color",
  565. "//ui/gl:test_support",
  566. ]
  567. data_deps = []
  568. if (is_chromeos_ash) {
  569. sources += [
  570. "../../../ash/test/ash_test_suite.cc",
  571. "../../../ash/test/ash_test_suite.h",
  572. ]
  573. data_deps += [
  574. "//ash/resources:ash_test_resources_100_percent",
  575. "//ash/resources:ash_test_resources_200_percent",
  576. "//ash/strings:ash_test_strings",
  577. ]
  578. deps += [
  579. "//ash:test_support",
  580. "//base/test:test_support",
  581. ]
  582. }
  583. }
  584. test("wayland_client_perftests") {
  585. use_xvfb = use_xvfb_in_this_config
  586. sources = [
  587. "clients/perftests.cc",
  588. "clients/test/run_all_client_tests.cc",
  589. ]
  590. deps = [
  591. ":blur",
  592. ":client_support",
  593. ":client_version_test",
  594. ":simple",
  595. ":wayland_client_test_helper",
  596. "//base/test:test_support",
  597. "//cc:test_support",
  598. "//components/viz/test:test_support",
  599. "//mojo/core/embedder",
  600. "//testing/gtest",
  601. "//testing/perf",
  602. "//ui/aura:test_support",
  603. "//ui/base",
  604. "//ui/color:color",
  605. "//ui/compositor:test_support",
  606. "//ui/gl:test_support",
  607. ]
  608. data_deps = []
  609. if (is_chromeos_ash) {
  610. sources += [
  611. "../../../ash/test/ash_test_suite.cc",
  612. "../../../ash/test/ash_test_suite.h",
  613. ]
  614. data_deps += [
  615. "//ash/resources:ash_test_resources_100_percent",
  616. "//ash/resources:ash_test_resources_200_percent",
  617. "//ash/strings:ash_test_strings",
  618. ]
  619. deps += [ "//ash:test_support" ]
  620. }
  621. }
  622. test("wayland_client_compatibility_tests") {
  623. testonly = true
  624. sources = [
  625. "compatibility_test/client_compatibility_test.cc",
  626. "compatibility_test/client_compatibility_test.h",
  627. "compatibility_test/client_compatibility_test_server.cc",
  628. "compatibility_test/wayland_client_event_receiver_version_fixtures.h",
  629. "compatibility_test/wayland_client_event_recorder.cc",
  630. "compatibility_test/wayland_client_event_recorder.h",
  631. "compatibility_test/wayland_client_registry.cc",
  632. "compatibility_test/wayland_client_registry.h",
  633. ]
  634. deps = [
  635. ":wayland",
  636. ":wayland_client_test_helper",
  637. "//base",
  638. "//base/test:test_support",
  639. "//components/exo/wayland/compatibility_test",
  640. "//components/exo/wayland/compatibility_test:generated_client_helper_headers",
  641. "//components/viz/test:test_support",
  642. "//mojo/core/embedder:embedder",
  643. "//ui/color:color",
  644. "//ui/gl:test_support",
  645. ]
  646. if (is_chromeos_ash) {
  647. deps += [ "//ash:test_support" ]
  648. }
  649. data_deps = []
  650. }
  651. if (ozone_platform_drm) {
  652. test("wayland_client_integration_tests") {
  653. sources = [
  654. "test/integration/buffer_checker_test.cc",
  655. "test/integration/wayland_client_integration_tests_main.cc",
  656. ]
  657. deps = [
  658. ":client_support",
  659. "//base",
  660. "//base/test:test_support",
  661. "//build/config/linux/libdrm",
  662. "//ui/gfx:gfx",
  663. "//ui/gfx/linux:drm",
  664. "//ui/gfx/linux:gbm",
  665. "//ui/gl",
  666. ]
  667. }
  668. executable("wayland_yuv_client") {
  669. sources = [ "clients/yuv.cc" ]
  670. deps = [
  671. ":client_support",
  672. "//base",
  673. "//build/config/linux/libdrm",
  674. "//skia",
  675. "//third_party/wayland:wayland_client",
  676. "//third_party/wayland-protocols:linux_dmabuf_protocol",
  677. "//third_party/wayland-protocols:presentation_time_protocol",
  678. "//ui/gfx/geometry",
  679. ]
  680. configs += [ "//ui/gl:gl_config" ]
  681. deps += [ "//third_party/minigbm" ]
  682. }
  683. executable("wayland_hdr_client") {
  684. sources = [ "clients/hdr.cc" ]
  685. deps = [
  686. ":client_support",
  687. "//base",
  688. "//build/config/linux/libdrm",
  689. "//components/exo/wayland/protocol:chrome_color_management_protocol",
  690. "//skia",
  691. "//third_party/wayland:wayland_client",
  692. "//third_party/wayland-protocols:linux_dmabuf_protocol",
  693. "//third_party/wayland-protocols:presentation_time_protocol",
  694. "//ui/gfx/geometry",
  695. ]
  696. configs += [ "//ui/gl:gl_config" ]
  697. deps += [ "//third_party/minigbm" ]
  698. }
  699. executable("wayland_explicit_synchronization_client") {
  700. sources = [ "clients/explicit_synchronization.cc" ]
  701. deps = [
  702. ":client_support",
  703. "//base",
  704. "//build/config/linux/libdrm",
  705. "//skia",
  706. "//third_party/wayland:wayland_client",
  707. "//third_party/wayland-protocols:linux_explicit_synchronization_protocol",
  708. "//ui/gl",
  709. ]
  710. configs += [ "//ui/gl:gl_config" ]
  711. }
  712. if (enable_vulkan) {
  713. executable("wayland_vulkan_client") {
  714. sources = [ "clients/vulkan.cc" ]
  715. deps = [
  716. ":client_support",
  717. "//base",
  718. "//build/config/linux/libdrm",
  719. "//gpu/vulkan/init",
  720. "//skia",
  721. "//third_party/wayland:wayland_client",
  722. "//third_party/wayland-protocols:linux_dmabuf_protocol",
  723. "//third_party/wayland-protocols:presentation_time_protocol",
  724. "//ui/gfx/geometry",
  725. ]
  726. configs += [ "//ui/gl:gl_config" ]
  727. deps += [ "//third_party/minigbm" ]
  728. }
  729. }
  730. }