Clean up deprecated sources assignment filter in //gpu
Remove deprecated_default_sources_assignment_filter and replace
it with explicit is_win, is_mac, etc. sections.
Bug: 1018739
Change-Id: I966303321f4d8f90504d11d9f42b0eab3cfce0bd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2440846
Reviewed-by: Kenneth Russell <[email protected]>
Commit-Queue: Sylvain Defresne <[email protected]>
Cr-Commit-Position: refs/heads/master@{#813146}
diff --git a/gpu/BUILD.gn b/gpu/BUILD.gn
index f640f16..2c913fd 100644
--- a/gpu/BUILD.gn
+++ b/gpu/BUILD.gn
@@ -8,13 +8,6 @@
import("//third_party/protobuf/proto_library.gni")
import("//ui/gl/features.gni")
-# This file depends on the legacy global sources assignment filter. It should
-# be converted to check target platform before assigning source files to the
-# sources variable. Remove this import and set_sources_assignment_filter call
-# when the file has been converted. See https://crbug.com/1018739 for details.
-import("//build/config/deprecated_default_sources_assignment_filter.gni")
-set_sources_assignment_filter(deprecated_default_sources_assignment_filter)
-
config("gpu_implementation") {
defines = [ "GPU_IMPLEMENTATION" ]
configs = [
@@ -350,7 +343,6 @@
"command_buffer/tests/gl_texture_storage_unittest.cc",
"command_buffer/tests/gl_unallocated_texture_unittest.cc",
"command_buffer/tests/gl_unittest.cc",
- "command_buffer/tests/gl_unittests_android.cc",
"command_buffer/tests/gl_virtual_contexts_ext_window_rectangles_unittest.cc",
"command_buffer/tests/gl_virtual_contexts_unittest.cc",
"command_buffer/tests/gl_webgl_multi_draw_test.cc",
@@ -362,6 +354,10 @@
"ipc/client/raster_in_process_context_tests.cc",
]
+ if (is_android) {
+ sources += [ "command_buffer/tests/gl_unittests_android.cc" ]
+ }
+
if (use_dawn) {
sources += [
"command_buffer/service/webgpu_decoder_unittest.cc",