Project Templates


A new Android project can be created using the File > New > Project menu. Normal Visual C++ projects are created and set to use a custom Nsight Tegra platform. Projects can be set to build in the Visual Studio environment or using external build files.

Many project templates are available in the Nsight Tegra category.

Android Templates

Android Application

This template creates a basic Android application that contains only Java sources. The project is created with one defined Activity.

Android Application with Native Code

This template creates a basic Android project that includes Native code. The project includes both Java and native C sources. One Activity is defined and includes a native JNI method that is implemented in the C source.

Android Native Application

This template creates a native activity application. The project does not contain Java sources and uses the NativeActivity class, http://developer.android.com/reference/android/app/NativeActivity.html.

Android Hello World Demo

This project builds a sample “Hello World” application. It includes both Java and native C sources. The Java sources make JNI calls to the C sources to obtain text that is displayed on the screen. This project will build in the Visual Studio environment.

Static Library for Android Application

This template creates a basic static native library for use in the Android applications. This project may contain only C/C++ code.

Dynamic Library for Android Application

This template creates a basic dynamic native library for use in the Android applications. This project may contain only C/C++ code.

Import Android Project

This template creates a Visual Studio project for an existing Android SDK and/or NDK project. The sources for the existing project are imported into the Visual Studio project. The template includes a wizard to specify the location of the existing project and what files should be imported into the Visual Studio project.

The configuration type for this project will be set to Make Application. It will build with ANT and the NDK tools ndk-build.cmd script.

Import an ndk-build Android Project

This template creates a Visual Studio project for an existing ndk-build Android application that uses native code and Makefile scripts (Android.mk, Application.mk) to build it. The imported project will continue to build using that script.

Android Project (External Build System)

This template creates a VC++ Makefile-like project to call external tools to build the Android project. This project allows debugging the built application as well as external APKs without the need to build them at all. It replaces the old "Debug Only" project type.

When you select this project type, you will be presented with the External Build System Project Wizard.

This allows you to set many of the options that you will later find on the Debugging Properties page.

Note that this template is not called Makefile like Microsoft’s project type, to avoid confusion with makefiles used in other Android project types which utilize the NDK. Please see standard Microsoft VC++ Makefile help for more details.

Linux Templates

Linux for Tegra Application

This template allows you to build and debug an application for the Linux for Tegra (L4T) platform.

Linux for Tegra Static Library

This template allows you to build a static library for the Linux for Tegra (L4T) platform.

Linux for Tegra Dynamic Library

This project type allows you to build an ELF shared library for the Linux for Tegra (L4T) platform.

Linux for Tegra Project (External Build System)

This project type allows you to build and debug an application for the Linux for Tegra (L4T) platform by an external build system.

 

 

 


NVIDIA® GameWorks™ Documentation Rev. 1.0.200608 ©2014-2020. NVIDIA Corporation. All Rights Reserved.