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/SkBitmapProcState_arm_neon.cpp \ 26 third_party/skia/src/opts/SkBitmapProcState_matrixProcs_neon.cpp \ 27 third_party/skia/src/opts/SkBitmapProcState_opts_arm.cpp \ 28 third_party/skia/src/opts/SkBlitMask_opts_arm.cpp \ 29 third_party/skia/src/opts/SkBlitMask_opts_arm_neon.cpp \ 30 third_party/skia/src/opts/SkBlitRow_opts_none.cpp \ 31 third_party/skia/src/opts/SkBlurImage_opts_arm.cpp \ 32 third_party/skia/src/opts/SkBlurImage_opts_neon.cpp \ 33 third_party/skia/src/opts/SkMorphology_opts_arm.cpp \ 34 third_party/skia/src/opts/SkMorphology_opts_neon.cpp \ 35 third_party/skia/src/opts/SkTextureCompression_opts_arm.cpp \ 36 third_party/skia/src/opts/SkTextureCompression_opts_neon.cpp \ 37 third_party/skia/src/opts/SkUtils_opts_none.cpp \ 38 third_party/skia/src/opts/SkXfermode_opts_arm.cpp \ 39 third_party/skia/src/opts/SkXfermode_opts_arm_neon.cpp 40 41 42 # Flags passed to both C and C++ files. 43 MY_CFLAGS_Debug := \ 44 --param=ssp-buffer-size=4 \ 45 -fno-strict-aliasing \ 46 -Wno-unused-parameter \ 47 -Wno-missing-field-initializers \ 48 -fvisibility=hidden \ 49 -pipe \ 50 -fPIC \ 51 -Wno-unused-local-typedefs \ 52 -Wno-format \ 53 -ffunction-sections \ 54 -funwind-tables \ 55 -g \ 56 -fno-short-enums \ 57 -finline-limit=64 \ 58 -Wa,--noexecstack \ 59 -U_FORTIFY_SOURCE \ 60 -Wno-extra \ 61 -Wno-ignored-qualifiers \ 62 -Wno-type-limits \ 63 -Wno-unused-but-set-variable \ 64 -Wno-address \ 65 -Wno-format-security \ 66 -Wno-return-type \ 67 -Wno-sequence-point \ 68 -Os \ 69 -g \ 70 -gdwarf-4 \ 71 -fdata-sections \ 72 -ffunction-sections \ 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 -ffunction-sections \ 174 -funwind-tables \ 175 -g \ 176 -fno-short-enums \ 177 -finline-limit=64 \ 178 -Wa,--noexecstack \ 179 -U_FORTIFY_SOURCE \ 180 -Wno-extra \ 181 -Wno-ignored-qualifiers \ 182 -Wno-type-limits \ 183 -Wno-unused-but-set-variable \ 184 -Wno-address \ 185 -Wno-format-security \ 186 -Wno-return-type \ 187 -Wno-sequence-point \ 188 -fno-ident \ 189 -fdata-sections \ 190 -ffunction-sections \ 191 -funwind-tables \ 192 -O2 193 194 MY_DEFS_Release := \ 195 '-DV8_DEPRECATION_WARNINGS' \ 196 '-D_FILE_OFFSET_BITS=64' \ 197 '-DNO_TCMALLOC' \ 198 '-DDISABLE_NACL' \ 199 '-DCHROMIUM_BUILD' \ 200 '-DUSE_LIBJPEG_TURBO=1' \ 201 '-DENABLE_WEBRTC=1' \ 202 '-DUSE_PROPRIETARY_CODECS' \ 203 '-DENABLE_BROWSER_CDMS' \ 204 '-DENABLE_CONFIGURATION_POLICY' \ 205 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 206 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 207 '-DENABLE_EGLIMAGE=1' \ 208 '-DCLD_VERSION=1' \ 209 '-DENABLE_PRINTING=1' \ 210 '-DENABLE_MANAGED_USERS=1' \ 211 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 212 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 213 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 214 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 215 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 216 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 217 '-DVIDEO_HOLE=1' \ 218 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 219 '-DSK_ENABLE_INST_COUNT=0' \ 220 '-DSK_SUPPORT_GPU=1' \ 221 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 222 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 223 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 224 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 225 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 226 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 227 '-DSK_BUILD_FOR_ANDROID' \ 228 '-DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0' \ 229 '-DSK_DISABLE_OFFSETIMAGEFILTER_OPTIMIZATION' \ 230 '-DIGNORE_ROT_AA_RECT_OPT' \ 231 '-DSK_IGNORE_BLURRED_RRECT_OPT' \ 232 '-DSK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS' \ 233 '-DSK_DEFAULT_FONT_CACHE_LIMIT=(1*1024*1024)' \ 234 '-DSK_USE_DISCARDABLE_SCALEDIMAGECACHE' \ 235 '-DSK_GAMMA_APPLY_TO_A8' \ 236 '-DSK_GAMMA_EXPONENT=1.4' \ 237 '-DSK_GAMMA_CONTRAST=0.0' \ 238 '-DSK_USE_POSIX_THREADS' \ 239 '-DUSE_OPENSSL=1' \ 240 '-DUSE_OPENSSL_CERTS=1' \ 241 '-DANDROID' \ 242 '-D__GNU_SOURCE=1' \ 243 '-DUSE_STLPORT=1' \ 244 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 245 '-DCHROME_BUILD_ID=""' \ 246 '-DNDEBUG' \ 247 '-DNVALGRIND' \ 248 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 249 250 251 # Include paths placed before CFLAGS/CPPFLAGS 252 LOCAL_C_INCLUDES_Release := \ 253 $(gyp_shared_intermediate_dir) \ 254 $(LOCAL_PATH)/third_party/skia/include/core \ 255 $(LOCAL_PATH)/third_party/skia/include/effects \ 256 $(LOCAL_PATH)/third_party/skia/src/core \ 257 $(LOCAL_PATH)/third_party/skia/src/opts \ 258 $(LOCAL_PATH)/third_party/skia/src/utils \ 259 $(LOCAL_PATH) \ 260 $(LOCAL_PATH)/skia/config \ 261 $(PWD)/frameworks/wilhelm/include \ 262 $(PWD)/bionic \ 263 $(PWD)/external/stlport/stlport 264 265 266 # Flags passed to only C++ (and not C) files. 267 LOCAL_CPPFLAGS_Release := \ 268 -fno-exceptions \ 269 -fno-rtti \ 270 -fno-threadsafe-statics \ 271 -fvisibility-inlines-hidden \ 272 -Wno-deprecated \ 273 -std=gnu++11 \ 274 -Wno-narrowing \ 275 -Wno-literal-suffix \ 276 -Wno-non-virtual-dtor \ 277 -Wno-sign-promo \ 278 -Wno-non-virtual-dtor 279 280 281 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 282 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 283 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 284 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 285 ### Rules for final target. 286 287 LOCAL_SHARED_LIBRARIES := \ 288 libstlport \ 289 libdl 290 291 ### Set directly by aosp_build_settings. 292 LOCAL_FDO_SUPPORT := true 293 294 # Add target alias to "gyp_all_modules" target. 295 .PHONY: gyp_all_modules 296 gyp_all_modules: skia_skia_opts_gyp 297 298 # Alias gyp target name. 299 .PHONY: skia_opts 300 skia_opts: skia_skia_opts_gyp 301 302 include $(BUILD_STATIC_LIBRARY) 303