Add ninja mode to aidl and aidl-cpp

Ninja only somewhat understands makefile syntax for depfiles. The
current depfiles were causing duplicates dependencies, and for aidl-cpp,
dependencies from the .cc file to the .h files.

So add a '-ninja' flag that simplifies the dep file format into
something ninja understands (and is smaller).

Test: out/host/linux-x86/nativetest64/aidl_unittests/aidl_unittests
Test: mmma -j system/tools/aidl; check .ninja_deps file
Change-Id: Iddeded84b939597f2924ff68d40e4c15847f0b72
5 files changed