Add partitioned native library generation tooling

This change builds on the prototype posted by pcc@, here:

The partitioned_shared_library GN template may be used in place of
shared_library to create a set of libraries linked simultaneously.  This
will be leveraged in later changes to split code into Android dynamic
feature modules.  The current change adds the GN template for the set of
partitions, along with the Python wrapper script invoked by GN.

Bug: 921663
Change-Id: I805d598b03ae15bd4ceeb8e915526ed8b15af4cb
Reviewed-by: Peter Collingbourne <>
Reviewed-by: Andrew Grieve <>
Reviewed-by: Tibor Goldschwendt <>
Commit-Queue: Christopher Grant <>
Cr-Commit-Position: refs/heads/master@{#654117}
4 files changed