1 2############################################################################### 3# 4# THIS FILE IS AUTOGENERATED BY GYP_TO_ANDROID.PY. DO NOT EDIT. 5# 6# For bugs, please contact scroggo@google.com or djsollen@google.com 7# 8############################################################################### 9 10BASE_PATH := $(call my-dir) 11LOCAL_PATH:= $(call my-dir) 12 13############################################################################### 14# 15# PROBLEMS WITH SKIA DEBUGGING?? READ THIS... 16# 17# The debug build results in changes to the Skia headers. This means that those 18# using libskia must also be built with the debug version of the Skia headers. 19# There are a few scenarios where this comes into play: 20# 21# (1) You're building debug code that depends on libskia. 22# (a) If libskia is built in release, then define SK_RELEASE when building 23# your sources. 24# (b) If libskia is built with debugging (see step 2), then no changes are 25# needed since your sources and libskia have been built with SK_DEBUG. 26# (2) You're building libskia in debug mode. 27# (a) RECOMMENDED: You can build the entire system in debug mode. Do this by 28# updating your build/core/config.mk to include -DSK_DEBUG on the line 29# that defines COMMON_GLOBAL_CFLAGS 30# (b) You can update all the users of libskia to define SK_DEBUG when they are 31# building their sources. 32# 33# NOTE: If neither SK_DEBUG or SK_RELEASE are defined then Skia checks NDEBUG to 34# determine which build type to use. 35############################################################################### 36 37############################################################################### 38# STATIC LIBRARY 39# 40# This target is only to be used internally for only one of two purposes... 41# (1) statically linking into testing frameworks 42# (2) as an inclusion target for the libskia.so shared library 43############################################################################### 44 45include $(CLEAR_VARS) 46LOCAL_FDO_SUPPORT := true 47ifneq ($(strip $(TARGET_FDO_CFLAGS)),) 48 # This should be the last -Oxxx specified in LOCAL_CFLAGS 49 LOCAL_CFLAGS += -O2 50endif 51 52LOCAL_ARM_MODE := thumb 53# used for testing 54#LOCAL_CFLAGS += -g -O0 55 56LOCAL_CFLAGS += \ 57 local_cflags 58 59LOCAL_CPPFLAGS := \ 60 local_cppflags 61 62LOCAL_SRC_FILES := \ 63 local_src_files 64 65LOCAL_SHARED_LIBRARIES := \ 66 local_shared_libraries 67 68LOCAL_STATIC_LIBRARIES := \ 69 local_static_libraries 70 71LOCAL_C_INCLUDES := \ 72 local_c_includes 73 74LOCAL_EXPORT_C_INCLUDE_DIRS := \ 75 local_export_c_include_dirs 76 77LOCAL_CFLAGS += \ 78 -Ddefines 79 80LOCAL_MODULE_TAGS := \ 81 local_module_tags 82 83LOCAL_MODULE := \ 84 local_module_static 85 86ifeq ($(COND), true) 87LOCAL_CFLAGS_foo += \ 88 local_cflags_foo 89 90LOCAL_CPPFLAGS_foo += \ 91 local_cppflags_foo 92 93LOCAL_SRC_FILES_foo += \ 94 local_src_files_foo 95 96LOCAL_SHARED_LIBRARIES_foo += \ 97 local_shared_libraries_foo 98 99LOCAL_STATIC_LIBRARIES_foo += \ 100 local_static_libraries_foo 101 102LOCAL_C_INCLUDES_foo += \ 103 local_c_includes_foo 104 105LOCAL_EXPORT_C_INCLUDE_DIRS_foo += \ 106 local_export_c_include_dirs_foo 107 108LOCAL_CFLAGS_foo += \ 109 -Ddefines_foo 110 111LOCAL_MODULE_TAGS_foo += \ 112 local_module_tags_foo 113 114LOCAL_MODULE_foo += \ 115 local_module_foo 116 117endif 118 119LOCAL_CFLAGS_bar += \ 120 local_cflags_bar 121 122LOCAL_CPPFLAGS_bar += \ 123 local_cppflags_bar 124 125LOCAL_SRC_FILES_bar += \ 126 local_src_files_bar 127 128LOCAL_SHARED_LIBRARIES_bar += \ 129 local_shared_libraries_bar 130 131LOCAL_STATIC_LIBRARIES_bar += \ 132 local_static_libraries_bar 133 134LOCAL_C_INCLUDES_bar += \ 135 local_c_includes_bar 136 137LOCAL_EXPORT_C_INCLUDE_DIRS_bar += \ 138 local_export_c_include_dirs_bar 139 140LOCAL_CFLAGS_bar += \ 141 -Ddefines_bar 142 143LOCAL_MODULE_TAGS_bar += \ 144 local_module_tags_bar 145 146LOCAL_MODULE_bar += \ 147 local_module_bar 148 149LOCAL_MODULE_CLASS := STATIC_LIBRARIES 150include $(BUILD_STATIC_LIBRARY) 151 152 153############################################################################### 154# SHARED LIBRARY 155############################################################################### 156 157include $(CLEAR_VARS) 158LOCAL_MODULE_CLASS := SHARED_LIBRARIES 159LOCAL_MODULE := local_module 160LOCAL_WHOLE_STATIC_LIBRARIES := local_module_static 161LOCAL_EXPORT_C_INCLUDE_DIRS := \ 162 local_export_c_include_dirs 163 164include $(BASE_PATH)/skia_static_deps.mk 165include $(BUILD_SHARED_LIBRARY) 166 167############################################################# 168# Build the skia tools 169# 170 171# benchmark (timings) 172include $(BASE_PATH)/bench/Android.mk 173 174# diamond-master (one test to rule them all) 175include $(BASE_PATH)/dm/Android.mk 176