commit | 2083f1694cfa9de146f36196835c9b6303a67b85 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Thu Oct 17 11:49:05 2024 -0700 |
committer | Colin Cross <ccross@android.com> | Thu Oct 17 20:42:33 2024 +0000 |
tree | e4ffd2de7a3182271fdcadebe2ca6502404a20c0 | |
parent | 10a66b3b08dcee24c48576c1e97015e4907dc6bb [diff] |
Use --sysroot when compiling against the NDK Match the NDK build by using --sysroot to point to the NDK headers rather than manually specifying the include directories with -isystem. Also remove --nostdlibinc from the global cflags so it is not used for NDK builds, and manually add it back for non-NDK builds. Bug: 374130155 Test: builds Flag: EXEMPT refactor Change-Id: I20d5605a3154bf51d64132ac1d8ea427eda32066
This is the Makefile-based portion of the Android Build System.
For documentation on how to run a build, see Usage.txt
For a list of behavioral changes useful for Android.mk writers see Changes.md
For an outdated reference on Android.mk files, see build-system.html. Our Android.mk files look similar, but are entirely different from the Android.mk files used by the NDK build system. When searching for documentation elsewhere, ensure that it is for the platform build system -- most are not.
This Makefile-based system is in the process of being replaced with Soong, a new build system written in Go. During the transition, all of these makefiles are read by Kati, and generate a ninja file instead of being executed directly. That's combined with a ninja file read by Soong so that the build graph of the two systems can be combined and run as one.