blob: 4a96342b2ec3a912e19a0c42139a079f4739e4ec [file] [log] [blame]
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/ui.gni")
component("platform_window") {
sources = [
"platform_window.cc",
"platform_window.h",
"platform_window_delegate.cc",
"platform_window_delegate.h",
"platform_window_init_properties.cc",
"platform_window_init_properties.h",
]
defines = [ "IS_PLATFORM_WINDOW_IMPL" ]
deps = [
"//base",
"//ui/base",
"//ui/gfx",
]
if (is_fuchsia) {
sources += [
"fuchsia/initialize_presenter_api_view.cc",
"fuchsia/initialize_presenter_api_view.h",
]
public_deps = [
"//third_party/fuchsia-sdk/sdk/fidl/fuchsia.ui.policy",
"//third_party/fuchsia-sdk/sdk/fidl/fuchsia.ui.views",
"//third_party/fuchsia-sdk/sdk/pkg/scenic_cpp",
"//third_party/fuchsia-sdk/sdk/pkg/sys_cpp",
]
}
}
group("platform_impls") {
public_deps = [ "//ui/platform_window/stub" ]
if (use_x11) {
public_deps += [ "//ui/platform_window/x11" ]
} else if (is_win) {
public_deps += [ "//ui/platform_window/win" ]
}
}