Step 1: Modify the module-level adle file to reference a configuration script This section walks through the steps to use a custom C/C++ build configuration script from AGP. How to modify your build to use a custom C/C++ build configuration script Note: This feature requires the generation of a Ninja representation of the build. Use Android Studio debuggers to debug native and mixed processes. When configured correctly, an AGP project with an integrated C/C++ project system generator enables users to:īuild from command-line and Android Studio.Įdit sources with full language service support (for example, go-to definition) in Android Studio. These types of project generators either support Ninja as a backend representation of the C/C++ build or can be adapted to generate Ninja as a backend representation. While CMake is directly supported by AGP, there are other project generators available that aren't directly supported: CMake can generate projects for Android, iOS, and other platforms from a single underlying representation, saved in the CMakeLists.txt file. OverviewĪ common pattern for C/C++ projects, especially those that target multiple platforms, is to generate projects for each of those platforms from some underlying representation.Ī prominent example of this pattern is CMake. This feature is available starting in Android Studio Dolphin | 2021.3.1 Canary 4. Caution: Experimental APIs can change in the future or may be removed entirely.Įxperimental support for custom C/C++ build systems has been added to Android Studio and AGP. If you do not use CMake or ndk-build but want full integration of the Android Gradle plugin (AGP) C/C++ build and Android Studio, you can create a custom C/C++ build system by making a shell script that writes build information in the Ninja build file format.
0 Comments
Leave a Reply. |