Game Development Reference
In-Depth Information
Figure 2-5.
Project layout
You must create the following files within the native folder (see Figure 2-5):
•
lib.c
: This is the main library code. It contains all the necessary JNI system calls
to cascade information back and forth between Android and C.
testlib.c
: This is a test program for the library. Its main function is to make sure
there are no symbols missing from the native library.
•
main.c
: This is a static program used to demonstrate how to compile a static native
program that can be run in the device.
•
•
Makefile
: This is the project's native build file. It has targets for the following:
Build the native library
•
Build the library test program
•