This is an optional variable that can be defined to indicate the file extension(s) of C++ source files. They must begin with a dot. The default is '.cpp' but you can change it. For example:
LOCAL_CPP_EXTENSION := .cxx
Since NDK r7, you can list several extensions in this variable, as in: