Make Chromium GN builds discover the JNI bindings.

This will cause Chromium builders to generate these files, which will
then show up in code search (which is pretty convenient).

Fixed: 347699674
Change-Id: I8d838a5ce94246349ea301325980cd9b9d3507e1
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/197640
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
diff --git a/src/dawn/BUILD.gn b/src/dawn/BUILD.gn
index 9ccd66f..f7f2cf4 100644
--- a/src/dawn/BUILD.gn
+++ b/src/dawn/BUILD.gn
@@ -73,3 +73,10 @@
   target = "webgpu_headers"
   outputs = [ "webgpu-headers/webgpu.h" ]
 }
+
+###############################################################################
+# Generated files to expose WebGPU Kotlin bindings
+###############################################################################
+group("proxy_for_jni") {
+  deps = [ "${dawn_root}/tools/android" ]
+}
diff --git a/tools/android/BUILD.gn b/tools/android/BUILD.gn
index f83860e..e9017be 100644
--- a/tools/android/BUILD.gn
+++ b/tools/android/BUILD.gn
@@ -25,7 +25,9 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-import("//generator/dawn_generator.gni")
+import("../../scripts/dawn_overrides_with_defaults.gni")
+
+import("${dawn_root}/generator/dawn_generator.gni")
 
 dawn_json_generator("kotlin_gen") {
   target = "kotlin"