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