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