Fix builds with readonly source directories

The source directory should not be written to. So instead of writing to
a local file, then copying it to the output headers, generate it
directly to the output header directory.

This really should be using LOCAL_EXPORT_C_INCLUDE_DIRS instead of using
copy headers, but that's a much larger change.

Change-Id: I6d6a542459e587224fb7bc469a332addc8893436
(cherry picked from commit b9e665199e029e9e34341ad7f22d4ce156e6cb79)

BUG: 29566132
1 file changed