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