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