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 --param=ssp-buffer-size=4 \ 36 -Werror \ 37 -fno-strict-aliasing \ 38 -Wall \ 39 -Wno-unused-parameter \ 40 -Wno-missing-field-initializers \ 41 -fvisibility=hidden \ 42 -pipe \ 43 -fPIC \ 44 -Wno-unused-local-typedefs \ 45 -ffunction-sections \ 46 -funwind-tables \ 47 -g \ 48 -fno-short-enums \ 49 -finline-limit=64 \ 50 -Wa,--noexecstack \ 51 -U_FORTIFY_SOURCE \ 52 -Wno-extra \ 53 -Wno-ignored-qualifiers \ 54 -Wno-type-limits \ 55 -Wno-unused-but-set-variable \ 56 -Os \ 57 -g \ 58 -gdwarf-4 \ 59 -fdata-sections \ 60 -ffunction-sections \ 61 -funwind-tables 62 63 MY_DEFS_Debug := \ 64 '-DV8_DEPRECATION_WARNINGS' \ 65 '-D_FILE_OFFSET_BITS=64' \ 66 '-DNO_TCMALLOC' \ 67 '-DDISABLE_NACL' \ 68 '-DCHROMIUM_BUILD' \ 69 '-DUSE_LIBJPEG_TURBO=1' \ 70 '-DENABLE_WEBRTC=1' \ 71 '-DUSE_PROPRIETARY_CODECS' \ 72 '-DENABLE_BROWSER_CDMS' \ 73 '-DENABLE_CONFIGURATION_POLICY' \ 74 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 75 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 76 '-DENABLE_EGLIMAGE=1' \ 77 '-DCLD_VERSION=1' \ 78 '-DENABLE_PRINTING=1' \ 79 '-DENABLE_MANAGED_USERS=1' \ 80 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 81 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 82 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 83 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 84 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 85 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 86 '-DVIDEO_HOLE=1' \ 87 '-DENABLE_LOAD_COMPLETION_HACKS=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_TEXTRENDERMODE' \ 97 '-DSK_BUILD_FOR_ANDROID' \ 98 '-DSK_USE_POSIX_THREADS' \ 99 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 100 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 101 '-DPOSIX_AVOID_MMAP' \ 102 '-DU_USING_ICU_NAMESPACE=0' \ 103 '-DU_ENABLE_DYLOAD=0' \ 104 '-DUSE_OPENSSL=1' \ 105 '-DUSE_OPENSSL_CERTS=1' \ 106 '-D__STDC_CONSTANT_MACROS' \ 107 '-D__STDC_FORMAT_MACROS' \ 108 '-DANDROID' \ 109 '-D__GNU_SOURCE=1' \ 110 '-DUSE_STLPORT=1' \ 111 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 112 '-DCHROME_BUILD_ID=""' \ 113 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 114 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 115 '-D_DEBUG' 116 117 118 # Include paths placed before CFLAGS/CPPFLAGS 119 LOCAL_C_INCLUDES_Debug := \ 120 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 121 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 122 $(gyp_shared_intermediate_dir) \ 123 $(LOCAL_PATH)/ui \ 124 $(LOCAL_PATH) \ 125 $(LOCAL_PATH)/skia/config \ 126 $(LOCAL_PATH)/third_party/khronos \ 127 $(LOCAL_PATH)/gpu \ 128 $(LOCAL_PATH)/third_party/skia/src/core \ 129 $(LOCAL_PATH)/third_party/skia/include/core \ 130 $(LOCAL_PATH)/third_party/skia/include/effects \ 131 $(LOCAL_PATH)/third_party/skia/include/pdf \ 132 $(LOCAL_PATH)/third_party/skia/include/gpu \ 133 $(LOCAL_PATH)/third_party/skia/include/lazy \ 134 $(LOCAL_PATH)/third_party/skia/include/pathops \ 135 $(LOCAL_PATH)/third_party/skia/include/pipe \ 136 $(LOCAL_PATH)/third_party/skia/include/ports \ 137 $(LOCAL_PATH)/third_party/skia/include/utils \ 138 $(LOCAL_PATH)/skia/ext \ 139 $(PWD)/external/icu/icu4c/source/common \ 140 $(PWD)/external/icu/icu4c/source/i18n \ 141 $(PWD)/frameworks/wilhelm/include \ 142 $(PWD)/bionic \ 143 $(PWD)/external/stlport/stlport 144 145 146 # Flags passed to only C++ (and not C) files. 147 LOCAL_CPPFLAGS_Debug := \ 148 -fno-exceptions \ 149 -fno-rtti \ 150 -fno-threadsafe-statics \ 151 -fvisibility-inlines-hidden \ 152 -Wsign-compare \ 153 -std=gnu++11 \ 154 -Wno-narrowing \ 155 -Wno-literal-suffix \ 156 -Wno-non-virtual-dtor \ 157 -Wno-sign-promo 158 159 160 # Flags passed to both C and C++ files. 161 MY_CFLAGS_Release := \ 162 --param=ssp-buffer-size=4 \ 163 -Werror \ 164 -fno-strict-aliasing \ 165 -Wall \ 166 -Wno-unused-parameter \ 167 -Wno-missing-field-initializers \ 168 -fvisibility=hidden \ 169 -pipe \ 170 -fPIC \ 171 -Wno-unused-local-typedefs \ 172 -ffunction-sections \ 173 -funwind-tables \ 174 -g \ 175 -fno-short-enums \ 176 -finline-limit=64 \ 177 -Wa,--noexecstack \ 178 -U_FORTIFY_SOURCE \ 179 -Wno-extra \ 180 -Wno-ignored-qualifiers \ 181 -Wno-type-limits \ 182 -Wno-unused-but-set-variable \ 183 -Os \ 184 -fno-ident \ 185 -fdata-sections \ 186 -ffunction-sections \ 187 -funwind-tables 188 189 MY_DEFS_Release := \ 190 '-DV8_DEPRECATION_WARNINGS' \ 191 '-D_FILE_OFFSET_BITS=64' \ 192 '-DNO_TCMALLOC' \ 193 '-DDISABLE_NACL' \ 194 '-DCHROMIUM_BUILD' \ 195 '-DUSE_LIBJPEG_TURBO=1' \ 196 '-DENABLE_WEBRTC=1' \ 197 '-DUSE_PROPRIETARY_CODECS' \ 198 '-DENABLE_BROWSER_CDMS' \ 199 '-DENABLE_CONFIGURATION_POLICY' \ 200 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 201 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 202 '-DENABLE_EGLIMAGE=1' \ 203 '-DCLD_VERSION=1' \ 204 '-DENABLE_PRINTING=1' \ 205 '-DENABLE_MANAGED_USERS=1' \ 206 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 207 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 208 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 209 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 210 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 211 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 212 '-DVIDEO_HOLE=1' \ 213 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 214 '-DSNAPSHOT_IMPLEMENTATION' \ 215 '-DSK_ENABLE_INST_COUNT=0' \ 216 '-DSK_SUPPORT_GPU=1' \ 217 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 218 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 219 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 220 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 221 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 222 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 223 '-DSK_BUILD_FOR_ANDROID' \ 224 '-DSK_USE_POSIX_THREADS' \ 225 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 226 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 227 '-DPOSIX_AVOID_MMAP' \ 228 '-DU_USING_ICU_NAMESPACE=0' \ 229 '-DU_ENABLE_DYLOAD=0' \ 230 '-DUSE_OPENSSL=1' \ 231 '-DUSE_OPENSSL_CERTS=1' \ 232 '-D__STDC_CONSTANT_MACROS' \ 233 '-D__STDC_FORMAT_MACROS' \ 234 '-DANDROID' \ 235 '-D__GNU_SOURCE=1' \ 236 '-DUSE_STLPORT=1' \ 237 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 238 '-DCHROME_BUILD_ID=""' \ 239 '-DNDEBUG' \ 240 '-DNVALGRIND' \ 241 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 242 '-D_FORTIFY_SOURCE=2' 243 244 245 # Include paths placed before CFLAGS/CPPFLAGS 246 LOCAL_C_INCLUDES_Release := \ 247 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 248 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 249 $(gyp_shared_intermediate_dir) \ 250 $(LOCAL_PATH)/ui \ 251 $(LOCAL_PATH) \ 252 $(LOCAL_PATH)/skia/config \ 253 $(LOCAL_PATH)/third_party/khronos \ 254 $(LOCAL_PATH)/gpu \ 255 $(LOCAL_PATH)/third_party/skia/src/core \ 256 $(LOCAL_PATH)/third_party/skia/include/core \ 257 $(LOCAL_PATH)/third_party/skia/include/effects \ 258 $(LOCAL_PATH)/third_party/skia/include/pdf \ 259 $(LOCAL_PATH)/third_party/skia/include/gpu \ 260 $(LOCAL_PATH)/third_party/skia/include/lazy \ 261 $(LOCAL_PATH)/third_party/skia/include/pathops \ 262 $(LOCAL_PATH)/third_party/skia/include/pipe \ 263 $(LOCAL_PATH)/third_party/skia/include/ports \ 264 $(LOCAL_PATH)/third_party/skia/include/utils \ 265 $(LOCAL_PATH)/skia/ext \ 266 $(PWD)/external/icu/icu4c/source/common \ 267 $(PWD)/external/icu/icu4c/source/i18n \ 268 $(PWD)/frameworks/wilhelm/include \ 269 $(PWD)/bionic \ 270 $(PWD)/external/stlport/stlport 271 272 273 # Flags passed to only C++ (and not C) files. 274 LOCAL_CPPFLAGS_Release := \ 275 -fno-exceptions \ 276 -fno-rtti \ 277 -fno-threadsafe-statics \ 278 -fvisibility-inlines-hidden \ 279 -Wsign-compare \ 280 -std=gnu++11 \ 281 -Wno-narrowing \ 282 -Wno-literal-suffix \ 283 -Wno-non-virtual-dtor \ 284 -Wno-sign-promo 285 286 287 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 288 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 289 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 290 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 291 ### Rules for final target. 292 293 LOCAL_SHARED_LIBRARIES := \ 294 libstlport \ 295 libdl 296 297 # Add target alias to "gyp_all_modules" target. 298 .PHONY: gyp_all_modules 299 gyp_all_modules: ui_snapshot_snapshot_gyp 300 301 # Alias gyp target name. 302 .PHONY: snapshot 303 snapshot: ui_snapshot_snapshot_gyp 304 305 include $(BUILD_STATIC_LIBRARY) 306