android ndk-build compile C++ to a native shared library
I'm new to android development and I have a game written in C++ the I'm trying to port.  I use bullet and I'm trying to compile a version of bullet with ndk-build.  I'm using the demos in the NDK samples folder as a guide.  I created my Android.mk file (pasted below), and put it in the bullet/jni folder.  When I compile, I get an error about a missing file that android_native_app_glue is looking for called configuration.h.  I checked the files ystem, and indeed this file does not exist.  I've heard that this can be done, but can't find a place that lists how to do it.  I've spent a few days going through the NDK docs and samples, but don't see a concrete example.  Does anyone know how to do this that can help me out?  Two other things that I should mention are that 1) I'm not using JNI, I'm going with a native activity to avoid all the JNI wrapping, and 2) I develop in a linux environment.

Here is my error message:

    Compile thumb  : android_native_app_glue <= android_native_app_glue.c
    In file included from /home/jdwieber/android-ndk-           r7/sources/android/native_app_glue/android_native_app_glue.c:25:
    /home/jdwieber/android-ndk-r7/sources/android/native_app_glue/android_native_app_glue.h:25:35:     error: android/configuration.h: No such file or directory
    /home/jdwieber/android-ndk-r7/sources/android/native_app_glue/android_native_app_glue.h:26:28: error: android/looper.h: No such file or directory
    /home/jdwieber/android-ndk-r7/sources/android/native_app_glue/android_native_app_glue.h:27:37: error: android/native_activity.h: No such file or directory
    In file included from /home/jdwieber/android-ndk-    r7/sources/android/native_app_glue/android_native_app_glue.c:25:
    /home/jdwieber/android-ndk-r7/sources/android/native_app_glue/android_native_app_glue.h:123: error: expected declaration specifiers or '...' before 'AInputEvent'
    
    ...There are hundreds of "has no member named" errors here
    
    make: *** [/home/jdwieber/android-bullet/obj/local/armeabi/objs/android_native_app_glue/android_native_app_glue.o] Error 1

