summaryrefslogtreecommitdiffstats
path: root/ui/base/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'ui/base/BUILD.gn')
-rw-r--r--ui/base/BUILD.gn29
1 files changed, 17 insertions, 12 deletions
diff --git a/ui/base/BUILD.gn b/ui/base/BUILD.gn
index 18b7bd1..bd29f55 100644
--- a/ui/base/BUILD.gn
+++ b/ui/base/BUILD.gn
@@ -251,12 +251,6 @@ component("ui_base") {
"window_open_disposition.cc",
"window_open_disposition.h",
"work_area_watcher_observer.h",
- "x/selection_owner.cc",
- "x/selection_owner.h",
- "x/selection_requestor.cc",
- "x/selection_requestor.h",
- "x/selection_utils.cc",
- "x/selection_utils.h",
"x/x11_menu_list.cc",
"x/x11_menu_list.h",
"x/x11_util.cc",
@@ -294,6 +288,17 @@ component("ui_base") {
]
}
+ if (use_x11 && use_aura) {
+ sources += [
+ "x/selection_owner.cc",
+ "x/selection_owner.h",
+ "x/selection_requestor.cc",
+ "x/selection_requestor.h",
+ "x/selection_utils.cc",
+ "x/selection_utils.h",
+ ]
+ }
+
if (use_aura) {
deps += [
"//ui/events",
@@ -303,12 +308,6 @@ component("ui_base") {
"cursor/cursor.cc",
"cursor/cursor.h",
"dragdrop/drag_utils_aura.cc",
- "x/selection_owner.cc",
- "x/selection_owner.h",
- "x/selection_requestor.cc",
- "x/selection_requestor.h",
- "x/selection_utils.cc",
- "x/selection_utils.h",
]
}
if (!use_x11) {
@@ -319,6 +318,12 @@ component("ui_base") {
]
}
+ if (!use_ozone) {
+ sources -= [
+ "touch/touch_device_ozone.cc",
+ ]
+ }
+
if (!use_aura || !is_linux) {
sources -= [
"resource/resource_bundle_auralinux.cc",