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 := ui_snapshot_snapshot_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13 # Make sure our deps are built first. 14 GYP_TARGET_DEPENDENCIES := \ 15 $(call intermediates-dir-for,GYP,skia_skia_gyp,,,$(GYP_VAR_PREFIX))/skia.stamp \ 16 $(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a \ 17 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_base_ui_base_gyp,,,$(GYP_VAR_PREFIX))/ui_base_ui_base_gyp.a 18 19 GYP_GENERATED_OUTPUTS := 20 21 # Make sure our deps and generated files are built first. 22 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 23 24 LOCAL_CPP_EXTENSION := .cc 25 LOCAL_GENERATED_SOURCES := 26 27 GYP_COPIED_SOURCE_ORIGIN_DIRS := 28 29 LOCAL_SRC_FILES := \ 30 ui/snapshot/snapshot_android.cc \ 31 ui/snapshot/snapshot_async.cc 32 33 34 # Flags passed to both C and C++ files. 35 MY_CFLAGS_Debug := \ 36 --param=ssp-buffer-size=4 \ 37 -Werror \ 38 -fno-exceptions \ 39 -fno-strict-aliasing \ 40 -Wall \ 41 -Wno-unused-parameter \ 42 -Wno-missing-field-initializers \ 43 -fvisibility=hidden \ 44 -pipe \ 45 -fPIC \ 46 -Wno-unused-local-typedefs \ 47 -msse2 \ 48 -mfpmath=sse \ 49 -mmmx \ 50 -m32 \ 51 -ffunction-sections \ 52 -funwind-tables \ 53 -g \ 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 -fno-stack-protector \ 63 -Os \ 64 -g \ 65 -fdata-sections \ 66 -ffunction-sections \ 67 -fomit-frame-pointer \ 68 -funwind-tables 69 70 MY_DEFS_Debug := \ 71 '-DV8_DEPRECATION_WARNINGS' \ 72 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 73 '-D_FILE_OFFSET_BITS=64' \ 74 '-DNO_TCMALLOC' \ 75 '-DDISABLE_NACL' \ 76 '-DCHROMIUM_BUILD' \ 77 '-DUSE_LIBJPEG_TURBO=1' \ 78 '-DENABLE_WEBRTC=1' \ 79 '-DUSE_PROPRIETARY_CODECS' \ 80 '-DENABLE_BROWSER_CDMS' \ 81 '-DENABLE_CONFIGURATION_POLICY' \ 82 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 83 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 84 '-DENABLE_EGLIMAGE=1' \ 85 '-DCLD_VERSION=1' \ 86 '-DENABLE_PRINTING=1' \ 87 '-DENABLE_MANAGED_USERS=1' \ 88 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 89 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 90 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 91 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 92 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 93 '-DVIDEO_HOLE=1' \ 94 '-DSNAPSHOT_IMPLEMENTATION' \ 95 '-DSK_ENABLE_INST_COUNT=0' \ 96 '-DSK_SUPPORT_GPU=1' \ 97 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 98 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 99 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 100 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 101 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 102 '-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \ 103 '-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \ 104 '-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \ 105 '-DSK_SUPPORT_LEGACY_N32_NAME' \ 106 '-DSK_SUPPORT_LEGACY_SETCONFIG' \ 107 '-DSK_IGNORE_ETC1_SUPPORT' \ 108 '-DSK_IGNORE_GPU_DITHER' \ 109 '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \ 110 '-DSK_BUILD_FOR_ANDROID' \ 111 '-DSK_USE_POSIX_THREADS' \ 112 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 113 '-DU_USING_ICU_NAMESPACE=0' \ 114 '-DUSE_OPENSSL=1' \ 115 '-DUSE_OPENSSL_CERTS=1' \ 116 '-D__STDC_CONSTANT_MACROS' \ 117 '-D__STDC_FORMAT_MACROS' \ 118 '-DANDROID' \ 119 '-D__GNU_SOURCE=1' \ 120 '-DUSE_STLPORT=1' \ 121 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 122 '-DCHROME_BUILD_ID=""' \ 123 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 124 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 125 '-D_DEBUG' 126 127 128 # Include paths placed before CFLAGS/CPPFLAGS 129 LOCAL_C_INCLUDES_Debug := \ 130 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 131 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 132 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 133 $(gyp_shared_intermediate_dir) \ 134 $(LOCAL_PATH)/ui \ 135 $(LOCAL_PATH) \ 136 $(LOCAL_PATH)/skia/config \ 137 $(LOCAL_PATH)/third_party/khronos \ 138 $(LOCAL_PATH)/gpu \ 139 $(LOCAL_PATH)/third_party/skia/src/core \ 140 $(LOCAL_PATH)/third_party/skia/include/core \ 141 $(LOCAL_PATH)/third_party/skia/include/effects \ 142 $(LOCAL_PATH)/third_party/skia/include/pdf \ 143 $(LOCAL_PATH)/third_party/skia/include/gpu \ 144 $(LOCAL_PATH)/third_party/skia/include/lazy \ 145 $(LOCAL_PATH)/third_party/skia/include/pathops \ 146 $(LOCAL_PATH)/third_party/skia/include/pipe \ 147 $(LOCAL_PATH)/third_party/skia/include/ports \ 148 $(LOCAL_PATH)/third_party/skia/include/utils \ 149 $(LOCAL_PATH)/skia/ext \ 150 $(PWD)/external/icu/icu4c/source/common \ 151 $(PWD)/external/icu/icu4c/source/i18n \ 152 $(PWD)/frameworks/wilhelm/include \ 153 $(PWD)/bionic \ 154 $(PWD)/external/stlport/stlport 155 156 157 # Flags passed to only C++ (and not C) files. 158 LOCAL_CPPFLAGS_Debug := \ 159 -fno-rtti \ 160 -fno-threadsafe-statics \ 161 -fvisibility-inlines-hidden \ 162 -Wsign-compare \ 163 -Wno-non-virtual-dtor \ 164 -Wno-sign-promo 165 166 167 LOCAL_FDO_SUPPORT_Debug := false 168 169 # Flags passed to both C and C++ files. 170 MY_CFLAGS_Release := \ 171 --param=ssp-buffer-size=4 \ 172 -Werror \ 173 -fno-exceptions \ 174 -fno-strict-aliasing \ 175 -Wall \ 176 -Wno-unused-parameter \ 177 -Wno-missing-field-initializers \ 178 -fvisibility=hidden \ 179 -pipe \ 180 -fPIC \ 181 -Wno-unused-local-typedefs \ 182 -msse2 \ 183 -mfpmath=sse \ 184 -mmmx \ 185 -m32 \ 186 -ffunction-sections \ 187 -funwind-tables \ 188 -g \ 189 -fno-short-enums \ 190 -finline-limit=64 \ 191 -Wa,--noexecstack \ 192 -U_FORTIFY_SOURCE \ 193 -Wno-extra \ 194 -Wno-ignored-qualifiers \ 195 -Wno-type-limits \ 196 -Wno-unused-but-set-variable \ 197 -fno-stack-protector \ 198 -Os \ 199 -fno-ident \ 200 -fdata-sections \ 201 -ffunction-sections \ 202 -fomit-frame-pointer \ 203 -funwind-tables 204 205 MY_DEFS_Release := \ 206 '-DV8_DEPRECATION_WARNINGS' \ 207 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 208 '-D_FILE_OFFSET_BITS=64' \ 209 '-DNO_TCMALLOC' \ 210 '-DDISABLE_NACL' \ 211 '-DCHROMIUM_BUILD' \ 212 '-DUSE_LIBJPEG_TURBO=1' \ 213 '-DENABLE_WEBRTC=1' \ 214 '-DUSE_PROPRIETARY_CODECS' \ 215 '-DENABLE_BROWSER_CDMS' \ 216 '-DENABLE_CONFIGURATION_POLICY' \ 217 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 218 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 219 '-DENABLE_EGLIMAGE=1' \ 220 '-DCLD_VERSION=1' \ 221 '-DENABLE_PRINTING=1' \ 222 '-DENABLE_MANAGED_USERS=1' \ 223 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 224 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 225 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 226 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 227 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 228 '-DVIDEO_HOLE=1' \ 229 '-DSNAPSHOT_IMPLEMENTATION' \ 230 '-DSK_ENABLE_INST_COUNT=0' \ 231 '-DSK_SUPPORT_GPU=1' \ 232 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 233 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 234 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 235 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 236 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 237 '-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \ 238 '-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \ 239 '-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \ 240 '-DSK_SUPPORT_LEGACY_N32_NAME' \ 241 '-DSK_SUPPORT_LEGACY_SETCONFIG' \ 242 '-DSK_IGNORE_ETC1_SUPPORT' \ 243 '-DSK_IGNORE_GPU_DITHER' \ 244 '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \ 245 '-DSK_BUILD_FOR_ANDROID' \ 246 '-DSK_USE_POSIX_THREADS' \ 247 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 248 '-DU_USING_ICU_NAMESPACE=0' \ 249 '-DUSE_OPENSSL=1' \ 250 '-DUSE_OPENSSL_CERTS=1' \ 251 '-D__STDC_CONSTANT_MACROS' \ 252 '-D__STDC_FORMAT_MACROS' \ 253 '-DANDROID' \ 254 '-D__GNU_SOURCE=1' \ 255 '-DUSE_STLPORT=1' \ 256 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 257 '-DCHROME_BUILD_ID=""' \ 258 '-DNDEBUG' \ 259 '-DNVALGRIND' \ 260 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 261 '-D_FORTIFY_SOURCE=2' 262 263 264 # Include paths placed before CFLAGS/CPPFLAGS 265 LOCAL_C_INCLUDES_Release := \ 266 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 267 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 268 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 269 $(gyp_shared_intermediate_dir) \ 270 $(LOCAL_PATH)/ui \ 271 $(LOCAL_PATH) \ 272 $(LOCAL_PATH)/skia/config \ 273 $(LOCAL_PATH)/third_party/khronos \ 274 $(LOCAL_PATH)/gpu \ 275 $(LOCAL_PATH)/third_party/skia/src/core \ 276 $(LOCAL_PATH)/third_party/skia/include/core \ 277 $(LOCAL_PATH)/third_party/skia/include/effects \ 278 $(LOCAL_PATH)/third_party/skia/include/pdf \ 279 $(LOCAL_PATH)/third_party/skia/include/gpu \ 280 $(LOCAL_PATH)/third_party/skia/include/lazy \ 281 $(LOCAL_PATH)/third_party/skia/include/pathops \ 282 $(LOCAL_PATH)/third_party/skia/include/pipe \ 283 $(LOCAL_PATH)/third_party/skia/include/ports \ 284 $(LOCAL_PATH)/third_party/skia/include/utils \ 285 $(LOCAL_PATH)/skia/ext \ 286 $(PWD)/external/icu/icu4c/source/common \ 287 $(PWD)/external/icu/icu4c/source/i18n \ 288 $(PWD)/frameworks/wilhelm/include \ 289 $(PWD)/bionic \ 290 $(PWD)/external/stlport/stlport 291 292 293 # Flags passed to only C++ (and not C) files. 294 LOCAL_CPPFLAGS_Release := \ 295 -fno-rtti \ 296 -fno-threadsafe-statics \ 297 -fvisibility-inlines-hidden \ 298 -Wsign-compare \ 299 -Wno-non-virtual-dtor \ 300 -Wno-sign-promo 301 302 303 LOCAL_FDO_SUPPORT_Release := false 304 305 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 306 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 307 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 308 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 309 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 310 ### Rules for final target. 311 312 LOCAL_LDFLAGS_Debug := \ 313 -Wl,-z,now \ 314 -Wl,-z,relro \ 315 -Wl,--fatal-warnings \ 316 -Wl,-z,noexecstack \ 317 -fPIC \ 318 -m32 \ 319 -fuse-ld=gold \ 320 -nostdlib \ 321 -Wl,--no-undefined \ 322 -Wl,--exclude-libs=ALL \ 323 -Wl,--warn-shared-textrel \ 324 -Wl,-O1 \ 325 -Wl,--as-needed 326 327 328 LOCAL_LDFLAGS_Release := \ 329 -Wl,-z,now \ 330 -Wl,-z,relro \ 331 -Wl,--fatal-warnings \ 332 -Wl,-z,noexecstack \ 333 -fPIC \ 334 -m32 \ 335 -fuse-ld=gold \ 336 -nostdlib \ 337 -Wl,--no-undefined \ 338 -Wl,--exclude-libs=ALL \ 339 -Wl,-O1 \ 340 -Wl,--as-needed \ 341 -Wl,--gc-sections \ 342 -Wl,--warn-shared-textrel 343 344 345 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 346 347 LOCAL_STATIC_LIBRARIES := \ 348 skia_skia_library_gyp \ 349 ui_base_ui_base_gyp 350 351 # Enable grouping to fix circular references 352 LOCAL_GROUP_STATIC_LIBRARIES := true 353 354 LOCAL_SHARED_LIBRARIES := \ 355 libstlport \ 356 libdl 357 358 # Add target alias to "gyp_all_modules" target. 359 .PHONY: gyp_all_modules 360 gyp_all_modules: ui_snapshot_snapshot_gyp 361 362 # Alias gyp target name. 363 .PHONY: snapshot 364 snapshot: ui_snapshot_snapshot_gyp 365 366 include $(BUILD_STATIC_LIBRARY) 367