Open topic with navigation
Multi-Architecture Project Setup
To build an APK containing the shared libraries for multiple processor ABI's you will need to make the following changes to the project’s configuration:
- Make sure that the application project is referencing the required projects. Explore the content of the Project References node in Solution Explorer.
- If needed, add a project reference using the Project References dialog.
- Set the checkbox to reference another project from the same solution.
- For the application project, and all projects that are referenced by it, add the following MSBuild platforms.
- ABI-specific platforms — add one for each ABI that you need to build shared libraries for (e.g., AArch64-Android-NVIDIA).
- Tegra-Android platform — this should be configured to package the shared libraries built by the ABI-specific platforms.
- Open the Configuration Manager dialog.
- Check the solution's platforms.
- Check the individual project's platforms.
- If needed, add a new platform to the solution.
Next, configure the packaging Tegra-Android platform for all projects. Open the Project Properties dialog for a project and select the General configuration page.
Set the value of the Target Architecture project property to Multiple.
Set the value of the Platforms to Package project property to semicolon-separated list of ABI-specific platform prefixes. These ABIs end with
The same procedure should be followed for shared library projects as application projects; otherwise, not having the Tegra-Android platform set as Multiple, will result in an extra unnecessary build of your shared library.
- Finally, if you choose to only have the multi-architecture APKs (i.e., Tegra-Android) instead of additionally building platform-specific APKs, then you should ensure that the APK creation steps for the other ABIs are disabled. Depending on which Android Build System you selected on the General page, this can be found one of two ways:
- The Gradle Build page — set Skip Gradle Step to Yes.
- The Ant Build page — set Skip Ant Step to Yes.
NVIDIA® GameWorks™ Documentation Rev. 1.0.200608 ©2014-2020. NVIDIA Corporation. All Rights Reserved.