skia2/android_sample/SampleApp/Android.mk
Scroggo 3e7ff9f31d Better fix for changing the viewport in sample app.
Create a platform description and base the size on the SkWindow
in order to create a RenderTarget, which results in changing the
viewport.  This allows us to use only GR calls.

In the Android sample app, fix the problem where nothing is drawn
in the first frame, and default to drawing in GL.

Reviewed at http://codereview.appspot.com/4642043/


git-svn-id: http://skia.googlecode.com/svn/trunk@1615 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-16 15:31:26 +00:00

75 lines
1.7 KiB
Makefile

######################################
# Build the app.
######################################
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := \
$(call all-java-files-under, src)
LOCAL_PACKAGE_NAME := SampleApp
LOCAL_JNI_SHARED_LIBRARIES := libskia-sample
LOCAL_PROGUARD_ENABLED := disabled
include $(BUILD_PACKAGE)
######################################
# Build the shared library.
######################################
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_C_INCLUDES += \
external/skia/include/core \
external/skia/include/config \
external/skia/include/effects \
external/skia/include/images \
external/skia/include/utils \
external/skia/include/utils/android \
external/skia/include/views \
external/skia/samplecode \
external/skia/include/xml \
external/skia/include/gpu \
external/skia/src/core \
external/skia/gpu/include \
frameworks/base/opengl/include/GLES2 \
$(LOCAL_PATH)/jni
LOCAL_SHARED_LIBRARIES := \
libcutils \
libutils \
libskia \
libandroid_runtime \
libGLESv2
LOCAL_STATIC_LIBRARIES := \
libskiagpu
LOCAL_CFLAGS += -DDEFAULT_TO_GPU
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := libskia-sample
LOCAL_SRC_FILES := \
../../src/ports/SkXMLParser_empty.cpp \
jni/sample-jni.cpp
include external/skia/src/views/views_files.mk
LOCAL_SRC_FILES += $(addprefix ../../src/views/, $(SOURCE))
include external/skia/src/xml/xml_files.mk
LOCAL_SRC_FILES += $(addprefix ../../src/xml/, $(SOURCE))
include external/skia/samplecode/samplecode_files.mk
LOCAL_SRC_FILES += $(addprefix ../../samplecode/, $(SOURCE))
include $(BUILD_SHARED_LIBRARY)