2011-05-31 17:10:21 +00:00
|
|
|
######################################
|
|
|
|
# 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
|
|
|
|
|
2011-06-15 16:49:08 +00:00
|
|
|
LOCAL_PROGUARD_ENABLED := disabled
|
|
|
|
|
2011-05-31 17:10:21 +00:00
|
|
|
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 \
|
2011-06-13 16:58:40 +00:00
|
|
|
external/skia/include/utils/android \
|
|
|
|
external/skia/include/views \
|
|
|
|
external/skia/samplecode \
|
|
|
|
external/skia/include/xml \
|
2011-05-31 17:10:21 +00:00
|
|
|
external/skia/include/gpu \
|
|
|
|
external/skia/src/core \
|
|
|
|
external/skia/gpu/include \
|
2011-06-15 16:49:08 +00:00
|
|
|
frameworks/base/opengl/include/GLES2 \
|
2011-06-21 14:44:57 +00:00
|
|
|
external/skia/include/pdf \
|
2011-05-31 17:10:21 +00:00
|
|
|
$(LOCAL_PATH)/jni
|
|
|
|
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
libcutils \
|
|
|
|
libutils \
|
|
|
|
libskia \
|
|
|
|
libandroid_runtime \
|
|
|
|
libGLESv2
|
|
|
|
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
|
|
libskiagpu
|
|
|
|
|
2011-06-16 15:31:26 +00:00
|
|
|
LOCAL_CFLAGS += -DDEFAULT_TO_GPU
|
|
|
|
|
2011-05-31 17:10:21 +00:00
|
|
|
LOCAL_PRELINK_MODULE := false
|
|
|
|
|
|
|
|
LOCAL_MODULE := libskia-sample
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := \
|
2011-06-13 16:58:40 +00:00
|
|
|
../../src/ports/SkXMLParser_empty.cpp \
|
2011-06-21 14:44:57 +00:00
|
|
|
../../src/pdf/SkPDFCatalog.cpp \
|
|
|
|
../../src/pdf/SkPDFDevice.cpp \
|
|
|
|
../../src/pdf/SkPDFDocument.cpp \
|
|
|
|
../../src/pdf/SkPDFFont.cpp \
|
|
|
|
../../src/pdf/SkPDFFormXObject.cpp \
|
|
|
|
../../src/pdf/SkPDFGraphicState.cpp \
|
|
|
|
../../src/pdf/SkPDFImage.cpp \
|
|
|
|
../../src/pdf/SkPDFPage.cpp \
|
|
|
|
../../src/pdf/SkPDFShader.cpp \
|
|
|
|
../../src/pdf/SkPDFStream.cpp \
|
|
|
|
../../src/pdf/SkPDFTypes.cpp \
|
|
|
|
../../src/pdf/SkPDFUtils.cpp \
|
2011-05-31 17:10:21 +00:00
|
|
|
jni/sample-jni.cpp
|
|
|
|
|
2011-06-13 16:58:40 +00:00
|
|
|
include external/skia/src/views/views_files.mk
|
|
|
|
LOCAL_SRC_FILES += $(addprefix ../../src/views/, $(SOURCE))
|
2011-05-31 17:10:21 +00:00
|
|
|
|
2011-06-13 16:58:40 +00:00
|
|
|
include external/skia/src/xml/xml_files.mk
|
|
|
|
LOCAL_SRC_FILES += $(addprefix ../../src/xml/, $(SOURCE))
|
2011-05-31 17:10:21 +00:00
|
|
|
|
2011-06-13 16:58:40 +00:00
|
|
|
include external/skia/samplecode/samplecode_files.mk
|
|
|
|
LOCAL_SRC_FILES += $(addprefix ../../samplecode/, $(SOURCE))
|
2011-05-31 17:10:21 +00:00
|
|
|
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|