Home | History | Annotate | Download | only in jni
      1 LOCAL_PATH := $(call my-dir)
      2 
      3 ##
      4 # Sets up a module for the skia shared object to be copied into the apk.
      5 ##
      6 
      7 include $(CLEAR_VARS)
      8 
      9 # Name for referencing this module in other modules
     10 LOCAL_MODULE := skia_android
     11 
     12 # Local filename of the skia shared object
     13 LOCAL_SRC_FILES := skia/libskia_android.so
     14 
     15 # Makes this module into shared object that is simply copied into the apk
     16 include $(PREBUILT_SHARED_LIBRARY)
     17 
     18 
     19 ##
     20 # Sets up the JNI module that our app calls into to draw things with skia.
     21 ##
     22 
     23 include $(CLEAR_VARS) # clear out the variables of the previous module
     24 
     25 # Name of the module that the app will reference with System.loadLibrary
     26 LOCAL_MODULE := hello_skia_ndk
     27 
     28 # List of the source files compiled for this module
     29 LOCAL_SRC_FILES := helloskia.cpp
     30 
     31 # Makes the skia shared object get pulled in as a reference
     32 LOCAL_SHARED_LIBRARIES := skia_android
     33 
     34 # jnigraphics defines the function AndroidBitmap_lockPixels, which we need in order to draw into
     35 # android.graphics.Bitmap
     36 LOCAL_LDLIBS := -ljnigraphics
     37 
     38 # Allows the compiler to find the Skia header files
     39 LOCAL_C_INCLUDES := $(LOCAL_PATH)/skia/include/config \
     40                     $(LOCAL_PATH)/skia/include/core
     41 
     42 include $(BUILD_SHARED_LIBRARY)
     43