aboutsummaryrefslogtreecommitdiffstats
path: root/android_sample/SampleApp/Android.mk
blob: 6d62c35426c8e7d470df7af65f520cb53ca80d4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
######################################
# 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

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/core/jni/android/graphics \
    frameworks/base/native/include/android \
    $(LOCAL_PATH)/jni

LOCAL_SHARED_LIBRARIES := \
    libcutils \
    libutils \
    libskia \
    libandroid_runtime \
    libGLESv2

LOCAL_STATIC_LIBRARIES := \
    libskiagpu

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)