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 -fstack-protector \ 37 --param=ssp-buffer-size=4 \ 38 -Werror \ 39 -fno-exceptions \ 40 -fno-strict-aliasing \ 41 -Wall \ 42 -Wno-unused-parameter \ 43 -Wno-missing-field-initializers \ 44 -fvisibility=hidden \ 45 -pipe \ 46 -fPIC \ 47 -Wno-unused-local-typedefs \ 48 -fno-tree-sra \ 49 -fno-partial-inlining \ 50 -fno-early-inlining \ 51 -fno-tree-copy-prop \ 52 -fno-tree-loop-optimize \ 53 -fno-move-loop-invariants \ 54 -fno-caller-saves \ 55 -Wno-psabi \ 56 -ffunction-sections \ 57 -funwind-tables \ 58 -g \ 59 -fstack-protector \ 60 -fno-short-enums \ 61 -finline-limit=64 \ 62 -Wa,--noexecstack \ 63 -U_FORTIFY_SOURCE \ 64 -Wno-extra \ 65 -Wno-ignored-qualifiers \ 66 -Wno-type-limits \ 67 -Wno-unused-but-set-variable \ 68 -Os \ 69 -g \ 70 -fdata-sections \ 71 -ffunction-sections \ 72 -fomit-frame-pointer \ 73 -funwind-tables 74 75 MY_DEFS_Debug := \ 76 '-DV8_DEPRECATION_WARNINGS' \ 77 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 78 '-D_FILE_OFFSET_BITS=64' \ 79 '-DNO_TCMALLOC' \ 80 '-DDISABLE_NACL' \ 81 '-DCHROMIUM_BUILD' \ 82 '-DUSE_LIBJPEG_TURBO=1' \ 83 '-DENABLE_WEBRTC=1' \ 84 '-DUSE_PROPRIETARY_CODECS' \ 85 '-DENABLE_BROWSER_CDMS' \ 86 '-DENABLE_CONFIGURATION_POLICY' \ 87 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 88 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 89 '-DENABLE_EGLIMAGE=1' \ 90 '-DCLD_VERSION=1' \ 91 '-DENABLE_PRINTING=1' \ 92 '-DENABLE_MANAGED_USERS=1' \ 93 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 94 '-DDATA_REDUCTION_DEV_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 '-DSNAPSHOT_IMPLEMENTATION' \ 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_GETTOPDEVICE' \ 108 '-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \ 109 '-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \ 110 '-DSK_SUPPORT_LEGACY_N32_NAME' \ 111 '-DSK_SUPPORT_LEGACY_SETCONFIG' \ 112 '-DSK_IGNORE_ETC1_SUPPORT' \ 113 '-DSK_IGNORE_GPU_DITHER' \ 114 '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \ 115 '-DSK_BUILD_FOR_ANDROID' \ 116 '-DSK_USE_POSIX_THREADS' \ 117 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 118 '-DPOSIX_AVOID_MMAP' \ 119 '-DU_USING_ICU_NAMESPACE=0' \ 120 '-DUSE_OPENSSL=1' \ 121 '-DUSE_OPENSSL_CERTS=1' \ 122 '-D__STDC_CONSTANT_MACROS' \ 123 '-D__STDC_FORMAT_MACROS' \ 124 '-DANDROID' \ 125 '-D__GNU_SOURCE=1' \ 126 '-DUSE_STLPORT=1' \ 127 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 128 '-DCHROME_BUILD_ID=""' \ 129 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 130 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 131 '-D_DEBUG' 132 133 134 # Include paths placed before CFLAGS/CPPFLAGS 135 LOCAL_C_INCLUDES_Debug := \ 136 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 137 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 138 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 139 $(gyp_shared_intermediate_dir) \ 140 $(LOCAL_PATH)/ui \ 141 $(LOCAL_PATH) \ 142 $(LOCAL_PATH)/skia/config \ 143 $(LOCAL_PATH)/third_party/khronos \ 144 $(LOCAL_PATH)/gpu \ 145 $(LOCAL_PATH)/third_party/skia/src/core \ 146 $(LOCAL_PATH)/third_party/skia/include/core \ 147 $(LOCAL_PATH)/third_party/skia/include/effects \ 148 $(LOCAL_PATH)/third_party/skia/include/pdf \ 149 $(LOCAL_PATH)/third_party/skia/include/gpu \ 150 $(LOCAL_PATH)/third_party/skia/include/lazy \ 151 $(LOCAL_PATH)/third_party/skia/include/pathops \ 152 $(LOCAL_PATH)/third_party/skia/include/pipe \ 153 $(LOCAL_PATH)/third_party/skia/include/ports \ 154 $(LOCAL_PATH)/third_party/skia/include/utils \ 155 $(LOCAL_PATH)/skia/ext \ 156 $(PWD)/external/icu/icu4c/source/common \ 157 $(PWD)/external/icu/icu4c/source/i18n \ 158 $(PWD)/frameworks/wilhelm/include \ 159 $(PWD)/bionic \ 160 $(PWD)/external/stlport/stlport 161 162 163 # Flags passed to only C++ (and not C) files. 164 LOCAL_CPPFLAGS_Debug := \ 165 -fno-rtti \ 166 -fno-threadsafe-statics \ 167 -fvisibility-inlines-hidden \ 168 -Wsign-compare \ 169 -Wno-abi \ 170 -Wno-non-virtual-dtor \ 171 -Wno-sign-promo 172 173 174 LOCAL_FDO_SUPPORT_Debug := false 175 176 # Flags passed to both C and C++ files. 177 MY_CFLAGS_Release := \ 178 -fstack-protector \ 179 --param=ssp-buffer-size=4 \ 180 -Werror \ 181 -fno-exceptions \ 182 -fno-strict-aliasing \ 183 -Wall \ 184 -Wno-unused-parameter \ 185 -Wno-missing-field-initializers \ 186 -fvisibility=hidden \ 187 -pipe \ 188 -fPIC \ 189 -Wno-unused-local-typedefs \ 190 -fno-tree-sra \ 191 -fno-partial-inlining \ 192 -fno-early-inlining \ 193 -fno-tree-copy-prop \ 194 -fno-tree-loop-optimize \ 195 -fno-move-loop-invariants \ 196 -fno-caller-saves \ 197 -Wno-psabi \ 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 -Os \ 211 -fno-ident \ 212 -fdata-sections \ 213 -ffunction-sections \ 214 -fomit-frame-pointer \ 215 -funwind-tables 216 217 MY_DEFS_Release := \ 218 '-DV8_DEPRECATION_WARNINGS' \ 219 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 220 '-D_FILE_OFFSET_BITS=64' \ 221 '-DNO_TCMALLOC' \ 222 '-DDISABLE_NACL' \ 223 '-DCHROMIUM_BUILD' \ 224 '-DUSE_LIBJPEG_TURBO=1' \ 225 '-DENABLE_WEBRTC=1' \ 226 '-DUSE_PROPRIETARY_CODECS' \ 227 '-DENABLE_BROWSER_CDMS' \ 228 '-DENABLE_CONFIGURATION_POLICY' \ 229 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 230 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 231 '-DENABLE_EGLIMAGE=1' \ 232 '-DCLD_VERSION=1' \ 233 '-DENABLE_PRINTING=1' \ 234 '-DENABLE_MANAGED_USERS=1' \ 235 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 236 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 237 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 238 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 239 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 240 '-DVIDEO_HOLE=1' \ 241 '-DSNAPSHOT_IMPLEMENTATION' \ 242 '-DSK_ENABLE_INST_COUNT=0' \ 243 '-DSK_SUPPORT_GPU=1' \ 244 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 245 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 246 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 247 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 248 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 249 '-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \ 250 '-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \ 251 '-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \ 252 '-DSK_SUPPORT_LEGACY_N32_NAME' \ 253 '-DSK_SUPPORT_LEGACY_SETCONFIG' \ 254 '-DSK_IGNORE_ETC1_SUPPORT' \ 255 '-DSK_IGNORE_GPU_DITHER' \ 256 '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \ 257 '-DSK_BUILD_FOR_ANDROID' \ 258 '-DSK_USE_POSIX_THREADS' \ 259 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 260 '-DPOSIX_AVOID_MMAP' \ 261 '-DU_USING_ICU_NAMESPACE=0' \ 262 '-DUSE_OPENSSL=1' \ 263 '-DUSE_OPENSSL_CERTS=1' \ 264 '-D__STDC_CONSTANT_MACROS' \ 265 '-D__STDC_FORMAT_MACROS' \ 266 '-DANDROID' \ 267 '-D__GNU_SOURCE=1' \ 268 '-DUSE_STLPORT=1' \ 269 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 270 '-DCHROME_BUILD_ID=""' \ 271 '-DNDEBUG' \ 272 '-DNVALGRIND' \ 273 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 274 '-D_FORTIFY_SOURCE=2' 275 276 277 # Include paths placed before CFLAGS/CPPFLAGS 278 LOCAL_C_INCLUDES_Release := \ 279 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 280 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 281 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 282 $(gyp_shared_intermediate_dir) \ 283 $(LOCAL_PATH)/ui \ 284 $(LOCAL_PATH) \ 285 $(LOCAL_PATH)/skia/config \ 286 $(LOCAL_PATH)/third_party/khronos \ 287 $(LOCAL_PATH)/gpu \ 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 $(LOCAL_PATH)/skia/ext \ 299 $(PWD)/external/icu/icu4c/source/common \ 300 $(PWD)/external/icu/icu4c/source/i18n \ 301 $(PWD)/frameworks/wilhelm/include \ 302 $(PWD)/bionic \ 303 $(PWD)/external/stlport/stlport 304 305 306 # Flags passed to only C++ (and not C) files. 307 LOCAL_CPPFLAGS_Release := \ 308 -fno-rtti \ 309 -fno-threadsafe-statics \ 310 -fvisibility-inlines-hidden \ 311 -Wsign-compare \ 312 -Wno-abi \ 313 -Wno-non-virtual-dtor \ 314 -Wno-sign-promo 315 316 317 LOCAL_FDO_SUPPORT_Release := false 318 319 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 320 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 321 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 322 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 323 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 324 ### Rules for final target. 325 326 LOCAL_LDFLAGS_Debug := \ 327 -Wl,-z,now \ 328 -Wl,-z,relro \ 329 -Wl,--fatal-warnings \ 330 -Wl,-z,noexecstack \ 331 -fPIC \ 332 -Wl,-z,relro \ 333 -Wl,-z,now \ 334 -fuse-ld=gold \ 335 -nostdlib \ 336 -Wl,--no-undefined \ 337 -Wl,--exclude-libs=ALL \ 338 -Wl,--icf=safe \ 339 -Wl,--warn-shared-textrel \ 340 -Wl,-O1 \ 341 -Wl,--as-needed 342 343 344 LOCAL_LDFLAGS_Release := \ 345 -Wl,-z,now \ 346 -Wl,-z,relro \ 347 -Wl,--fatal-warnings \ 348 -Wl,-z,noexecstack \ 349 -fPIC \ 350 -Wl,-z,relro \ 351 -Wl,-z,now \ 352 -fuse-ld=gold \ 353 -nostdlib \ 354 -Wl,--no-undefined \ 355 -Wl,--exclude-libs=ALL \ 356 -Wl,--icf=safe \ 357 -Wl,-O1 \ 358 -Wl,--as-needed \ 359 -Wl,--gc-sections \ 360 -Wl,--warn-shared-textrel 361 362 363 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 364 365 LOCAL_STATIC_LIBRARIES := \ 366 skia_skia_library_gyp \ 367 ui_base_ui_base_gyp 368 369 # Enable grouping to fix circular references 370 LOCAL_GROUP_STATIC_LIBRARIES := true 371 372 LOCAL_SHARED_LIBRARIES := \ 373 libstlport \ 374 libdl 375 376 # Add target alias to "gyp_all_modules" target. 377 .PHONY: gyp_all_modules 378 gyp_all_modules: ui_snapshot_snapshot_gyp 379 380 # Alias gyp target name. 381 .PHONY: snapshot 382 snapshot: ui_snapshot_snapshot_gyp 383 384 include $(BUILD_STATIC_LIBRARY) 385