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 -fno-strict-aliasing \ 56 -Wno-unused-parameter \ 57 -Wno-missing-field-initializers \ 58 -fvisibility=hidden \ 59 -pipe \ 60 -fPIC \ 61 -Wno-unused-local-typedefs \ 62 -Wno-format \ 63 -m64 \ 64 -march=x86-64 \ 65 -ffunction-sections \ 66 -funwind-tables \ 67 -g \ 68 -fstack-protector \ 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 -Wno-address \ 78 -Wno-format-security \ 79 -Wno-return-type \ 80 -Wno-sequence-point \ 81 -Os \ 82 -g \ 83 -gdwarf-4 \ 84 -fdata-sections \ 85 -ffunction-sections \ 86 -fomit-frame-pointer \ 87 -funwind-tables 88 89 MY_DEFS_Debug := \ 90 '-DV8_DEPRECATION_WARNINGS' \ 91 '-D_FILE_OFFSET_BITS=64' \ 92 '-DNO_TCMALLOC' \ 93 '-DDISABLE_NACL' \ 94 '-DCHROMIUM_BUILD' \ 95 '-DUSE_LIBJPEG_TURBO=1' \ 96 '-DENABLE_WEBRTC=1' \ 97 '-DUSE_PROPRIETARY_CODECS' \ 98 '-DENABLE_BROWSER_CDMS' \ 99 '-DENABLE_CONFIGURATION_POLICY' \ 100 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 101 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 102 '-DENABLE_EGLIMAGE=1' \ 103 '-DCLD_VERSION=1' \ 104 '-DENABLE_PRINTING=1' \ 105 '-DENABLE_MANAGED_USERS=1' \ 106 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 107 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 108 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 109 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 110 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 111 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 112 '-DVIDEO_HOLE=1' \ 113 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 114 '-DSK_ENABLE_INST_COUNT=0' \ 115 '-DSK_SUPPORT_GPU=1' \ 116 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 117 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 118 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 119 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 120 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 121 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 122 '-DSK_BUILD_FOR_ANDROID' \ 123 '-DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0' \ 124 '-DSK_DISABLE_OFFSETIMAGEFILTER_OPTIMIZATION' \ 125 '-DIGNORE_ROT_AA_RECT_OPT' \ 126 '-DSK_IGNORE_BLURRED_RRECT_OPT' \ 127 '-DSK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS' \ 128 '-DSK_DEFAULT_FONT_CACHE_LIMIT=(1*1024*1024)' \ 129 '-DSK_USE_DISCARDABLE_SCALEDIMAGECACHE' \ 130 '-DSK_GAMMA_APPLY_TO_A8' \ 131 '-DSK_GAMMA_EXPONENT=1.4' \ 132 '-DSK_GAMMA_CONTRAST=0.0' \ 133 '-DSK_USE_POSIX_THREADS' \ 134 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 135 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 136 '-DUSE_OPENSSL=1' \ 137 '-DUSE_OPENSSL_CERTS=1' \ 138 '-DANDROID' \ 139 '-D__GNU_SOURCE=1' \ 140 '-DUSE_STLPORT=1' \ 141 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 142 '-DCHROME_BUILD_ID=""' \ 143 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 144 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 145 '-D_DEBUG' 146 147 148 # Include paths placed before CFLAGS/CPPFLAGS 149 LOCAL_C_INCLUDES_Debug := \ 150 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 151 $(gyp_shared_intermediate_dir) \ 152 $(LOCAL_PATH) \ 153 $(LOCAL_PATH)/skia/config \ 154 $(LOCAL_PATH)/third_party/skia/src/core \ 155 $(LOCAL_PATH)/third_party/skia/include/core \ 156 $(LOCAL_PATH)/third_party/skia/include/effects \ 157 $(LOCAL_PATH)/third_party/skia/include/pdf \ 158 $(LOCAL_PATH)/third_party/skia/include/gpu \ 159 $(LOCAL_PATH)/third_party/skia/include/lazy \ 160 $(LOCAL_PATH)/third_party/skia/include/pathops \ 161 $(LOCAL_PATH)/third_party/skia/include/pipe \ 162 $(LOCAL_PATH)/third_party/skia/include/ports \ 163 $(LOCAL_PATH)/third_party/skia/include/utils \ 164 $(PWD)/frameworks/wilhelm/include \ 165 $(PWD)/bionic \ 166 $(PWD)/external/stlport/stlport 167 168 169 # Flags passed to only C++ (and not C) files. 170 LOCAL_CPPFLAGS_Debug := \ 171 -fno-exceptions \ 172 -fno-rtti \ 173 -fno-threadsafe-statics \ 174 -fvisibility-inlines-hidden \ 175 -Wno-deprecated \ 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 -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 -m64 \ 197 -march=x86-64 \ 198 -ffunction-sections \ 199 -funwind-tables \ 200 -g \ 201 -fstack-protector \ 202 -fno-short-enums \ 203 -finline-limit=64 \ 204 -Wa,--noexecstack \ 205 -U_FORTIFY_SOURCE \ 206 -Wno-extra \ 207 -Wno-ignored-qualifiers \ 208 -Wno-type-limits \ 209 -Wno-unused-but-set-variable \ 210 -Wno-address \ 211 -Wno-format-security \ 212 -Wno-return-type \ 213 -Wno-sequence-point \ 214 -fno-ident \ 215 -fdata-sections \ 216 -ffunction-sections \ 217 -fomit-frame-pointer \ 218 -funwind-tables \ 219 -O2 220 221 MY_DEFS_Release := \ 222 '-DV8_DEPRECATION_WARNINGS' \ 223 '-D_FILE_OFFSET_BITS=64' \ 224 '-DNO_TCMALLOC' \ 225 '-DDISABLE_NACL' \ 226 '-DCHROMIUM_BUILD' \ 227 '-DUSE_LIBJPEG_TURBO=1' \ 228 '-DENABLE_WEBRTC=1' \ 229 '-DUSE_PROPRIETARY_CODECS' \ 230 '-DENABLE_BROWSER_CDMS' \ 231 '-DENABLE_CONFIGURATION_POLICY' \ 232 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 233 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 234 '-DENABLE_EGLIMAGE=1' \ 235 '-DCLD_VERSION=1' \ 236 '-DENABLE_PRINTING=1' \ 237 '-DENABLE_MANAGED_USERS=1' \ 238 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 239 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 240 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 241 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 242 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 243 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 244 '-DVIDEO_HOLE=1' \ 245 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 246 '-DSK_ENABLE_INST_COUNT=0' \ 247 '-DSK_SUPPORT_GPU=1' \ 248 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 249 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 250 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 251 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 252 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 253 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 254 '-DSK_BUILD_FOR_ANDROID' \ 255 '-DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0' \ 256 '-DSK_DISABLE_OFFSETIMAGEFILTER_OPTIMIZATION' \ 257 '-DIGNORE_ROT_AA_RECT_OPT' \ 258 '-DSK_IGNORE_BLURRED_RRECT_OPT' \ 259 '-DSK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS' \ 260 '-DSK_DEFAULT_FONT_CACHE_LIMIT=(1*1024*1024)' \ 261 '-DSK_USE_DISCARDABLE_SCALEDIMAGECACHE' \ 262 '-DSK_GAMMA_APPLY_TO_A8' \ 263 '-DSK_GAMMA_EXPONENT=1.4' \ 264 '-DSK_GAMMA_CONTRAST=0.0' \ 265 '-DSK_USE_POSIX_THREADS' \ 266 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 267 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 268 '-DUSE_OPENSSL=1' \ 269 '-DUSE_OPENSSL_CERTS=1' \ 270 '-DANDROID' \ 271 '-D__GNU_SOURCE=1' \ 272 '-DUSE_STLPORT=1' \ 273 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 274 '-DCHROME_BUILD_ID=""' \ 275 '-DNDEBUG' \ 276 '-DNVALGRIND' \ 277 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 278 279 280 # Include paths placed before CFLAGS/CPPFLAGS 281 LOCAL_C_INCLUDES_Release := \ 282 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 283 $(gyp_shared_intermediate_dir) \ 284 $(LOCAL_PATH) \ 285 $(LOCAL_PATH)/skia/config \ 286 $(LOCAL_PATH)/third_party/skia/src/core \ 287 $(LOCAL_PATH)/third_party/skia/include/core \ 288 $(LOCAL_PATH)/third_party/skia/include/effects \ 289 $(LOCAL_PATH)/third_party/skia/include/pdf \ 290 $(LOCAL_PATH)/third_party/skia/include/gpu \ 291 $(LOCAL_PATH)/third_party/skia/include/lazy \ 292 $(LOCAL_PATH)/third_party/skia/include/pathops \ 293 $(LOCAL_PATH)/third_party/skia/include/pipe \ 294 $(LOCAL_PATH)/third_party/skia/include/ports \ 295 $(LOCAL_PATH)/third_party/skia/include/utils \ 296 $(PWD)/frameworks/wilhelm/include \ 297 $(PWD)/bionic \ 298 $(PWD)/external/stlport/stlport 299 300 301 # Flags passed to only C++ (and not C) files. 302 LOCAL_CPPFLAGS_Release := \ 303 -fno-exceptions \ 304 -fno-rtti \ 305 -fno-threadsafe-statics \ 306 -fvisibility-inlines-hidden \ 307 -Wno-deprecated \ 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