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