Dima Zavin | 3227631 | 2010-02-04 12:15:09 -0800 | [diff] [blame] | 1 | BASE_PATH := $(call my-dir) |
| 2 | LOCAL_PATH:= $(call my-dir) |
| 3 | |
| 4 | include $(CLEAR_VARS) |
| 5 | |
Dima Zavin | 3227631 | 2010-02-04 12:15:09 -0800 | [diff] [blame] | 6 | # setup for skia optimizations |
| 7 | # |
| 8 | ifneq ($(ARCH_ARM_HAVE_VFP),true) |
Andreas Gampe | cad87d7 | 2014-11-10 17:13:06 -0800 | [diff] [blame] | 9 | LOCAL_CFLAGS += -DSK_SOFTWARE_FLOAT |
Dima Zavin | 3227631 | 2010-02-04 12:15:09 -0800 | [diff] [blame] | 10 | endif |
| 11 | |
| 12 | ifeq ($(ARCH_ARM_HAVE_NEON),true) |
Andreas Gampe | cad87d7 | 2014-11-10 17:13:06 -0800 | [diff] [blame] | 13 | LOCAL_CFLAGS += -D__ARM_HAVE_NEON |
Dima Zavin | 3227631 | 2010-02-04 12:15:09 -0800 | [diff] [blame] | 14 | endif |
| 15 | |
| 16 | # our source files |
| 17 | # |
| 18 | LOCAL_SRC_FILES:= \ |
Andreas Gampe | cad87d7 | 2014-11-10 17:13:06 -0800 | [diff] [blame] | 19 | bitmap.cpp |
Dima Zavin | 3227631 | 2010-02-04 12:15:09 -0800 | [diff] [blame] | 20 | |
| 21 | LOCAL_SHARED_LIBRARIES := \ |
| 22 | libandroid_runtime \ |
| 23 | libskia |
| 24 | |
| 25 | LOCAL_C_INCLUDES += \ |
Andreas Gampe | cad87d7 | 2014-11-10 17:13:06 -0800 | [diff] [blame] | 26 | frameworks/base/native/include \ |
John Reck | c1b33d6 | 2015-04-22 09:04:45 -0700 | [diff] [blame] | 27 | frameworks/base/core/jni/android/graphics \ |
| 28 | frameworks/base/libs/hwui |
Dima Zavin | 3227631 | 2010-02-04 12:15:09 -0800 | [diff] [blame] | 29 | |
| 30 | LOCAL_MODULE:= libjnigraphics |
| 31 | |
Andreas Gampe | cad87d7 | 2014-11-10 17:13:06 -0800 | [diff] [blame] | 32 | LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code |
| 33 | |
Dmitriy Ivanov | 1dc91a5 | 2015-03-09 19:42:16 -0700 | [diff] [blame] | 34 | # TODO: This is to work around b/19059885. Remove after root cause is fixed |
Dmitriy Ivanov | b5228ac | 2015-05-08 14:03:19 -0700 | [diff] [blame] | 35 | LOCAL_LDFLAGS_arm := -Wl,--hash-style=both |
Dmitriy Ivanov | 1dc91a5 | 2015-03-09 19:42:16 -0700 | [diff] [blame] | 36 | |
Dima Zavin | 3227631 | 2010-02-04 12:15:09 -0800 | [diff] [blame] | 37 | include $(BUILD_SHARED_LIBRARY) |
| 38 | |