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