1 # This file is generated by gyp; do not edit. 2 3 include $(CLEAR_VARS) 4 5 LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6 LOCAL_MODULE := skia_skia_opts_neon_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 gyp_intermediate_dir := $(call local-intermediates-dir) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := 14 15 GYP_GENERATED_OUTPUTS := 16 17 # Make sure our deps and generated files are built first. 18 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20 LOCAL_GENERATED_SOURCES := 21 22 GYP_COPIED_SOURCE_ORIGIN_DIRS := 23 24 LOCAL_SRC_FILES := \ 25 third_party/skia/src/opts/memset16_neon.S \ 26 third_party/skia/src/opts/memset32_neon.S \ 27 third_party/skia/src/opts/SkBitmapProcState_arm_neon.cpp \ 28 third_party/skia/src/opts/SkBitmapProcState_matrixProcs_neon.cpp \ 29 third_party/skia/src/opts/SkBlitMask_opts_arm_neon.cpp \ 30 third_party/skia/src/opts/SkBlitRow_opts_arm_neon.cpp \ 31 third_party/skia/src/opts/SkXfermode_opts_arm_neon.cpp \ 32 third_party/skia/src/opts/SkBlurImage_opts_neon.cpp \ 33 third_party/skia/src/opts/SkMorphology_opts_neon.cpp 34 35 36 # Flags passed to both C and C++ files. 37 MY_CFLAGS_Debug := \ 38 -fstack-protector \ 39 --param=ssp-buffer-size=4 \ 40 -fno-exceptions \ 41 -fno-strict-aliasing \ 42 -Wno-unused-parameter \ 43 -Wno-missing-field-initializers \ 44 -fvisibility=hidden \ 45 -pipe \ 46 -fPIC \ 47 -mfpu=neon \ 48 -fomit-frame-pointer \ 49 -Wno-format \ 50 -fno-tree-sra \ 51 -fuse-ld=gold \ 52 -Wno-psabi \ 53 -ffunction-sections \ 54 -funwind-tables \ 55 -g \ 56 -fstack-protector \ 57 -fno-short-enums \ 58 -finline-limit=64 \ 59 -Wa,--noexecstack \ 60 -U_FORTIFY_SOURCE \ 61 -Wno-extra \ 62 -Wno-ignored-qualifiers \ 63 -Wno-type-limits \ 64 -Wno-address \ 65 -Wno-format-security \ 66 -Wno-return-type \ 67 -Wno-sequence-point \ 68 -Os \ 69 -g \ 70 -fomit-frame-pointer \ 71 -fdata-sections \ 72 -ffunction-sections 73 74 MY_DEFS_Debug := \ 75 '-DV8_DEPRECATION_WARNINGS' \ 76 '-D_FILE_OFFSET_BITS=64' \ 77 '-DNO_TCMALLOC' \ 78 '-DDISABLE_NACL' \ 79 '-DCHROMIUM_BUILD' \ 80 '-DUSE_LIBJPEG_TURBO=1' \ 81 '-DUSE_PROPRIETARY_CODECS' \ 82 '-DENABLE_CONFIGURATION_POLICY' \ 83 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 84 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 85 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 86 '-DUSE_OPENSSL=1' \ 87 '-DENABLE_EGLIMAGE=1' \ 88 '-DCLD_VERSION=1' \ 89 '-DENABLE_PRINTING=1' \ 90 '-DENABLE_MANAGED_USERS=1' \ 91 '-D__ARM_HAVE_OPTIONAL_NEON_SUPPORT' \ 92 '-DSK_FONTHOST_DOES_NOT_USE_FONTMGR' \ 93 '-DANDROID' \ 94 '-D__GNU_SOURCE=1' \ 95 '-DUSE_STLPORT=1' \ 96 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 97 '-DCHROME_BUILD_ID=""' \ 98 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 99 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 100 '-D_DEBUG' 101 102 103 # Include paths placed before CFLAGS/CPPFLAGS 104 LOCAL_C_INCLUDES_Debug := \ 105 $(LOCAL_PATH)/third_party/skia/include/core \ 106 $(LOCAL_PATH)/third_party/skia/src/core \ 107 $(LOCAL_PATH)/third_party/skia/src/opts \ 108 $(LOCAL_PATH) \ 109 $(LOCAL_PATH)/skia/config \ 110 $(PWD)/frameworks/wilhelm/include \ 111 $(PWD)/bionic \ 112 $(PWD)/external/stlport/stlport 113 114 115 # Flags passed to only C++ (and not C) files. 116 LOCAL_CPPFLAGS_Debug := \ 117 -fno-rtti \ 118 -fno-threadsafe-statics \ 119 -fvisibility-inlines-hidden \ 120 -Wno-deprecated \ 121 -Wno-abi \ 122 -Wno-error=c++0x-compat \ 123 -Wno-non-virtual-dtor \ 124 -Wno-sign-promo \ 125 -Wno-non-virtual-dtor 126 127 128 # Flags passed to both C and C++ files. 129 MY_CFLAGS_Release := \ 130 -fstack-protector \ 131 --param=ssp-buffer-size=4 \ 132 -fno-exceptions \ 133 -fno-strict-aliasing \ 134 -Wno-unused-parameter \ 135 -Wno-missing-field-initializers \ 136 -fvisibility=hidden \ 137 -pipe \ 138 -fPIC \ 139 -mfpu=neon \ 140 -fomit-frame-pointer \ 141 -Wno-format \ 142 -fno-tree-sra \ 143 -fuse-ld=gold \ 144 -Wno-psabi \ 145 -ffunction-sections \ 146 -funwind-tables \ 147 -g \ 148 -fstack-protector \ 149 -fno-short-enums \ 150 -finline-limit=64 \ 151 -Wa,--noexecstack \ 152 -U_FORTIFY_SOURCE \ 153 -Wno-extra \ 154 -Wno-ignored-qualifiers \ 155 -Wno-type-limits \ 156 -Wno-address \ 157 -Wno-format-security \ 158 -Wno-return-type \ 159 -Wno-sequence-point \ 160 -Os \ 161 -fno-ident \ 162 -fdata-sections \ 163 -ffunction-sections \ 164 -fomit-frame-pointer 165 166 MY_DEFS_Release := \ 167 '-DV8_DEPRECATION_WARNINGS' \ 168 '-D_FILE_OFFSET_BITS=64' \ 169 '-DNO_TCMALLOC' \ 170 '-DDISABLE_NACL' \ 171 '-DCHROMIUM_BUILD' \ 172 '-DUSE_LIBJPEG_TURBO=1' \ 173 '-DUSE_PROPRIETARY_CODECS' \ 174 '-DENABLE_CONFIGURATION_POLICY' \ 175 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 176 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 177 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 178 '-DUSE_OPENSSL=1' \ 179 '-DENABLE_EGLIMAGE=1' \ 180 '-DCLD_VERSION=1' \ 181 '-DENABLE_PRINTING=1' \ 182 '-DENABLE_MANAGED_USERS=1' \ 183 '-D__ARM_HAVE_OPTIONAL_NEON_SUPPORT' \ 184 '-DSK_FONTHOST_DOES_NOT_USE_FONTMGR' \ 185 '-DANDROID' \ 186 '-D__GNU_SOURCE=1' \ 187 '-DUSE_STLPORT=1' \ 188 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 189 '-DCHROME_BUILD_ID=""' \ 190 '-DNDEBUG' \ 191 '-DNVALGRIND' \ 192 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 193 194 195 # Include paths placed before CFLAGS/CPPFLAGS 196 LOCAL_C_INCLUDES_Release := \ 197 $(LOCAL_PATH)/third_party/skia/include/core \ 198 $(LOCAL_PATH)/third_party/skia/src/core \ 199 $(LOCAL_PATH)/third_party/skia/src/opts \ 200 $(LOCAL_PATH) \ 201 $(LOCAL_PATH)/skia/config \ 202 $(PWD)/frameworks/wilhelm/include \ 203 $(PWD)/bionic \ 204 $(PWD)/external/stlport/stlport 205 206 207 # Flags passed to only C++ (and not C) files. 208 LOCAL_CPPFLAGS_Release := \ 209 -fno-rtti \ 210 -fno-threadsafe-statics \ 211 -fvisibility-inlines-hidden \ 212 -Wno-deprecated \ 213 -Wno-abi \ 214 -Wno-error=c++0x-compat \ 215 -Wno-non-virtual-dtor \ 216 -Wno-sign-promo \ 217 -Wno-non-virtual-dtor 218 219 220 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 221 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 222 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 223 ### Rules for final target. 224 225 LOCAL_LDFLAGS_Debug := \ 226 -Wl,-z,now \ 227 -Wl,-z,relro \ 228 -Wl,-z,noexecstack \ 229 -fPIC \ 230 -march=armv7-a \ 231 -Wl,--fix-cortex-a8 \ 232 -Wl,-z,relro \ 233 -Wl,-z,now \ 234 -fuse-ld=gold \ 235 -nostdlib \ 236 -Wl,--no-undefined \ 237 -Wl,--exclude-libs=ALL \ 238 -Wl,--icf=safe \ 239 -Wl,--fatal-warnings \ 240 -Wl,--gc-sections \ 241 -Wl,--warn-shared-textrel \ 242 -Wl,-O1 \ 243 -Wl,--as-needed 244 245 246 LOCAL_LDFLAGS_Release := \ 247 -Wl,-z,now \ 248 -Wl,-z,relro \ 249 -Wl,-z,noexecstack \ 250 -fPIC \ 251 -march=armv7-a \ 252 -Wl,--fix-cortex-a8 \ 253 -Wl,-z,relro \ 254 -Wl,-z,now \ 255 -fuse-ld=gold \ 256 -nostdlib \ 257 -Wl,--no-undefined \ 258 -Wl,--exclude-libs=ALL \ 259 -Wl,--icf=safe \ 260 -Wl,-O1 \ 261 -Wl,--as-needed \ 262 -Wl,--gc-sections \ 263 -Wl,--fatal-warnings \ 264 -Wl,--warn-shared-textrel 265 266 267 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 268 269 LOCAL_STATIC_LIBRARIES := 270 271 # Enable grouping to fix circular references 272 LOCAL_GROUP_STATIC_LIBRARIES := true 273 274 LOCAL_SHARED_LIBRARIES := \ 275 libstlport \ 276 libdl 277 278 # Add target alias to "gyp_all_modules" target. 279 .PHONY: gyp_all_modules 280 gyp_all_modules: skia_skia_opts_neon_gyp 281 282 # Alias gyp target name. 283 .PHONY: skia_opts_neon 284 skia_opts_neon: skia_skia_opts_neon_gyp 285 286 include $(BUILD_STATIC_LIBRARY) 287