Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 LOCAL_PATH := $(call my-dir) | |
| 2 | |
| 3 # set this to wherever your skia directory is located, with out trailing slashes | |
|
djsollen
2013/06/04 00:26:35
I think that for clarity we should have them copy
| |
| 4 SKIA_HOME := | |
| 5 | |
| 6 | |
| 7 ## | |
| 8 # sets up a module for the skia shared object to be copied into the apk. Be sure to copy an | |
| 9 # appropriate build of libskia_android.so for your architecture into this direct ory. | |
| 10 ## | |
| 11 | |
| 12 include $(CLEAR_VARS) | |
| 13 | |
| 14 # name for referencing this module in other modules | |
| 15 LOCAL_MODULE := skia_android | |
| 16 | |
| 17 # local filename of the skia shared object | |
| 18 LOCAL_SRC_FILES := libskia_android.so | |
| 19 | |
| 20 # makes this module into shared object that is simply copied into the apk | |
| 21 include $(PREBUILT_SHARED_LIBRARY) | |
| 22 | |
| 23 | |
| 24 ## | |
| 25 # sets up the JNI module that our app calls into to draw things with skia. | |
| 26 ## | |
| 27 | |
| 28 include $(CLEAR_VARS) # clear out the variables of the previous module | |
| 29 | |
| 30 # name of the module that the app will reference with System.loadLibrary | |
| 31 LOCAL_MODULE := hello_skia_ndk | |
| 32 | |
| 33 # list of the source files compiled for this module | |
| 34 LOCAL_SRC_FILES := helloskia.cpp | |
| 35 | |
| 36 # makes the skia shared object get pulled in as a reference | |
| 37 LOCAL_SHARED_LIBRARIES := skia_android | |
| 38 | |
| 39 # jnigraphics defines the function AndroidBitmap_lockPixels, which we need in or der to draw into | |
| 40 # android.graphics.Bitmap | |
| 41 LOCAL_LDLIBS := -ljnigraphics | |
| 42 | |
| 43 LOCAL_C_INCLUDES := $(SKIA_HOME)/include/config \ | |
| 44 $(SKIA_HOME)/include/core | |
| 45 | |
| 46 include $(BUILD_SHARED_LIBRARY) | |
| OLD | NEW |