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