Here is my Android.mk

    LOCAL_PATH := $(call my-dir)

    include $(CLEAR_VARS)

    LOCAL_MODULE           := bullet

    LOCAL_SRC_FILES        := BulletSoftBody/btSoftRigidDynamicsWorld.cpp \
		          BulletSoftBody/btSoftBodyConcaveCollisionAlgorithm.cpp \
		          BulletSoftBody/btSoftBodyRigidBodyCollisionConfiguration.cpp \
		          BulletSoftBody/btSoftSoftCollisionAlgorithm.cpp \
		          BulletSoftBody/btSoftBodyHelpers.cpp \
		          BulletSoftBody/btSoftRigidCollisionAlgorithm.cpp \
		          BulletSoftBody/btSoftBody.cpp \
		          BulletSoftBody/btDefaultSoftBodySolver.cpp \
		          BulletCollision/NarrowPhaseCollision/btPersistentManifold.cpp \
		          BulletCollision/NarrowPhaseCollision/btMinkowskiPenetrationDepthSolver.cpp \
		          BulletCollision/NarrowPhaseCollision/btGjkEpaPenetrationDepthSolver.cpp \
		          BulletCollision/NarrowPhaseCollision/btPolyhedralContactClipping.cpp \
		          BulletCollision/NarrowPhaseCollision/btGjkPairDetector.cpp \
		          BulletCollision/NarrowPhaseCollision/btGjkEpa2.cpp \
		          BulletCollision/NarrowPhaseCollision/btVoronoiSimplexSolver.cpp \
		          BulletCollision/NarrowPhaseCollision/btSubSimplexConvexCast.cpp \
		          BulletCollision/NarrowPhaseCollision/btConvexCast.cpp \
		          BulletCollision/NarrowPhaseCollision/btGjkConvexCast.cpp \
		          BulletCollision/NarrowPhaseCollision/btContinuousConvexCollision.cpp \
		          BulletCollision/NarrowPhaseCollision/btRaycastCallback.cpp \
		          BulletCollision/Gimpact/btGImpactQuantizedBvh.cpp \
		          BulletCollision/Gimpact/gim_memory.cpp \
		          BulletCollision/Gimpact/btTriangleShapeEx.cpp \
		          BulletCollision/Gimpact/btGImpactShape.cpp \
		          BulletCollision/Gimpact/btGImpactCollisionAlgorithm.cpp \
		          BulletCollision/Gimpact/btGImpactBvh.cpp \
		          BulletCollision/Gimpact/gim_contact.cpp \
		          BulletCollision/Gimpact/btContactProcessing.cpp \
		          BulletCollision/Gimpact/btGenericPoolAllocator.cpp \
		          BulletCollision/Gimpact/gim_tri_collision.cpp \
		          BulletCollision/Gimpact/gim_box_set.cpp \
		          BulletCollision/CollisionDispatch/btSimulationIslandManager.cpp \
		          BulletCollision/CollisionDispatch/btInternalEdgeUtility.cpp \
		          BulletCollision/CollisionDispatch/btCollisionWorld.cpp \
		          BulletCollision/CollisionDispatch/btConvex2dConvex2dAlgorithm.cpp \
		          BulletCollision/CollisionDispatch/btEmptyCollisionAlgorithm.cpp \
		          BulletCollision/CollisionDispatch/btCollisionObject.cpp \
		          BulletCollision/CollisionDispatch/btManifoldResult.cpp \
		          BulletCollision/CollisionDispatch/btSphereBoxCollisionAlgorithm.cpp \
		          BulletCollision/CollisionDispatch/btDefaultCollisionConfiguration.cpp \
		          BulletCollision/CollisionDispatch/btBoxBoxDetector.cpp \
		          BulletCollision/CollisionDispatch/btConvexConcaveCollisionAlgorithm.cpp \
		          BulletCollision/CollisionDispatch/btBox2dBox2dCollisionAlgorithm.cpp \
		          BulletCollision/CollisionDispatch/btSphereSphereCollisionAlgorithm.cpp \
		          BulletCollision/CollisionDispatch/btSphereTriangleCollisionAlgorithm.cpp \
		          BulletCollision/CollisionDispatch/btGhostObject.cpp \
		          BulletCollision/CollisionDispatch/btUnionFind.cpp \
		          BulletCollision/CollisionDispatch/btCollisionDispatcher.cpp \
		          BulletCollision/CollisionDispatch/btConvexConvexAlgorithm.cpp \
		          BulletCollision/CollisionDispatch/btActivatingCollisionAlgorithm.cpp \
		          BulletCollision/CollisionDispatch/btConvexPlaneCollisionAlgorithm.cpp \
		          BulletCollision/CollisionDispatch/btBoxBoxCollisionAlgorithm.cpp \
		          BulletCollision/CollisionDispatch/SphereTriangleDetector.cpp \
		          BulletCollision/CollisionDispatch/btCompoundCollisionAlgorithm.cpp \
		          BulletCollision/CollisionShapes/btConvexInternalShape.cpp \
		          BulletCollision/CollisionShapes/btPolyhedralConvexShape.cpp \
		          BulletCollision/CollisionShapes/btScaledBvhTriangleMeshShape.cpp \
		          BulletCollision/CollisionShapes/btCollisionShape.cpp \
		          BulletCollision/CollisionShapes/btMultiSphereShape.cpp \
		          BulletCollision/CollisionShapes/btUniformScalingShape.cpp \
		          BulletCollision/CollisionShapes/btCapsuleShape.cpp \
		          BulletCollision/CollisionShapes/btConvexShape.cpp \
		          BulletCollision/CollisionShapes/btCompoundShape.cpp \
		          BulletCollision/CollisionShapes/btShapeHull.cpp \
		          BulletCollision/CollisionShapes/btTriangleCallback.cpp \
		          BulletCollision/CollisionShapes/btBoxShape.cpp \
		          BulletCollision/CollisionShapes/btConeShape.cpp \
		          BulletCollision/CollisionShapes/btConvex2dShape.cpp \
		          BulletCollision/CollisionShapes/btCylinderShape.cpp \
		          BulletCollision/CollisionShapes/btStaticPlaneShape.cpp \
		          BulletCollision/CollisionShapes/btTriangleMesh.cpp \
		          BulletCollision/CollisionShapes/btConvexPolyhedron.cpp \
		          BulletCollision/CollisionShapes/btTriangleIndexVertexArray.cpp \
		          BulletCollision/CollisionShapes/btBvhTriangleMeshShape.cpp \
		          BulletCollision/CollisionShapes/btConvexPointCloudShape.cpp \
		          BulletCollision/CollisionShapes/btMinkowskiSumShape.cpp \
		          BulletCollision/CollisionShapes/btMultimaterialTriangleMeshShape.cpp \
		          BulletCollision/CollisionShapes/btConcaveShape.cpp \
		          BulletCollision/CollisionShapes/btSphereShape.cpp \
		          BulletCollision/CollisionShapes/btConvexHullShape.cpp \
		          BulletCollision/CollisionShapes/btBox2dShape.cpp \
		          BulletCollision/CollisionShapes/btTriangleIndexVertexMaterialArray.cpp \
		          BulletCollision/CollisionShapes/btConvexTriangleMeshShape.cpp \
		          BulletCollision/CollisionShapes/btEmptyShape.cpp \
		          BulletCollision/CollisionShapes/btStridingMeshInterface.cpp \
		          BulletCollision/CollisionShapes/btTriangleMeshShape.cpp \
		          BulletCollision/CollisionShapes/btTriangleBuffer.cpp \
		          BulletCollision/CollisionShapes/btOptimizedBvh.cpp \
		          BulletCollision/CollisionShapes/btHeightfieldTerrainShape.cpp \
		          BulletCollision/CollisionShapes/btTetrahedronShape.cpp \
		          BulletCollision/BroadphaseCollision/btQuantizedBvh.cpp \
		          BulletCollision/BroadphaseCollision/btSimpleBroadphase.cpp \
		          BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp \
		          BulletCollision/BroadphaseCollision/btDbvt.cpp \
		          BulletCollision/BroadphaseCollision/btAxisSweep3.cpp \
		          BulletCollision/BroadphaseCollision/btBroadphaseProxy.cpp \
		          BulletCollision/BroadphaseCollision/btCollisionAlgorithm.cpp \
		          BulletCollision/BroadphaseCollision/btMultiSapBroadphase.cpp \
		          BulletCollision/BroadphaseCollision/btOverlappingPairCache.cpp \
		          BulletCollision/BroadphaseCollision/btDispatcher.cpp \
		          BulletDynamics/ConstraintSolver/btUniversalConstraint.cpp \
		          BulletDynamics/ConstraintSolver/btTypedConstraint.cpp \
		          BulletDynamics/ConstraintSolver/btGeneric6DofConstraint.cpp \
		          BulletDynamics/ConstraintSolver/btHingeConstraint.cpp \
		          BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.cpp \
		          BulletDynamics/ConstraintSolver/btContactConstraint.cpp \
		          BulletDynamics/ConstraintSolver/btGeneric6DofSpringConstraint.cpp \
		          BulletDynamics/ConstraintSolver/btSliderConstraint.cpp \
		          BulletDynamics/ConstraintSolver/btConeTwistConstraint.cpp \
		          BulletDynamics/ConstraintSolver/btHinge2Constraint.cpp \
		          BulletDynamics/ConstraintSolver/btPoint2PointConstraint.cpp \
		          BulletDynamics/ConstraintSolver/btSolve2LinearConstraint.cpp \
		          BulletDynamics/Character/btKinematicCharacterController.cpp \
		          BulletDynamics/Dynamics/btDiscreteDynamicsWorld.cpp \
		          BulletDynamics/Dynamics/Bullet-C-API.cpp \
		          BulletDynamics/Dynamics/btRigidBody.cpp \
		          BulletDynamics/Dynamics/btSimpleDynamicsWorld.cpp \
		          BulletDynamics/Vehicle/btRaycastVehicle.cpp \
		          BulletDynamics/Vehicle/btWheelInfo.cpp \
		          LinearMath/btConvexHullComputer.cpp \
		          LinearMath/btAlignedAllocator.cpp \
		          LinearMath/btSerializer.cpp \
		          LinearMath/btQuickprof.cpp \
		          LinearMath/btGeometryUtil.cpp \
		          LinearMath/btConvexHull.cpp \

    LOCAL_LDLIBS := -llog -lGLESv2 -landroid -lEGL
    LOCAL_STATIC_LIBRARIES := android_native_app_glue

    include $(BUILD_SHARED_LIBRARY)

    $(call import-module,android/native_app_glue)
    

