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