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