Thanks in advance.
android ndk-build compile C++ to a native shared library
===

I'm new to android development and I have a game written in C++ the I'm trying to port.  I use bullet and I'm trying to compile a version of bullet with ndk-build.  I'm using the demos in the NDK samples folder as a guide.  I created my Android.mk file (pasted below), and put it in the bullet/jni folder.  When I compile, I get an error about a missing file that android_native_app_glue is looking for called configuration.h.  I checked the files ystem, and indeed this file does not exist.  I've heard that this can be done, but can't find a place that lists how to do it.  I've spent a few days going through the NDK docs and samples, but don't see a concrete example.  Does anyone know how to do this that can help me out?  Two other things that I should mention are that 1) I'm not using JNI, I'm going with a native activity to avoid all the JNI wrapping, and 2) I develop in a linux environment.

Here is my error message:

    Compile thumb  : android_native_app_glue <= android_native_app_glue.c
    In file included from /home/jdwieber/android-ndk-           r7/sources/android/native_app_glue/android_native_app_glue.c:25:
    /home/jdwieber/android-ndk-r7/sources/android/native_app_glue/android_native_app_glue.h:25:35:     error: android/configuration.h: No such file or directory
    /home/jdwieber/android-ndk-r7/sources/android/native_app_glue/android_native_app_glue.h:26:28: error: android/looper.h: No such file or directory
    /home/jdwieber/android-ndk-r7/sources/android/native_app_glue/android_native_app_glue.h:27:37: error: android/native_activity.h: No such file or directory
    In file included from /home/jdwieber/android-ndk-    r7/sources/android/native_app_glue/android_native_app_glue.c:25:
    /home/jdwieber/android-ndk-r7/sources/android/native_app_glue/android_native_app_glue.h:123: error: expected declaration specifiers or '...' before 'AInputEvent'
    
    ...There are hundreds of "has no member named" errors here
    
    make: *** [/home/jdwieber/android-bullet/obj/local/armeabi/objs/android_native_app_glue/android_native_app_glue.o] Error 1

