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 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13 # Make sure our deps are built first. 14 GYP_TARGET_DEPENDENCIES := 15 16 GYP_GENERATED_OUTPUTS := 17 18 # Make sure our deps and generated files are built first. 19 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21 LOCAL_GENERATED_SOURCES := 22 23 GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25 LOCAL_SRC_FILES := \ 26 third_party/skia/src/opts/memset16_neon.S \ 27 third_party/skia/src/opts/memset32_neon.S \ 28 third_party/skia/src/opts/SkBitmapProcState_arm_neon.cpp \ 29 third_party/skia/src/opts/SkBitmapProcState_matrixProcs_neon.cpp \ 30 third_party/skia/src/opts/SkBlitMask_opts_arm_neon.cpp \ 31 third_party/skia/src/opts/SkBlitRow_opts_arm_neon.cpp \ 32 third_party/skia/src/opts/SkXfermode_opts_arm_neon.cpp \ 33 third_party/skia/src/opts/SkBlurImage_opts_neon.cpp \ 34 third_party/skia/src/opts/SkMorphology_opts_neon.cpp 35 36 37 # Flags passed to both C and C++ files. 38 MY_CFLAGS_Debug := \ 39 -fstack-protector \ 40 --param=ssp-buffer-size=4 \ 41 -fno-exceptions \ 42 -fno-strict-aliasing \ 43 -Wno-unused-parameter \ 44 -Wno-missing-field-initializers \ 45 -fvisibility=hidden \ 46 -pipe \ 47 -fPIC \ 48 -Wno-unused-local-typedefs \ 49 -mfpu=neon \ 50 -fomit-frame-pointer \ 51 -Wno-format \ 52 -fno-tree-sra \ 53 -fno-partial-inlining \ 54 -fno-early-inlining \ 55 -fno-tree-copy-prop \ 56 -fno-tree-loop-optimize \ 57 -fno-move-loop-invariants \ 58 -fno-caller-saves \ 59 -Wno-psabi \ 60 -ffunction-sections \ 61 -funwind-tables \ 62 -g \ 63 -fstack-protector \ 64 -fno-short-enums \ 65 -finline-limit=64 \ 66 -Wa,--noexecstack \ 67 -U_FORTIFY_SOURCE \ 68 -Wno-extra \ 69 -Wno-ignored-qualifiers \ 70 -Wno-type-limits \ 71 -Wno-unused-but-set-variable \ 72 -Wno-address \ 73 -Wno-format-security \ 74 -Wno-return-type \ 75 -Wno-sequence-point \ 76 -Os \ 77 -g \ 78 -fdata-sections \ 79 -ffunction-sections \ 80 -fomit-frame-pointer \ 81 -funwind-tables 82 83 MY_DEFS_Debug := \ 84 '-DV8_DEPRECATION_WARNINGS' \ 85 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 86 '-D_FILE_OFFSET_BITS=64' \ 87 '-DNO_TCMALLOC' \ 88 '-DDISABLE_NACL' \ 89 '-DCHROMIUM_BUILD' \ 90 '-DUSE_LIBJPEG_TURBO=1' \ 91 '-DENABLE_WEBRTC=1' \ 92 '-DUSE_PROPRIETARY_CODECS' \ 93 '-DENABLE_BROWSER_CDMS' \ 94 '-DENABLE_CONFIGURATION_POLICY' \ 95 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 96 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 97 '-DENABLE_EGLIMAGE=1' \ 98 '-DCLD_VERSION=1' \ 99 '-DENABLE_PRINTING=1' \ 100 '-DENABLE_MANAGED_USERS=1' \ 101 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 102 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 103 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 104 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 105 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 106 '-DVIDEO_HOLE=1' \ 107 '-DSK_ENABLE_INST_COUNT=0' \ 108 '-DSK_SUPPORT_GPU=1' \ 109 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 110 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 111 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 112 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 113 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 114 '-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \ 115 '-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \ 116 '-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \ 117 '-DSK_SUPPORT_LEGACY_N32_NAME' \ 118 '-DSK_SUPPORT_LEGACY_SETCONFIG' \ 119 '-DSK_IGNORE_ETC1_SUPPORT' \ 120 '-DSK_IGNORE_GPU_DITHER' \ 121 '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \ 122 '-DSK_BUILD_FOR_ANDROID' \ 123 '-DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0' \ 124 '-DSK_DISABLE_OFFSETIMAGEFILTER_OPTIMIZATION' \ 125 '-DSK_DISABLE_PIXELREF_LOCKCOUNT_BALANCE_CHECK' \ 126 '-DIGNORE_ROT_AA_RECT_OPT' \ 127 '-DSK_IGNORE_BLURRED_RRECT_OPT' \ 128 '-DSK_IGNORE_QUAD_RR_CORNERS_OPT' \ 129 '-DSK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS' \ 130 '-DSK_DEFAULT_FONT_CACHE_LIMIT=(1*1024*1024)' \ 131 '-DSK_USE_DISCARDABLE_SCALEDIMAGECACHE' \ 132 '-D__ARM_HAVE_OPTIONAL_NEON_SUPPORT' \ 133 '-DSK_FONTHOST_DOES_NOT_USE_FONTMGR' \ 134 '-DSK_GAMMA_APPLY_TO_A8' \ 135 '-DSK_GAMMA_EXPONENT=1.4' \ 136 '-DSK_GAMMA_CONTRAST=0.0' \ 137 '-DSK_USE_POSIX_THREADS' \ 138 '-DUSE_OPENSSL=1' \ 139 '-DUSE_OPENSSL_CERTS=1' \ 140 '-DANDROID' \ 141 '-D__GNU_SOURCE=1' \ 142 '-DUSE_STLPORT=1' \ 143 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 144 '-DCHROME_BUILD_ID=""' \ 145 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 146 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 147 '-D_DEBUG' 148 149 150 # Include paths placed before CFLAGS/CPPFLAGS 151 LOCAL_C_INCLUDES_Debug := \ 152 $(gyp_shared_intermediate_dir) \ 153 $(LOCAL_PATH)/third_party/skia/include/core \ 154 $(LOCAL_PATH)/third_party/skia/include/effects \ 155 $(LOCAL_PATH)/third_party/skia/src/core \ 156 $(LOCAL_PATH)/third_party/skia/src/opts \ 157 $(LOCAL_PATH) \ 158 $(LOCAL_PATH)/skia/config \ 159 $(PWD)/frameworks/wilhelm/include \ 160 $(PWD)/bionic \ 161 $(PWD)/external/stlport/stlport 162 163 164 # Flags passed to only C++ (and not C) files. 165 LOCAL_CPPFLAGS_Debug := \ 166 -fno-rtti \ 167 -fno-threadsafe-statics \ 168 -fvisibility-inlines-hidden \ 169 -Wno-deprecated \ 170 -Wno-abi \ 171 -Wno-non-virtual-dtor \ 172 -Wno-sign-promo \ 173 -Wno-non-virtual-dtor 174 175 176 LOCAL_FDO_SUPPORT_Debug := false 177 178 # Flags passed to both C and C++ files. 179 MY_CFLAGS_Release := \ 180 -fstack-protector \ 181 --param=ssp-buffer-size=4 \ 182 -fno-exceptions \ 183 -fno-strict-aliasing \ 184 -Wno-unused-parameter \ 185 -Wno-missing-field-initializers \ 186 -fvisibility=hidden \ 187 -pipe \ 188 -fPIC \ 189 -Wno-unused-local-typedefs \ 190 -mfpu=neon \ 191 -fomit-frame-pointer \ 192 -Wno-format \ 193 -fno-tree-sra \ 194 -fno-partial-inlining \ 195 -fno-early-inlining \ 196 -fno-tree-copy-prop \ 197 -fno-tree-loop-optimize \ 198 -fno-move-loop-invariants \ 199 -fno-caller-saves \ 200 -Wno-psabi \ 201 -ffunction-sections \ 202 -funwind-tables \ 203 -g \ 204 -fstack-protector \ 205 -fno-short-enums \ 206 -finline-limit=64 \ 207 -Wa,--noexecstack \ 208 -U_FORTIFY_SOURCE \ 209 -Wno-extra \ 210 -Wno-ignored-qualifiers \ 211 -Wno-type-limits \ 212 -Wno-unused-but-set-variable \ 213 -Wno-address \ 214 -Wno-format-security \ 215 -Wno-return-type \ 216 -Wno-sequence-point \ 217 -Os \ 218 -fno-ident \ 219 -fdata-sections \ 220 -ffunction-sections \ 221 -fomit-frame-pointer \ 222 -funwind-tables 223 224 MY_DEFS_Release := \ 225 '-DV8_DEPRECATION_WARNINGS' \ 226 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 227 '-D_FILE_OFFSET_BITS=64' \ 228 '-DNO_TCMALLOC' \ 229 '-DDISABLE_NACL' \ 230 '-DCHROMIUM_BUILD' \ 231 '-DUSE_LIBJPEG_TURBO=1' \ 232 '-DENABLE_WEBRTC=1' \ 233 '-DUSE_PROPRIETARY_CODECS' \ 234 '-DENABLE_BROWSER_CDMS' \ 235 '-DENABLE_CONFIGURATION_POLICY' \ 236 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 237 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 238 '-DENABLE_EGLIMAGE=1' \ 239 '-DCLD_VERSION=1' \ 240 '-DENABLE_PRINTING=1' \ 241 '-DENABLE_MANAGED_USERS=1' \ 242 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 243 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 244 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 245 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 246 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 247 '-DVIDEO_HOLE=1' \ 248 '-DSK_ENABLE_INST_COUNT=0' \ 249 '-DSK_SUPPORT_GPU=1' \ 250 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 251 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 252 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 253 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 254 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 255 '-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \ 256 '-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \ 257 '-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \ 258 '-DSK_SUPPORT_LEGACY_N32_NAME' \ 259 '-DSK_SUPPORT_LEGACY_SETCONFIG' \ 260 '-DSK_IGNORE_ETC1_SUPPORT' \ 261 '-DSK_IGNORE_GPU_DITHER' \ 262 '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \ 263 '-DSK_BUILD_FOR_ANDROID' \ 264 '-DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0' \ 265 '-DSK_DISABLE_OFFSETIMAGEFILTER_OPTIMIZATION' \ 266 '-DSK_DISABLE_PIXELREF_LOCKCOUNT_BALANCE_CHECK' \ 267 '-DIGNORE_ROT_AA_RECT_OPT' \ 268 '-DSK_IGNORE_BLURRED_RRECT_OPT' \ 269 '-DSK_IGNORE_QUAD_RR_CORNERS_OPT' \ 270 '-DSK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS' \ 271 '-DSK_DEFAULT_FONT_CACHE_LIMIT=(1*1024*1024)' \ 272 '-DSK_USE_DISCARDABLE_SCALEDIMAGECACHE' \ 273 '-D__ARM_HAVE_OPTIONAL_NEON_SUPPORT' \ 274 '-DSK_FONTHOST_DOES_NOT_USE_FONTMGR' \ 275 '-DSK_GAMMA_APPLY_TO_A8' \ 276 '-DSK_GAMMA_EXPONENT=1.4' \ 277 '-DSK_GAMMA_CONTRAST=0.0' \ 278 '-DSK_USE_POSIX_THREADS' \ 279 '-DUSE_OPENSSL=1' \ 280 '-DUSE_OPENSSL_CERTS=1' \ 281 '-DANDROID' \ 282 '-D__GNU_SOURCE=1' \ 283 '-DUSE_STLPORT=1' \ 284 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 285 '-DCHROME_BUILD_ID=""' \ 286 '-DNDEBUG' \ 287 '-DNVALGRIND' \ 288 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 289 290 291 # Include paths placed before CFLAGS/CPPFLAGS 292 LOCAL_C_INCLUDES_Release := \ 293 $(gyp_shared_intermediate_dir) \ 294 $(LOCAL_PATH)/third_party/skia/include/core \ 295 $(LOCAL_PATH)/third_party/skia/include/effects \ 296 $(LOCAL_PATH)/third_party/skia/src/core \ 297 $(LOCAL_PATH)/third_party/skia/src/opts \ 298 $(LOCAL_PATH) \ 299 $(LOCAL_PATH)/skia/config \ 300 $(PWD)/frameworks/wilhelm/include \ 301 $(PWD)/bionic \ 302 $(PWD)/external/stlport/stlport 303 304 305 # Flags passed to only C++ (and not C) files. 306 LOCAL_CPPFLAGS_Release := \ 307 -fno-rtti \ 308 -fno-threadsafe-statics \ 309 -fvisibility-inlines-hidden \ 310 -Wno-deprecated \ 311 -Wno-abi \ 312 -Wno-non-virtual-dtor \ 313 -Wno-sign-promo \ 314 -Wno-non-virtual-dtor 315 316 317 LOCAL_FDO_SUPPORT_Release := true 318 319 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 320 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 321 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 322 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 323 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 324 ### Rules for final target. 325 326 LOCAL_LDFLAGS_Debug := \ 327 -Wl,-z,now \ 328 -Wl,-z,relro \ 329 -Wl,--fatal-warnings \ 330 -Wl,-z,noexecstack \ 331 -fPIC \ 332 -march=armv7-a \ 333 -Wl,--fix-cortex-a8 \ 334 -Wl,-z,relro \ 335 -Wl,-z,now \ 336 -fuse-ld=gold \ 337 -nostdlib \ 338 -Wl,--no-undefined \ 339 -Wl,--exclude-libs=ALL \ 340 -Wl,--icf=safe \ 341 -Wl,--warn-shared-textrel \ 342 -Wl,-O1 \ 343 -Wl,--as-needed 344 345 346 LOCAL_LDFLAGS_Release := \ 347 -Wl,-z,now \ 348 -Wl,-z,relro \ 349 -Wl,--fatal-warnings \ 350 -Wl,-z,noexecstack \ 351 -fPIC \ 352 -march=armv7-a \ 353 -Wl,--fix-cortex-a8 \ 354 -Wl,-z,relro \ 355 -Wl,-z,now \ 356 -fuse-ld=gold \ 357 -nostdlib \ 358 -Wl,--no-undefined \ 359 -Wl,--exclude-libs=ALL \ 360 -Wl,--icf=safe \ 361 -Wl,-O1 \ 362 -Wl,--as-needed \ 363 -Wl,--gc-sections \ 364 -Wl,--warn-shared-textrel 365 366 367 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 368 369 LOCAL_STATIC_LIBRARIES := 370 371 # Enable grouping to fix circular references 372 LOCAL_GROUP_STATIC_LIBRARIES := true 373 374 LOCAL_SHARED_LIBRARIES := \ 375 libstlport \ 376 libdl 377 378 # Add target alias to "gyp_all_modules" target. 379 .PHONY: gyp_all_modules 380 gyp_all_modules: skia_skia_opts_neon_gyp 381 382 # Alias gyp target name. 383 .PHONY: skia_opts_neon 384 skia_opts_neon: skia_skia_opts_neon_gyp 385 386 include $(BUILD_STATIC_LIBRARY) 387