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_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,GYP,skia_skia_gyp,,,$(GYP_VAR_PREFIX))/skia.stamp \ 15 $(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a \ 16 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_base_ui_base_gyp,,,$(GYP_VAR_PREFIX))/ui_base_ui_base_gyp.a 17 18 GYP_GENERATED_OUTPUTS := 19 20 # Make sure our deps and generated files are built first. 21 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 22 23 LOCAL_CPP_EXTENSION := .cc 24 LOCAL_GENERATED_SOURCES := 25 26 GYP_COPIED_SOURCE_ORIGIN_DIRS := 27 28 LOCAL_SRC_FILES := \ 29 ui/snapshot/snapshot_android.cc \ 30 ui/snapshot/snapshot_async.cc 31 32 33 # Flags passed to both C and C++ files. 34 MY_CFLAGS_Debug := \ 35 -fstack-protector \ 36 --param=ssp-buffer-size=4 \ 37 -Werror \ 38 -fno-strict-aliasing \ 39 -Wall \ 40 -Wno-unused-parameter \ 41 -Wno-missing-field-initializers \ 42 -fvisibility=hidden \ 43 -pipe \ 44 -fPIC \ 45 -Wno-unused-local-typedefs \ 46 -m64 \ 47 -march=x86-64 \ 48 -ffunction-sections \ 49 -funwind-tables \ 50 -g \ 51 -fstack-protector \ 52 -fno-short-enums \ 53 -finline-limit=64 \ 54 -Wa,--noexecstack \ 55 -U_FORTIFY_SOURCE \ 56 -Wno-extra \ 57 -Wno-ignored-qualifiers \ 58 -Wno-type-limits \ 59 -Wno-unused-but-set-variable \ 60 -Os \ 61 -g \ 62 -gdwarf-4 \ 63 -fdata-sections \ 64 -ffunction-sections \ 65 -fomit-frame-pointer \ 66 -funwind-tables 67 68 MY_DEFS_Debug := \ 69 '-DV8_DEPRECATION_WARNINGS' \ 70 '-D_FILE_OFFSET_BITS=64' \ 71 '-DNO_TCMALLOC' \ 72 '-DDISABLE_NACL' \ 73 '-DCHROMIUM_BUILD' \ 74 '-DUSE_LIBJPEG_TURBO=1' \ 75 '-DENABLE_WEBRTC=1' \ 76 '-DUSE_PROPRIETARY_CODECS' \ 77 '-DENABLE_BROWSER_CDMS' \ 78 '-DENABLE_CONFIGURATION_POLICY' \ 79 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 80 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 81 '-DENABLE_EGLIMAGE=1' \ 82 '-DCLD_VERSION=1' \ 83 '-DENABLE_PRINTING=1' \ 84 '-DENABLE_MANAGED_USERS=1' \ 85 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 86 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 87 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 88 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 89 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 90 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 91 '-DVIDEO_HOLE=1' \ 92 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 93 '-DSNAPSHOT_IMPLEMENTATION' \ 94 '-DSK_ENABLE_INST_COUNT=0' \ 95 '-DSK_SUPPORT_GPU=1' \ 96 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 97 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 98 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 99 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 100 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 101 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 102 '-DSK_BUILD_FOR_ANDROID' \ 103 '-DSK_USE_POSIX_THREADS' \ 104 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 105 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 106 '-DPOSIX_AVOID_MMAP' \ 107 '-DU_USING_ICU_NAMESPACE=0' \ 108 '-DU_ENABLE_DYLOAD=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) \ 128 $(LOCAL_PATH)/ui \ 129 $(LOCAL_PATH) \ 130 $(LOCAL_PATH)/skia/config \ 131 $(LOCAL_PATH)/third_party/khronos \ 132 $(LOCAL_PATH)/gpu \ 133 $(LOCAL_PATH)/third_party/skia/src/core \ 134 $(LOCAL_PATH)/third_party/skia/include/core \ 135 $(LOCAL_PATH)/third_party/skia/include/effects \ 136 $(LOCAL_PATH)/third_party/skia/include/pdf \ 137 $(LOCAL_PATH)/third_party/skia/include/gpu \ 138 $(LOCAL_PATH)/third_party/skia/include/lazy \ 139 $(LOCAL_PATH)/third_party/skia/include/pathops \ 140 $(LOCAL_PATH)/third_party/skia/include/pipe \ 141 $(LOCAL_PATH)/third_party/skia/include/ports \ 142 $(LOCAL_PATH)/third_party/skia/include/utils \ 143 $(LOCAL_PATH)/skia/ext \ 144 $(PWD)/external/icu/icu4c/source/common \ 145 $(PWD)/external/icu/icu4c/source/i18n \ 146 $(PWD)/frameworks/wilhelm/include \ 147 $(PWD)/bionic \ 148 $(PWD)/external/stlport/stlport 149 150 151 # Flags passed to only C++ (and not C) files. 152 LOCAL_CPPFLAGS_Debug := \ 153 -fno-exceptions \ 154 -fno-rtti \ 155 -fno-threadsafe-statics \ 156 -fvisibility-inlines-hidden \ 157 -Wsign-compare \ 158 -std=gnu++11 \ 159 -Wno-narrowing \ 160 -Wno-literal-suffix \ 161 -Wno-non-virtual-dtor \ 162 -Wno-sign-promo 163 164 165 # Flags passed to both C and C++ files. 166 MY_CFLAGS_Release := \ 167 -fstack-protector \ 168 --param=ssp-buffer-size=4 \ 169 -Werror \ 170 -fno-strict-aliasing \ 171 -Wall \ 172 -Wno-unused-parameter \ 173 -Wno-missing-field-initializers \ 174 -fvisibility=hidden \ 175 -pipe \ 176 -fPIC \ 177 -Wno-unused-local-typedefs \ 178 -m64 \ 179 -march=x86-64 \ 180 -ffunction-sections \ 181 -funwind-tables \ 182 -g \ 183 -fstack-protector \ 184 -fno-short-enums \ 185 -finline-limit=64 \ 186 -Wa,--noexecstack \ 187 -U_FORTIFY_SOURCE \ 188 -Wno-extra \ 189 -Wno-ignored-qualifiers \ 190 -Wno-type-limits \ 191 -Wno-unused-but-set-variable \ 192 -Os \ 193 -fno-ident \ 194 -fdata-sections \ 195 -ffunction-sections \ 196 -fomit-frame-pointer \ 197 -funwind-tables 198 199 MY_DEFS_Release := \ 200 '-DV8_DEPRECATION_WARNINGS' \ 201 '-D_FILE_OFFSET_BITS=64' \ 202 '-DNO_TCMALLOC' \ 203 '-DDISABLE_NACL' \ 204 '-DCHROMIUM_BUILD' \ 205 '-DUSE_LIBJPEG_TURBO=1' \ 206 '-DENABLE_WEBRTC=1' \ 207 '-DUSE_PROPRIETARY_CODECS' \ 208 '-DENABLE_BROWSER_CDMS' \ 209 '-DENABLE_CONFIGURATION_POLICY' \ 210 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 211 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 212 '-DENABLE_EGLIMAGE=1' \ 213 '-DCLD_VERSION=1' \ 214 '-DENABLE_PRINTING=1' \ 215 '-DENABLE_MANAGED_USERS=1' \ 216 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 217 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 218 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 219 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 220 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 221 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 222 '-DVIDEO_HOLE=1' \ 223 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 224 '-DSNAPSHOT_IMPLEMENTATION' \ 225 '-DSK_ENABLE_INST_COUNT=0' \ 226 '-DSK_SUPPORT_GPU=1' \ 227 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 228 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 229 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 230 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 231 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 232 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 233 '-DSK_BUILD_FOR_ANDROID' \ 234 '-DSK_USE_POSIX_THREADS' \ 235 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 236 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 237 '-DPOSIX_AVOID_MMAP' \ 238 '-DU_USING_ICU_NAMESPACE=0' \ 239 '-DU_ENABLE_DYLOAD=0' \ 240 '-DUSE_OPENSSL=1' \ 241 '-DUSE_OPENSSL_CERTS=1' \ 242 '-D__STDC_CONSTANT_MACROS' \ 243 '-D__STDC_FORMAT_MACROS' \ 244 '-DANDROID' \ 245 '-D__GNU_SOURCE=1' \ 246 '-DUSE_STLPORT=1' \ 247 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 248 '-DCHROME_BUILD_ID=""' \ 249 '-DNDEBUG' \ 250 '-DNVALGRIND' \ 251 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 252 '-D_FORTIFY_SOURCE=2' 253 254 255 # Include paths placed before CFLAGS/CPPFLAGS 256 LOCAL_C_INCLUDES_Release := \ 257 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 258 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/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-exceptions \ 286 -fno-rtti \ 287 -fno-threadsafe-statics \ 288 -fvisibility-inlines-hidden \ 289 -Wsign-compare \ 290 -std=gnu++11 \ 291 -Wno-narrowing \ 292 -Wno-literal-suffix \ 293 -Wno-non-virtual-dtor \ 294 -Wno-sign-promo 295 296 297 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 298 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 299 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 300 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 301 ### Rules for final target. 302 303 LOCAL_SHARED_LIBRARIES := \ 304 libstlport \ 305 libdl 306 307 # Add target alias to "gyp_all_modules" target. 308 .PHONY: gyp_all_modules 309 gyp_all_modules: ui_snapshot_snapshot_gyp 310 311 # Alias gyp target name. 312 .PHONY: snapshot 313 snapshot: ui_snapshot_snapshot_gyp 314 315 include $(BUILD_STATIC_LIBRARY) 316