Here is my Android.mk

    LOCAL_PATH := $(call my-dir)

    include $(CLEAR_VARS)

    LOCAL_MODULE           := bullet

    LOCAL_SRC_FILES        := BulletSoftBody/btSoftRigidDynamicsWorld.cpp \
		          BulletSoftBody/btSoftBodyConcaveCollisionAlgorithm.cpp \
		          BulletSoftBody/btSoftBodyRigidBodyCollisionConfiguration.cpp \
		          BulletSoftBody/btSoftSoftCollisionAlgorithm.cpp \
		          BulletSoftBody/btSoftBodyHelpers.cpp \
		          BulletSoftBody/btSoftRigidCollisionAlgorithm.cpp \
		          BulletSoftBody/btSoftBody.cpp \
		          BulletSoftBody/btDefaultSoftBodySolver.cpp \
		          BulletCollision/NarrowPhaseCollision/btPersistentManifold.cpp \
		          BulletCollision/NarrowPhaseCollision/btMinkowskiPenetrationDepthSolver.cpp \
		          BulletCollision/NarrowPhaseCollision/btGjkEpaPenetrationDepthSolver.cpp \
		          BulletCollision/NarrowPhaseCollision/btPolyhedralContactClipping.cpp \
		          BulletCollision/NarrowPhaseCollision/btGjkPairDetector.cpp \
		          BulletCollision/NarrowPhaseCollision/btGjkEpa2.cpp \
		          BulletCollision/NarrowPhaseCollision/btVoronoiSimplexSolver.cpp \
		          BulletCollision/NarrowPhaseCollision/btSubSimplexConvexCast.cpp \
		          BulletCollision/NarrowPhaseCollision/btConvexCast.cpp \
		          BulletCollision/NarrowPhaseCollision/btGjkConvexCast.cpp \
		          BulletCollision/NarrowPhaseCollision/btContinuousConvexCollision.cpp \
		          BulletCollision/NarrowPhaseCollision/btRaycastCallback.cpp \
		          BulletCollision/Gimpact/btGImpactQuantizedBvh.cpp \
		          BulletCollision/Gimpact/gim_memory.cpp \
		          BulletCollision/Gimpact/btTriangleShapeEx.cpp \
		          BulletCollision/Gimpact/btGImpactShape.cpp \
		          BulletCollision/Gimpact/btGImpactCollisionAlgorithm.cpp \
		          BulletCollision/Gimpact/btGImpactBvh.cpp \
		          BulletCollision/Gimpact/gim_contact.cpp \
		          BulletCollision/Gimpact/btContactProcessing.cpp \
		          BulletCollision/Gimpact/btGenericPoolAllocator.cpp \
		          BulletCollision/Gimpact/gim_tri_collision.cpp \
		          BulletCollision/Gimpact/gim_box_set.cpp \
		          BulletCollision/CollisionDispatch/btSimulationIslandManager.cpp \
		          BulletCollision/CollisionDispatch/btInternalEdgeUtility.cpp \
		          BulletCollision/CollisionDispatch/btCollisionWorld.cpp \
		          BulletCollision/CollisionDispatch/btConvex2dConvex2dAlgorithm.cpp \
		          BulletCollision/CollisionDispatch/btEmptyCollisionAlgorithm.cpp \
		          BulletCollision/CollisionDispatch/btCollisionObject.cpp \
		          BulletCollision/CollisionDispatch/btManifoldResult.cpp \
		          BulletCollision/CollisionDispatch/btSphereBoxCollisionAlgorithm.cpp \
		          BulletCollision/CollisionDispatch/btDefaultCollisionConfiguration.cpp \
		          BulletCollision/CollisionDispatch/btBoxBoxDetector.cpp \
		          BulletCollision/CollisionDispatch/btConvexConcaveCollisionAlgorithm.cpp \
		          BulletCollision/CollisionDispatch/btBox2dBox2dCollisionAlgorithm.cpp \
		          BulletCollision/CollisionDispatch/btSphereSphereCollisionAlgorithm.cpp \
		          BulletCollision/CollisionDispatch/btSphereTriangleCollisionAlgorithm.cpp \
		          BulletCollision/CollisionDispatch/btGhostObject.cpp \
		          BulletCollision/CollisionDispatch/btUnionFind.cpp \
		          BulletCollision/CollisionDispatch/btCollisionDispatcher.cpp \
		          BulletCollision/CollisionDispatch/btConvexConvexAlgorithm.cpp \
		          BulletCollision/CollisionDispatch/btActivatingCollisionAlgorithm.cpp \
		          BulletCollision/CollisionDispatch/btConvexPlaneCollisionAlgorithm.cpp \
		          BulletCollision/CollisionDispatch/btBoxBoxCollisionAlgorithm.cpp \
		          BulletCollision/CollisionDispatch/SphereTriangleDetector.cpp \
		          BulletCollision/CollisionDispatch/btCompoundCollisionAlgorithm.cpp \
		          BulletCollision/CollisionShapes/btConvexInternalShape.cpp \
		          BulletCollision/CollisionShapes/btPolyhedralConvexShape.cpp \
		          BulletCollision/CollisionShapes/btScaledBvhTriangleMeshShape.cpp \
		          BulletCollision/CollisionShapes/btCollisionShape.cpp \
		          BulletCollision/CollisionShapes/btMultiSphereShape.cpp \
		          BulletCollision/CollisionShapes/btUniformScalingShape.cpp \
		          BulletCollision/CollisionShapes/btCapsuleShape.cpp \
		          BulletCollision/CollisionShapes/btConvexShape.cpp \
		          BulletCollision/CollisionShapes/btCompoundShape.cpp \
		          BulletCollision/CollisionShapes/btShapeHull.cpp \
		          BulletCollision/CollisionShapes/btTriangleCallback.cpp \
		          BulletCollision/CollisionShapes/btBoxShape.cpp \
		          BulletCollision/CollisionShapes/btConeShape.cpp \
		          BulletCollision/CollisionShapes/btConvex2dShape.cpp \
		          BulletCollision/CollisionShapes/btCylinderShape.cpp \
		          BulletCollision/CollisionShapes/btStaticPlaneShape.cpp \
		          BulletCollision/CollisionShapes/btTriangleMesh.cpp \
		          BulletCollision/CollisionShapes/btConvexPolyhedron.cpp \
		          BulletCollision/CollisionShapes/btTriangleIndexVertexArray.cpp \
		          BulletCollision/CollisionShapes/btBvhTriangleMeshShape.cpp \
		          BulletCollision/CollisionShapes/btConvexPointCloudShape.cpp \
		          BulletCollision/CollisionShapes/btMinkowskiSumShape.cpp \
		          BulletCollision/CollisionShapes/btMultimaterialTriangleMeshShape.cpp \
		          BulletCollision/CollisionShapes/btConcaveShape.cpp \
		          BulletCollision/CollisionShapes/btSphereShape.cpp \
		          BulletCollision/CollisionShapes/btConvexHullShape.cpp \
		          BulletCollision/CollisionShapes/btBox2dShape.cpp \
		          BulletCollision/CollisionShapes/btTriangleIndexVertexMaterialArray.cpp \
		          BulletCollision/CollisionShapes/btConvexTriangleMeshShape.cpp \
		          BulletCollision/CollisionShapes/btEmptyShape.cpp \
		          BulletCollision/CollisionShapes/btStridingMeshInterface.cpp \
		          BulletCollision/CollisionShapes/btTriangleMeshShape.cpp \
		          BulletCollision/CollisionShapes/btTriangleBuffer.cpp \
		          BulletCollision/CollisionShapes/btOptimizedBvh.cpp \
		          BulletCollision/CollisionShapes/btHeightfieldTerrainShape.cpp \
		          BulletCollision/CollisionShapes/btTetrahedronShape.cpp \
		          BulletCollision/BroadphaseCollision/btQuantizedBvh.cpp \
		          BulletCollision/BroadphaseCollision/btSimpleBroadphase.cpp \
		          BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp \
		          BulletCollision/BroadphaseCollision/btDbvt.cpp \
		          BulletCollision/BroadphaseCollision/btAxisSweep3.cpp \
		          BulletCollision/BroadphaseCollision/btBroadphaseProxy.cpp \
		          BulletCollision/BroadphaseCollision/btCollisionAlgorithm.cpp \
		          BulletCollision/BroadphaseCollision/btMultiSapBroadphase.cpp \
		          BulletCollision/BroadphaseCollision/btOverlappingPairCache.cpp \
		          BulletCollision/BroadphaseCollision/btDispatcher.cpp \
		          BulletDynamics/ConstraintSolver/btUniversalConstraint.cpp \
		          BulletDynamics/ConstraintSolver/btTypedConstraint.cpp \
		          BulletDynamics/ConstraintSolver/btGeneric6DofConstraint.cpp \
		          BulletDynamics/ConstraintSolver/btHingeConstraint.cpp \
		          BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.cpp \
		          BulletDynamics/ConstraintSolver/btContactConstraint.cpp \
		          BulletDynamics/ConstraintSolver/btGeneric6DofSpringConstraint.cpp \
		          BulletDynamics/ConstraintSolver/btSliderConstraint.cpp \
		          BulletDynamics/ConstraintSolver/btConeTwistConstraint.cpp \
		          BulletDynamics/ConstraintSolver/btHinge2Constraint.cpp \
		          BulletDynamics/ConstraintSolver/btPoint2PointConstraint.cpp \
		          BulletDynamics/ConstraintSolver/btSolve2LinearConstraint.cpp \
		          BulletDynamics/Character/btKinematicCharacterController.cpp \
		          BulletDynamics/Dynamics/btDiscreteDynamicsWorld.cpp \
		          BulletDynamics/Dynamics/Bullet-C-API.cpp \
		          BulletDynamics/Dynamics/btRigidBody.cpp \
		          BulletDynamics/Dynamics/btSimpleDynamicsWorld.cpp \
		          BulletDynamics/Vehicle/btRaycastVehicle.cpp \
		          BulletDynamics/Vehicle/btWheelInfo.cpp \
		          LinearMath/btConvexHullComputer.cpp \
		          LinearMath/btAlignedAllocator.cpp \
		          LinearMath/btSerializer.cpp \
		          LinearMath/btQuickprof.cpp \
		          LinearMath/btGeometryUtil.cpp \
		          LinearMath/btConvexHull.cpp \

    LOCAL_LDLIBS := -llog -lGLESv2 -landroid -lEGL
    LOCAL_STATIC_LIBRARIES := android_native_app_glue

    include $(BUILD_SHARED_LIBRARY)

    $(call import-module,android/native_app_glue)
    

Thanks in advance.