Add native libraries to gn apks

First, change the NativeLibraries template to use preprocessor defines
instead of includes. This allows us to delete all the corresponding
headers.

Then, change the ordered libraries file to be a dict with both the list
of library paths and the java-style list of library names.

Update a bunch of things that used the ordered libraries file to instead
take the list of libraries directly as an argument (as a FileArg in
every case).

Add calculating the list of libraries to write_build_config and add it
to the build config (gn can use this then instead of a separate ordered
libraries file).

Add a simple copy step in gn to set up the native libraries directory
for an apk. Use this directory when creating the apk.

BUG=359249
NOTRY=true

Review URL: https://codereview.chromium.org/456493002

Cr-Commit-Position: refs/heads/master@{#290963}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290963 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: e7678e84abce553fe9807ad10c7ddd87622ce07f
4 files changed
tree: 50dd367512826b3d8fdfba5e4c611307faed7f7c
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/