[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 = [ |
Maksim Sisov | 08b20ec1 | 2019-11-25 13:20:58 | [diff] [blame] | 9 | "platform_window.cc", |
| 10 | "platform_window.h", |
| 11 | "platform_window_delegate.cc", |
[email protected] | 8bb00ee6 | 2014-07-29 09:26:20 | [diff] [blame] | 12 | "platform_window_delegate.h", |
Sergey Ulanov | 915401e | 2018-06-19 06:57:18 | [diff] [blame] | 13 | "platform_window_init_properties.cc", |
Maksim Sisov | d45bfc3 | 2018-06-15 10:47:58 | [diff] [blame] | 14 | "platform_window_init_properties.h", |
scottmg | bba95ce | 2014-12-03 07:28:23 | [diff] [blame] | 15 | ] |
Brett Wilson | 5e4c24b9 | 2014-08-28 19:34:11 | [diff] [blame] | 16 | |
Michael Spang | fbf0a8b0f | 2019-10-31 00:37:36 | [diff] [blame] | 17 | defines = [ "IS_PLATFORM_WINDOW_IMPL" ] |
| 18 | |
Henrique Ferreiro | b111d60 | 2020-05-21 15:47:51 | [diff] [blame] | 19 | public_deps = [ "//ui/base/cursor:cursor_base" ] |
| 20 | |
Brett Wilson | 5e4c24b9 | 2014-08-28 19:34:11 | [diff] [blame] | 21 | deps = [ |
| 22 | "//base", |
| 23 | "//ui/base", |
| 24 | "//ui/gfx", |
| 25 | ] |
Sergey Ulanov | 915401e | 2018-06-19 06:57:18 | [diff] [blame] | 26 | |
| 27 | if (is_fuchsia) { |
Chad Duffin | ae82dfd | 2018-11-29 01:18:09 | [diff] [blame] | 28 | sources += [ |
| 29 | "fuchsia/initialize_presenter_api_view.cc", |
| 30 | "fuchsia/initialize_presenter_api_view.h", |
| 31 | ] |
| 32 | |
Henrique Ferreiro | b111d60 | 2020-05-21 15:47:51 | [diff] [blame] | 33 | public_deps += [ |
Wez | 71ad6ad | 2020-02-18 14:43:13 | [diff] [blame] | 34 | "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.ui.policy", |
| 35 | "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.ui.views", |
Wez | ba21444 | 2020-02-18 15:28:50 | [diff] [blame] | 36 | "//third_party/fuchsia-sdk/sdk/pkg/scenic_cpp", |
| 37 | "//third_party/fuchsia-sdk/sdk/pkg/sys_cpp", |
Sergey Ulanov | 915401e | 2018-06-19 06:57:18 | [diff] [blame] | 38 | ] |
| 39 | } |
[email protected] | 8bb00ee6 | 2014-07-29 09:26:20 | [diff] [blame] | 40 | } |
sadrul | 1218a59 | 2015-06-15 08:12:30 | [diff] [blame] | 41 | |
sadrul | 7e36c7d | 2015-06-16 02:52:59 | [diff] [blame] | 42 | group("platform_impls") { |
Nico Weber | 74eeac7 | 2020-01-17 00:16:50 | [diff] [blame] | 43 | public_deps = [ "//ui/platform_window/stub" ] |
Scott Violet | d4b7003 | 2019-06-05 02:27:30 | [diff] [blame] | 44 | if (use_x11) { |
brettw | 1c9c26d | 2015-10-05 18:22:56 | [diff] [blame] | 45 | public_deps += [ "//ui/platform_window/x11" ] |
sadrul | 1218a59 | 2015-06-15 08:12:30 | [diff] [blame] | 46 | } else if (is_win) { |
brettw | 1c9c26d | 2015-10-05 18:22:56 | [diff] [blame] | 47 | public_deps += [ "//ui/platform_window/win" ] |
sadrul | 1218a59 | 2015-06-15 08:12:30 | [diff] [blame] | 48 | } |
| 49 | } |