blob: 1b684bb4e28b2053e28755a8ed14670d87ca8d93 [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 \
John Reckc1b33d62015-04-22 09:04:45 -070027 frameworks/base/core/jni/android/graphics \
28 frameworks/base/libs/hwui
Dima Zavin32276312010-02-04 12:15:09 -080029
30LOCAL_MODULE:= libjnigraphics
31
Andreas Gampecad87d72014-11-10 17:13:06 -080032LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code
33
Dmitriy Ivanov1dc91a52015-03-09 19:42:16 -070034# TODO: This is to work around b/19059885. Remove after root cause is fixed
Dmitriy Ivanovb5228ac2015-05-08 14:03:19 -070035LOCAL_LDFLAGS_arm := -Wl,--hash-style=both
Dmitriy Ivanov1dc91a52015-03-09 19:42:16 -070036
Dima Zavin32276312010-02-04 12:15:09 -080037include $(BUILD_SHARED_LIBRARY)
38