Fix webgpu_dawn exported symbols.

DEFINE_PREFIX = "WGPU"
didn't apply to sources in webgpu_dawn_native_proc_sources target,
thus they didn't compile
with WGPU_IMPLEMENTATION and WGPU_SHARED_LIBRARY defined,
so move these sources into webgpu_dawn target directly.

This also fixes MSVC component build,
which wasn't generating LIB file,
because the DLL didn't export any symbols.

Bug: 449779009
Change-Id: I0cf0ab1ca4a7a119af2d2867fb089ab4880f93a7
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/278815
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Yuly Novikov <ynovikov@chromium.org>
Auto-Submit: Yuly Novikov <ynovikov@chromium.org>
diff --git a/src/dawn/native/BUILD.gn b/src/dawn/native/BUILD.gn
index 8485a6c..2a1fe49 100644
--- a/src/dawn/native/BUILD.gn
+++ b/src/dawn/native/BUILD.gn
@@ -1050,14 +1050,6 @@
   outputs = [ "src/dawn/native/webgpu_dawn_native_proc.cpp" ]
 }
 
-source_set("webgpu_dawn_native_proc_sources") {
-  sources = get_target_outputs(":webgpu_dawn_native_proc_gen")
-  deps = [
-    ":headers",
-    ":webgpu_dawn_native_proc_gen",
-  ]
-}
-
 dawn_component("webgpu_dawn") {
   # For a single library - build `webgpu_dawn_shared` with GN args:
   #   dawn_complete_static_libs = true - to package a single lib
@@ -1075,9 +1067,11 @@
   #      It should be built separately.
   DEFINE_PREFIX = "WGPU"
   output_name = "webgpu_dawn"
+  sources = get_target_outputs(":webgpu_dawn_native_proc_gen")
 
   deps = [
+    ":headers",
     ":static",
-    ":webgpu_dawn_native_proc_sources",
+    ":webgpu_dawn_native_proc_gen",
   ]
 }