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_chrome_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 $(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a 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_CPP_EXTENSION := .cc 22 $(gyp_intermediate_dir)/SkMemory_new_handler.cc: $(LOCAL_PATH)/skia/ext/SkMemory_new_handler.cpp 23 mkdir -p $(@D); cp $< $@ 24 LOCAL_GENERATED_SOURCES := \ 25 $(gyp_intermediate_dir)/SkMemory_new_handler.cc 26 27 GYP_COPIED_SOURCE_ORIGIN_DIRS := \ 28 $(LOCAL_PATH)/skia/ext 29 30 LOCAL_SRC_FILES := \ 31 skia/ext/analysis_canvas.cc \ 32 skia/ext/benchmarking_canvas.cc \ 33 skia/ext/bitmap_platform_device_skia.cc \ 34 skia/ext/convolver.cc \ 35 skia/ext/event_tracer_impl.cc \ 36 skia/ext/google_logging.cc \ 37 skia/ext/image_operations.cc \ 38 skia/ext/lazy_pixel_ref.cc \ 39 skia/ext/opacity_draw_filter.cc \ 40 skia/ext/paint_simplifier.cc \ 41 skia/ext/pixel_ref_utils.cc \ 42 skia/ext/platform_canvas.cc \ 43 skia/ext/platform_device.cc \ 44 skia/ext/platform_device_linux.cc \ 45 skia/ext/recursive_gaussian_convolution.cc \ 46 skia/ext/SkDiscardableMemory_chrome.cc \ 47 skia/ext/skia_utils_base.cc \ 48 skia/ext/vector_platform_device_skia.cc 49 50 51 # Flags passed to both C and C++ files. 52 MY_CFLAGS_Debug := \ 53 --param=ssp-buffer-size=4 \ 54 -fno-strict-aliasing \ 55 -Wno-unused-parameter \ 56 -Wno-missing-field-initializers \ 57 -fvisibility=hidden \ 58 -pipe \ 59 -fPIC \ 60 -Wno-unused-local-typedefs \ 61 -Wno-format \ 62 -msse2 \ 63 -mfpmath=sse \ 64 -mmmx \ 65 -m32 \ 66 -ffunction-sections \ 67 -funwind-tables \ 68 -g \ 69 -fno-short-enums \ 70 -finline-limit=64 \ 71 -Wa,--noexecstack \ 72 -U_FORTIFY_SOURCE \ 73 -Wno-extra \ 74 -Wno-ignored-qualifiers \ 75 -Wno-type-limits \ 76 -Wno-unused-but-set-variable \ 77 -fno-stack-protector \ 78 -Wno-address \ 79 -Wno-format-security \ 80 -Wno-return-type \ 81 -Wno-sequence-point \ 82 -Os \ 83 -g \ 84 -gdwarf-4 \ 85 -fdata-sections \ 86 -ffunction-sections \ 87 -fomit-frame-pointer \ 88 -funwind-tables 89 90 MY_DEFS_Debug := \ 91 '-DV8_DEPRECATION_WARNINGS' \ 92 '-D_FILE_OFFSET_BITS=64' \ 93 '-DNO_TCMALLOC' \ 94 '-DDISABLE_NACL' \ 95 '-DCHROMIUM_BUILD' \ 96 '-DUSE_LIBJPEG_TURBO=1' \ 97 '-DENABLE_WEBRTC=1' \ 98 '-DUSE_PROPRIETARY_CODECS' \ 99 '-DENABLE_BROWSER_CDMS' \ 100 '-DENABLE_CONFIGURATION_POLICY' \ 101 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 102 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 103 '-DENABLE_EGLIMAGE=1' \ 104 '-DCLD_VERSION=1' \ 105 '-DENABLE_PRINTING=1' \ 106 '-DENABLE_MANAGED_USERS=1' \ 107 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 108 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 109 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 110 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 111 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 112 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 113 '-DVIDEO_HOLE=1' \ 114 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 115 '-DSK_ENABLE_INST_COUNT=0' \ 116 '-DSK_SUPPORT_GPU=1' \ 117 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 118 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 119 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 120 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 121 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 122 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 123 '-DSK_BUILD_FOR_ANDROID' \ 124 '-DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0' \ 125 '-DSK_DISABLE_OFFSETIMAGEFILTER_OPTIMIZATION' \ 126 '-DIGNORE_ROT_AA_RECT_OPT' \ 127 '-DSK_IGNORE_BLURRED_RRECT_OPT' \ 128 '-DSK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS' \ 129 '-DSK_DEFAULT_FONT_CACHE_LIMIT=(1*1024*1024)' \ 130 '-DSK_USE_DISCARDABLE_SCALEDIMAGECACHE' \ 131 '-DSK_GAMMA_APPLY_TO_A8' \ 132 '-DSK_GAMMA_EXPONENT=1.4' \ 133 '-DSK_GAMMA_CONTRAST=0.0' \ 134 '-DSK_USE_POSIX_THREADS' \ 135 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 136 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 137 '-DUSE_OPENSSL=1' \ 138 '-DUSE_OPENSSL_CERTS=1' \ 139 '-DANDROID' \ 140 '-D__GNU_SOURCE=1' \ 141 '-DUSE_STLPORT=1' \ 142 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 143 '-DCHROME_BUILD_ID=""' \ 144 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 145 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 146 '-D_DEBUG' 147 148 149 # Include paths placed before CFLAGS/CPPFLAGS 150 LOCAL_C_INCLUDES_Debug := \ 151 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 152 $(gyp_shared_intermediate_dir) \ 153 $(LOCAL_PATH) \ 154 $(LOCAL_PATH)/skia/config \ 155 $(LOCAL_PATH)/third_party/skia/src/core \ 156 $(LOCAL_PATH)/third_party/skia/include/core \ 157 $(LOCAL_PATH)/third_party/skia/include/effects \ 158 $(LOCAL_PATH)/third_party/skia/include/pdf \ 159 $(LOCAL_PATH)/third_party/skia/include/gpu \ 160 $(LOCAL_PATH)/third_party/skia/include/lazy \ 161 $(LOCAL_PATH)/third_party/skia/include/pathops \ 162 $(LOCAL_PATH)/third_party/skia/include/pipe \ 163 $(LOCAL_PATH)/third_party/skia/include/ports \ 164 $(LOCAL_PATH)/third_party/skia/include/utils \ 165 $(PWD)/frameworks/wilhelm/include \ 166 $(PWD)/bionic \ 167 $(PWD)/external/stlport/stlport 168 169 170 # Flags passed to only C++ (and not C) files. 171 LOCAL_CPPFLAGS_Debug := \ 172 -fno-exceptions \ 173 -fno-rtti \ 174 -fno-threadsafe-statics \ 175 -fvisibility-inlines-hidden \ 176 -Wno-deprecated \ 177 -std=gnu++11 \ 178 -Wno-narrowing \ 179 -Wno-literal-suffix \ 180 -Wno-non-virtual-dtor \ 181 -Wno-sign-promo \ 182 -Wno-non-virtual-dtor 183 184 185 # Flags passed to both C and C++ files. 186 MY_CFLAGS_Release := \ 187 --param=ssp-buffer-size=4 \ 188 -fno-strict-aliasing \ 189 -Wno-unused-parameter \ 190 -Wno-missing-field-initializers \ 191 -fvisibility=hidden \ 192 -pipe \ 193 -fPIC \ 194 -Wno-unused-local-typedefs \ 195 -Wno-format \ 196 -msse2 \ 197 -mfpmath=sse \ 198 -mmmx \ 199 -m32 \ 200 -ffunction-sections \ 201 -funwind-tables \ 202 -g \ 203 -fno-short-enums \ 204 -finline-limit=64 \ 205 -Wa,--noexecstack \ 206 -U_FORTIFY_SOURCE \ 207 -Wno-extra \ 208 -Wno-ignored-qualifiers \ 209 -Wno-type-limits \ 210 -Wno-unused-but-set-variable \ 211 -fno-stack-protector \ 212 -Wno-address \ 213 -Wno-format-security \ 214 -Wno-return-type \ 215 -Wno-sequence-point \ 216 -fno-ident \ 217 -fdata-sections \ 218 -ffunction-sections \ 219 -fomit-frame-pointer \ 220 -funwind-tables \ 221 -O2 222 223 MY_DEFS_Release := \ 224 '-DV8_DEPRECATION_WARNINGS' \ 225 '-D_FILE_OFFSET_BITS=64' \ 226 '-DNO_TCMALLOC' \ 227 '-DDISABLE_NACL' \ 228 '-DCHROMIUM_BUILD' \ 229 '-DUSE_LIBJPEG_TURBO=1' \ 230 '-DENABLE_WEBRTC=1' \ 231 '-DUSE_PROPRIETARY_CODECS' \ 232 '-DENABLE_BROWSER_CDMS' \ 233 '-DENABLE_CONFIGURATION_POLICY' \ 234 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 235 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 236 '-DENABLE_EGLIMAGE=1' \ 237 '-DCLD_VERSION=1' \ 238 '-DENABLE_PRINTING=1' \ 239 '-DENABLE_MANAGED_USERS=1' \ 240 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 241 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 242 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 243 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 244 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 245 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 246 '-DVIDEO_HOLE=1' \ 247 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 248 '-DSK_ENABLE_INST_COUNT=0' \ 249 '-DSK_SUPPORT_GPU=1' \ 250 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 251 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 252 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 253 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 254 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 255 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 256 '-DSK_BUILD_FOR_ANDROID' \ 257 '-DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0' \ 258 '-DSK_DISABLE_OFFSETIMAGEFILTER_OPTIMIZATION' \ 259 '-DIGNORE_ROT_AA_RECT_OPT' \ 260 '-DSK_IGNORE_BLURRED_RRECT_OPT' \ 261 '-DSK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS' \ 262 '-DSK_DEFAULT_FONT_CACHE_LIMIT=(1*1024*1024)' \ 263 '-DSK_USE_DISCARDABLE_SCALEDIMAGECACHE' \ 264 '-DSK_GAMMA_APPLY_TO_A8' \ 265 '-DSK_GAMMA_EXPONENT=1.4' \ 266 '-DSK_GAMMA_CONTRAST=0.0' \ 267 '-DSK_USE_POSIX_THREADS' \ 268 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 269 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 270 '-DUSE_OPENSSL=1' \ 271 '-DUSE_OPENSSL_CERTS=1' \ 272 '-DANDROID' \ 273 '-D__GNU_SOURCE=1' \ 274 '-DUSE_STLPORT=1' \ 275 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 276 '-DCHROME_BUILD_ID=""' \ 277 '-DNDEBUG' \ 278 '-DNVALGRIND' \ 279 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 280 281 282 # Include paths placed before CFLAGS/CPPFLAGS 283 LOCAL_C_INCLUDES_Release := \ 284 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 285 $(gyp_shared_intermediate_dir) \ 286 $(LOCAL_PATH) \ 287 $(LOCAL_PATH)/skia/config \ 288 $(LOCAL_PATH)/third_party/skia/src/core \ 289 $(LOCAL_PATH)/third_party/skia/include/core \ 290 $(LOCAL_PATH)/third_party/skia/include/effects \ 291 $(LOCAL_PATH)/third_party/skia/include/pdf \ 292 $(LOCAL_PATH)/third_party/skia/include/gpu \ 293 $(LOCAL_PATH)/third_party/skia/include/lazy \ 294 $(LOCAL_PATH)/third_party/skia/include/pathops \ 295 $(LOCAL_PATH)/third_party/skia/include/pipe \ 296 $(LOCAL_PATH)/third_party/skia/include/ports \ 297 $(LOCAL_PATH)/third_party/skia/include/utils \ 298 $(PWD)/frameworks/wilhelm/include \ 299 $(PWD)/bionic \ 300 $(PWD)/external/stlport/stlport 301 302 303 # Flags passed to only C++ (and not C) files. 304 LOCAL_CPPFLAGS_Release := \ 305 -fno-exceptions \ 306 -fno-rtti \ 307 -fno-threadsafe-statics \ 308 -fvisibility-inlines-hidden \ 309 -Wno-deprecated \ 310 -std=gnu++11 \ 311 -Wno-narrowing \ 312 -Wno-literal-suffix \ 313 -Wno-non-virtual-dtor \ 314 -Wno-sign-promo \ 315 -Wno-non-virtual-dtor 316 317 318 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 319 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 320 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 321 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 322 ### Rules for final target. 323 324 LOCAL_SHARED_LIBRARIES := \ 325 libstlport \ 326 libdl 327 328 ### Set directly by aosp_build_settings. 329 LOCAL_FDO_SUPPORT := true 330 331 # Add target alias to "gyp_all_modules" target. 332 .PHONY: gyp_all_modules 333 gyp_all_modules: skia_skia_chrome_gyp 334 335 # Alias gyp target name. 336 .PHONY: skia_chrome 337 skia_chrome: skia_skia_chrome_gyp 338 339 include $(BUILD_STATIC_LIBRARY) 340