Commit fb6d6a2f authored by Michael Spang's avatar Michael Spang Committed by Commit Bot

events: ozone: Prefer addition to subtraction in GN

In GYP we used to add all sources and then remove the unneeded ones.
Switch to addition which requires only listing the sources in one place.

Bug: 1026406

Change-Id: Ib085e35b59d3141e85b3265a0e849092adb9d1d5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1943369Reviewed-by: default avatarKevin Schoedel <kpschoedel@chromium.org>
Commit-Queue: Michael Spang <spang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#720294}
parent 48784c9e
...@@ -20,8 +20,6 @@ component("ozone") { ...@@ -20,8 +20,6 @@ component("ozone") {
"device/device_manager.h", "device/device_manager.h",
"device/device_manager_manual.cc", "device/device_manager_manual.cc",
"device/device_manager_manual.h", "device/device_manager_manual.h",
"device/udev/device_manager_udev.cc",
"device/udev/device_manager_udev.h",
"features.cc", "features.cc",
"features.h", "features.h",
"gamepad/gamepad_event.cc", "gamepad/gamepad_event.cc",
...@@ -44,14 +42,11 @@ component("ozone") { ...@@ -44,14 +42,11 @@ component("ozone") {
defines = [ "IS_EVENTS_OZONE_IMPL" ] defines = [ "IS_EVENTS_OZONE_IMPL" ]
if (!use_udev) { if (use_udev) {
sources -= [ sources += [
"device/udev/device_manager_udev.cc", "device/udev/device_manager_udev.cc",
"device/udev/device_manager_udev.h", "device/udev/device_manager_udev.h",
] ]
}
if (use_udev) {
deps += [ "//device/udev_linux" ] deps += [ "//device/udev_linux" ]
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment