[email protected] | 8bb00ee6 | 2014-07-29 09:26:20 | [diff] [blame] | 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 | |
sadrul | 1218a59 | 2015-06-15 08:12:30 | [diff] [blame] | 5 | import("//build/config/ui.gni") |
| 6 | |
Michael Spang | fbf0a8b0f | 2019-10-31 00:37:36 | [diff] [blame^] | 7 | component("platform_window") { |
[email protected] | 8bb00ee6 | 2014-07-29 09:26:20 | [diff] [blame] | 8 | sources = [ |
Alexander Dunaev | 667947b | 2019-09-27 16:56:28 | [diff] [blame] | 9 | "platform_window_base.cc", |
| 10 | "platform_window_base.h", |
[email protected] | 8bb00ee6 | 2014-07-29 09:26:20 | [diff] [blame] | 11 | "platform_window_delegate.h", |
Maksim Sisov | f6382c2 | 2019-09-03 13:36:38 | [diff] [blame] | 12 | "platform_window_delegate_base.cc", |
| 13 | "platform_window_delegate_base.h", |
Sergey Ulanov | 915401e | 2018-06-19 06:57:18 | [diff] [blame] | 14 | "platform_window_init_properties.cc", |
Maksim Sisov | d45bfc3 | 2018-06-15 10:47:58 | [diff] [blame] | 15 | "platform_window_init_properties.h", |
scottmg | bba95ce | 2014-12-03 07:28:23 | [diff] [blame] | 16 | ] |
Brett Wilson | 5e4c24b9 | 2014-08-28 19:34:11 | [diff] [blame] | 17 | |
Michael Spang | fbf0a8b0f | 2019-10-31 00:37:36 | [diff] [blame^] | 18 | defines = [ "IS_PLATFORM_WINDOW_IMPL" ] |
| 19 | |
Brett Wilson | 5e4c24b9 | 2014-08-28 19:34:11 | [diff] [blame] | 20 | deps = [ |
| 21 | "//base", |
| 22 | "//ui/base", |
| 23 | "//ui/gfx", |
| 24 | ] |
Sergey Ulanov | 915401e | 2018-06-19 06:57:18 | [diff] [blame] | 25 | |
| 26 | if (is_fuchsia) { |
Chad Duffin | ae82dfd | 2018-11-29 01:18:09 | [diff] [blame] | 27 | sources += [ |
| 28 | "fuchsia/initialize_presenter_api_view.cc", |
| 29 | "fuchsia/initialize_presenter_api_view.h", |
| 30 | ] |
| 31 | |
Sergey Ulanov | 915401e | 2018-06-19 06:57:18 | [diff] [blame] | 32 | public_deps = [ |
Sergey Ulanov | 9529316 | 2019-03-22 18:13:51 | [diff] [blame] | 33 | "//third_party/fuchsia-sdk/sdk:scenic_cpp", |
Sharon Yang | a793925 | 2019-09-19 17:22:23 | [diff] [blame] | 34 | "//third_party/fuchsia-sdk/sdk:sys_cpp", |
Wez | 3a4d2b2 | 2018-12-12 17:55:42 | [diff] [blame] | 35 | "//third_party/fuchsia-sdk/sdk:ui_policy", |
Wez | fce5a4a8 | 2019-03-19 20:38:30 | [diff] [blame] | 36 | "//third_party/fuchsia-sdk/sdk:ui_views", |
Sergey Ulanov | 915401e | 2018-06-19 06:57:18 | [diff] [blame] | 37 | ] |
| 38 | } |
Maksim Sisov | f6382c2 | 2019-09-03 13:36:38 | [diff] [blame] | 39 | |
| 40 | if (is_linux) { |
| 41 | sources += [ |
| 42 | "platform_window_delegate_linux.cc", |
| 43 | "platform_window_delegate_linux.h", |
Alexander Dunaev | 667947b | 2019-09-27 16:56:28 | [diff] [blame] | 44 | "platform_window_linux.cc", |
| 45 | "platform_window_linux.h", |
Maksim Sisov | f6382c2 | 2019-09-03 13:36:38 | [diff] [blame] | 46 | ] |
| 47 | } |
Maksim Sisov | 0a5d813 | 2019-10-08 11:18:09 | [diff] [blame] | 48 | |
| 49 | if (is_win) { |
| 50 | sources += [ "platform_window_win.h" ] |
| 51 | } |
[email protected] | 8bb00ee6 | 2014-07-29 09:26:20 | [diff] [blame] | 52 | } |
sadrul | 1218a59 | 2015-06-15 08:12:30 | [diff] [blame] | 53 | |
sadrul | 7e36c7d | 2015-06-16 02:52:59 | [diff] [blame] | 54 | group("platform_impls") { |
brettw | 1c9c26d | 2015-10-05 18:22:56 | [diff] [blame] | 55 | public_deps = [ |
sadrul | 446a0482 | 2015-07-02 05:06:54 | [diff] [blame] | 56 | "//ui/platform_window/stub", |
| 57 | ] |
Scott Violet | d4b7003 | 2019-06-05 02:27:30 | [diff] [blame] | 58 | if (use_x11) { |
brettw | 1c9c26d | 2015-10-05 18:22:56 | [diff] [blame] | 59 | public_deps += [ "//ui/platform_window/x11" ] |
sadrul | 1218a59 | 2015-06-15 08:12:30 | [diff] [blame] | 60 | } else if (is_win) { |
brettw | 1c9c26d | 2015-10-05 18:22:56 | [diff] [blame] | 61 | public_deps += [ "//ui/platform_window/win" ] |
sadrul | 1218a59 | 2015-06-15 08:12:30 | [diff] [blame] | 62 | } |
| 63 | } |