Chromium Code Reviews| Index: experimental/HelloSkia/jni/Android.mk |
| diff --git a/experimental/HelloSkia/jni/Android.mk b/experimental/HelloSkia/jni/Android.mk |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b34ef1fe6d5e931c36ca166479b81b4c70522189 |
| --- /dev/null |
| +++ b/experimental/HelloSkia/jni/Android.mk |
| @@ -0,0 +1,46 @@ |
| +LOCAL_PATH := $(call my-dir) |
| + |
| +# 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
|
| +SKIA_HOME := |
| + |
| + |
| +## |
| +# sets up a module for the skia shared object to be copied into the apk. Be sure to copy an |
| +# appropriate build of libskia_android.so for your architecture into this directory. |
| +## |
| + |
| +include $(CLEAR_VARS) |
| + |
| +# name for referencing this module in other modules |
| +LOCAL_MODULE := skia_android |
| + |
| +# local filename of the skia shared object |
| +LOCAL_SRC_FILES := libskia_android.so |
| + |
| +# makes this module into shared object that is simply copied into the apk |
| +include $(PREBUILT_SHARED_LIBRARY) |
| + |
| + |
| +## |
| +# sets up the JNI module that our app calls into to draw things with skia. |
| +## |
| + |
| +include $(CLEAR_VARS) # clear out the variables of the previous module |
| + |
| +# name of the module that the app will reference with System.loadLibrary |
| +LOCAL_MODULE := hello_skia_ndk |
| + |
| +# list of the source files compiled for this module |
| +LOCAL_SRC_FILES := helloskia.cpp |
| + |
| +# makes the skia shared object get pulled in as a reference |
| +LOCAL_SHARED_LIBRARIES := skia_android |
| + |
| +# jnigraphics defines the function AndroidBitmap_lockPixels, which we need in order to draw into |
| +# android.graphics.Bitmap |
| +LOCAL_LDLIBS := -ljnigraphics |
| + |
| +LOCAL_C_INCLUDES := $(SKIA_HOME)/include/config \ |
| + $(SKIA_HOME)/include/core |
| + |
| +include $(BUILD_SHARED_LIBRARY) |