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_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 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/SkBitmapProcState_arm_neon.cpp \ 26 third_party/skia/src/opts/SkBitmapProcState_matrixProcs_neon.cpp \ 27 third_party/skia/src/opts/SkBlitMask_opts_arm_neon.cpp \ 28 third_party/skia/src/opts/SkBlitRow_opts_arm_neon.cpp \ 29 third_party/skia/src/opts/SkBlurImage_opts_neon.cpp \ 30 third_party/skia/src/opts/SkMorphology_opts_neon.cpp \ 31 third_party/skia/src/opts/SkTextureCompression_opts_neon.cpp \ 32 third_party/skia/src/opts/SkXfermode_opts_arm_neon.cpp \ 33 third_party/skia/src/opts/memset16_neon.S \ 34 third_party/skia/src/opts/memset32_neon.S 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-strict-aliasing \ 42 -Wno-unused-parameter \ 43 -Wno-missing-field-initializers \ 44 -fvisibility=hidden \ 45 -pipe \ 46 -fPIC \ 47 -Wno-unused-local-typedefs \ 48 -mfpu=neon \ 49 -fomit-frame-pointer \ 50 -Wno-format \ 51 -fno-tree-sra \ 52 -fno-caller-saves \ 53 -Wno-psabi \ 54 -fno-partial-inlining \ 55 -fno-early-inlining \ 56 -fno-tree-copy-prop \ 57 -fno-tree-loop-optimize \ 58 -fno-move-loop-invariants \ 59 -ffunction-sections \ 60 -funwind-tables \ 61 -g \ 62 -fstack-protector \ 63 -fno-short-enums \ 64 -finline-limit=64 \ 65 -Wa,--noexecstack \ 66 -U_FORTIFY_SOURCE \ 67 -Wno-extra \ 68 -Wno-ignored-qualifiers \ 69 -Wno-type-limits \ 70 -Wno-unused-but-set-variable \ 71 -Wno-address \ 72 -Wno-format-security \ 73 -Wno-return-type \ 74 -Wno-sequence-point \ 75 -Os \ 76 -g \ 77 -gdwarf-4 \ 78 -fdata-sections \ 79 -ffunction-sections \ 80 -fomit-frame-pointer \ 81 -funwind-tables 82 83 MY_DEFS_Debug := \ 84 '-DV8_DEPRECATION_WARNINGS' \ 85 '-D_FILE_OFFSET_BITS=64' \ 86 '-DNO_TCMALLOC' \ 87 '-DDISABLE_NACL' \ 88 '-DCHROMIUM_BUILD' \ 89 '-DUSE_LIBJPEG_TURBO=1' \ 90 '-DENABLE_WEBRTC=1' \ 91 '-DUSE_PROPRIETARY_CODECS' \ 92 '-DENABLE_BROWSER_CDMS' \ 93 '-DENABLE_CONFIGURATION_POLICY' \ 94 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 95 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 96 '-DENABLE_EGLIMAGE=1' \ 97 '-DCLD_VERSION=1' \ 98 '-DENABLE_PRINTING=1' \ 99 '-DENABLE_MANAGED_USERS=1' \ 100 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 101 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 102 '-DDATA_REDUCTION_DEV_FALLBACK_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 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 108 '-DSK_ENABLE_INST_COUNT=0' \ 109 '-DSK_SUPPORT_GPU=1' \ 110 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 111 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 112 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 113 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 114 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 115 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 116 '-DSK_BUILD_FOR_ANDROID' \ 117 '-DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0' \ 118 '-DSK_DISABLE_OFFSETIMAGEFILTER_OPTIMIZATION' \ 119 '-DIGNORE_ROT_AA_RECT_OPT' \ 120 '-DSK_IGNORE_BLURRED_RRECT_OPT' \ 121 '-DSK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS' \ 122 '-DSK_DEFAULT_FONT_CACHE_LIMIT=(1*1024*1024)' \ 123 '-DSK_USE_DISCARDABLE_SCALEDIMAGECACHE' \ 124 '-DSK_GAMMA_APPLY_TO_A8' \ 125 '-DSK_GAMMA_EXPONENT=1.4' \ 126 '-DSK_GAMMA_CONTRAST=0.0' \ 127 '-DSK_USE_POSIX_THREADS' \ 128 '-DSK_ARM_HAS_OPTIONAL_NEON' \ 129 '-DUSE_OPENSSL=1' \ 130 '-DUSE_OPENSSL_CERTS=1' \ 131 '-DANDROID' \ 132 '-D__GNU_SOURCE=1' \ 133 '-DUSE_STLPORT=1' \ 134 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 135 '-DCHROME_BUILD_ID=""' \ 136 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 137 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 138 '-D_DEBUG' 139 140 141 # Include paths placed before CFLAGS/CPPFLAGS 142 LOCAL_C_INCLUDES_Debug := \ 143 $(gyp_shared_intermediate_dir) \ 144 $(LOCAL_PATH)/third_party/skia/include/core \ 145 $(LOCAL_PATH)/third_party/skia/include/effects \ 146 $(LOCAL_PATH)/third_party/skia/src/core \ 147 $(LOCAL_PATH)/third_party/skia/src/opts \ 148 $(LOCAL_PATH)/third_party/skia/src/utils \ 149 $(LOCAL_PATH) \ 150 $(LOCAL_PATH)/skia/config \ 151 $(PWD)/frameworks/wilhelm/include \ 152 $(PWD)/bionic \ 153 $(PWD)/external/stlport/stlport 154 155 156 # Flags passed to only C++ (and not C) files. 157 LOCAL_CPPFLAGS_Debug := \ 158 -fno-exceptions \ 159 -fno-rtti \ 160 -fno-threadsafe-statics \ 161 -fvisibility-inlines-hidden \ 162 -Wno-deprecated \ 163 -Wno-abi \ 164 -std=gnu++11 \ 165 -Wno-narrowing \ 166 -Wno-literal-suffix \ 167 -Wno-non-virtual-dtor \ 168 -Wno-sign-promo \ 169 -Wno-non-virtual-dtor 170 171 172 # Flags passed to both C and C++ files. 173 MY_CFLAGS_Release := \ 174 -fstack-protector \ 175 --param=ssp-buffer-size=4 \ 176 -fno-strict-aliasing \ 177 -Wno-unused-parameter \ 178 -Wno-missing-field-initializers \ 179 -fvisibility=hidden \ 180 -pipe \ 181 -fPIC \ 182 -Wno-unused-local-typedefs \ 183 -mfpu=neon \ 184 -fomit-frame-pointer \ 185 -Wno-format \ 186 -fno-tree-sra \ 187 -fno-caller-saves \ 188 -Wno-psabi \ 189 -fno-partial-inlining \ 190 -fno-early-inlining \ 191 -fno-tree-copy-prop \ 192 -fno-tree-loop-optimize \ 193 -fno-move-loop-invariants \ 194 -ffunction-sections \ 195 -funwind-tables \ 196 -g \ 197 -fstack-protector \ 198 -fno-short-enums \ 199 -finline-limit=64 \ 200 -Wa,--noexecstack \ 201 -U_FORTIFY_SOURCE \ 202 -Wno-extra \ 203 -Wno-ignored-qualifiers \ 204 -Wno-type-limits \ 205 -Wno-unused-but-set-variable \ 206 -Wno-address \ 207 -Wno-format-security \ 208 -Wno-return-type \ 209 -Wno-sequence-point \ 210 -fno-ident \ 211 -fdata-sections \ 212 -ffunction-sections \ 213 -fomit-frame-pointer \ 214 -funwind-tables \ 215 -O2 216 217 MY_DEFS_Release := \ 218 '-DV8_DEPRECATION_WARNINGS' \ 219 '-D_FILE_OFFSET_BITS=64' \ 220 '-DNO_TCMALLOC' \ 221 '-DDISABLE_NACL' \ 222 '-DCHROMIUM_BUILD' \ 223 '-DUSE_LIBJPEG_TURBO=1' \ 224 '-DENABLE_WEBRTC=1' \ 225 '-DUSE_PROPRIETARY_CODECS' \ 226 '-DENABLE_BROWSER_CDMS' \ 227 '-DENABLE_CONFIGURATION_POLICY' \ 228 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 229 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 230 '-DENABLE_EGLIMAGE=1' \ 231 '-DCLD_VERSION=1' \ 232 '-DENABLE_PRINTING=1' \ 233 '-DENABLE_MANAGED_USERS=1' \ 234 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 235 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 236 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 237 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 238 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 239 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 240 '-DVIDEO_HOLE=1' \ 241 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 242 '-DSK_ENABLE_INST_COUNT=0' \ 243 '-DSK_SUPPORT_GPU=1' \ 244 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 245 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 246 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 247 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 248 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 249 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 250 '-DSK_BUILD_FOR_ANDROID' \ 251 '-DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0' \ 252 '-DSK_DISABLE_OFFSETIMAGEFILTER_OPTIMIZATION' \ 253 '-DIGNORE_ROT_AA_RECT_OPT' \ 254 '-DSK_IGNORE_BLURRED_RRECT_OPT' \ 255 '-DSK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS' \ 256 '-DSK_DEFAULT_FONT_CACHE_LIMIT=(1*1024*1024)' \ 257 '-DSK_USE_DISCARDABLE_SCALEDIMAGECACHE' \ 258 '-DSK_GAMMA_APPLY_TO_A8' \ 259 '-DSK_GAMMA_EXPONENT=1.4' \ 260 '-DSK_GAMMA_CONTRAST=0.0' \ 261 '-DSK_USE_POSIX_THREADS' \ 262 '-DSK_ARM_HAS_OPTIONAL_NEON' \ 263 '-DUSE_OPENSSL=1' \ 264 '-DUSE_OPENSSL_CERTS=1' \ 265 '-DANDROID' \ 266 '-D__GNU_SOURCE=1' \ 267 '-DUSE_STLPORT=1' \ 268 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 269 '-DCHROME_BUILD_ID=""' \ 270 '-DNDEBUG' \ 271 '-DNVALGRIND' \ 272 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 273 274 275 # Include paths placed before CFLAGS/CPPFLAGS 276 LOCAL_C_INCLUDES_Release := \ 277 $(gyp_shared_intermediate_dir) \ 278 $(LOCAL_PATH)/third_party/skia/include/core \ 279 $(LOCAL_PATH)/third_party/skia/include/effects \ 280 $(LOCAL_PATH)/third_party/skia/src/core \ 281 $(LOCAL_PATH)/third_party/skia/src/opts \ 282 $(LOCAL_PATH)/third_party/skia/src/utils \ 283 $(LOCAL_PATH) \ 284 $(LOCAL_PATH)/skia/config \ 285 $(PWD)/frameworks/wilhelm/include \ 286 $(PWD)/bionic \ 287 $(PWD)/external/stlport/stlport 288 289 290 # Flags passed to only C++ (and not C) files. 291 LOCAL_CPPFLAGS_Release := \ 292 -fno-exceptions \ 293 -fno-rtti \ 294 -fno-threadsafe-statics \ 295 -fvisibility-inlines-hidden \ 296 -Wno-deprecated \ 297 -Wno-abi \ 298 -std=gnu++11 \ 299 -Wno-narrowing \ 300 -Wno-literal-suffix \ 301 -Wno-non-virtual-dtor \ 302 -Wno-sign-promo \ 303 -Wno-non-virtual-dtor 304 305 306 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 307 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 308 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 309 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 310 ### Rules for final target. 311 312 LOCAL_SHARED_LIBRARIES := \ 313 libstlport \ 314 libdl 315 316 ### Set directly by aosp_build_settings. 317 LOCAL_FDO_SUPPORT := true 318 319 # Add target alias to "gyp_all_modules" target. 320 .PHONY: gyp_all_modules 321 gyp_all_modules: skia_skia_opts_neon_gyp 322 323 # Alias gyp target name. 324 .PHONY: skia_opts_neon 325 skia_opts_neon: skia_skia_opts_neon_gyp 326 327 include $(BUILD_STATIC_LIBRARY) 328