blob: 91c9ac621be450f8f84b419c7f9fb0779600cb23 [file] [log] [blame]
Dima Zavin32276312010-02-04 12:15:09 -08001BASE_PATH := $(call my-dir)
2LOCAL_PATH:= $(call my-dir)
3
4include $(CLEAR_VARS)
5
Dima Zavin32276312010-02-04 12:15:09 -08006# setup for skia optimizations
7#
8ifneq ($(ARCH_ARM_HAVE_VFP),true)
Andreas Gampecad87d72014-11-10 17:13:06 -08009 LOCAL_CFLAGS += -DSK_SOFTWARE_FLOAT
Dima Zavin32276312010-02-04 12:15:09 -080010endif
11
12ifeq ($(ARCH_ARM_HAVE_NEON),true)
Andreas Gampecad87d72014-11-10 17:13:06 -080013 LOCAL_CFLAGS += -D__ARM_HAVE_NEON
Dima Zavin32276312010-02-04 12:15:09 -080014endif
15
16# our source files
17#
18LOCAL_SRC_FILES:= \
Andreas Gampecad87d72014-11-10 17:13:06 -080019 bitmap.cpp
Dima Zavin32276312010-02-04 12:15:09 -080020
21LOCAL_SHARED_LIBRARIES := \
22 libandroid_runtime \
23 libskia
24
25LOCAL_C_INCLUDES += \
Andreas Gampecad87d72014-11-10 17:13:06 -080026 frameworks/base/native/include \
27 frameworks/base/core/jni/android/graphics
Dima Zavin32276312010-02-04 12:15:09 -080028
29LOCAL_MODULE:= libjnigraphics
30
Andreas Gampecad87d72014-11-10 17:13:06 -080031LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code
32
Dmitriy Ivanov1dc91a52015-03-09 19:42:16 -070033# TODO: This is to work around b/19059885. Remove after root cause is fixed
Dmitriy Ivanovca4f2e82015-03-13 12:49:47 -070034LOCAL_LDFLAGS_arm := -Wl,--hash-style=sysv
Dmitriy Ivanov1dc91a52015-03-09 19:42:16 -070035
Dima Zavin32276312010-02-04 12:15:09 -080036include $(BUILD_SHARED_LIBRARY)
37