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