forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.gn
63 lines (54 loc) · 1.43 KB
/
BUILD.gn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# 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_base.cc",
"platform_window_base.h",
"platform_window_delegate.h",
"platform_window_delegate_base.cc",
"platform_window_delegate_base.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:scenic_cpp",
"//third_party/fuchsia-sdk/sdk:sys_cpp",
"//third_party/fuchsia-sdk/sdk:ui_policy",
"//third_party/fuchsia-sdk/sdk:ui_views",
]
}
if (is_linux) {
sources += [
"platform_window_delegate_linux.cc",
"platform_window_delegate_linux.h",
"platform_window_linux.cc",
"platform_window_linux.h",
]
}
if (is_win) {
sources += [ "platform_window_win.h" ]
}
}
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" ]
}
}