gn2bp: remove crbug config dependency from jni_registration_generator
This is pretty hacky, let's see if we end up finding a better solution.
Test: //components/cronet/android:cronet
Change-Id: I4bdc13fef18cad9741a646d86c58e009e4fb3fb5
diff --git a/tools/gn2bp/gen_android_bp b/tools/gn2bp/gen_android_bp
index 6f755ca..1157737 100755
--- a/tools/gn2bp/gen_android_bp
+++ b/tools/gn2bp/gen_android_bp
@@ -803,6 +803,12 @@
# fix target.output directory to match #include statements.
target.outputs = [re.sub('^jni_headers/', '', out) for out in target.outputs]
+ elif target.script == '//base/android/jni_generator/jni_registration_generator.py':
+ # jni_registration_generator.py pulls in some config dependencies that we
+ # do not handle. Remove them.
+ # TODO: find a better way to do this.
+ target.deps.clear()
+
elif target.script == '//build/android/gyp/write_build_config.py':
for i, val in enumerate(target.args):
if val == '--depfile':