gn2bp: fix proto parsing

GnUtils and gen_android_bp already have support for proto targets.
It looks pretty generic and quite a bit more evolved than what we have
done so far.

Test: //net:net
Change-Id: I1ca0d004650b4dc5e09fae4a0f4159699b4de96b
2 files changed