1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := components_autofill_core_common_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 9gyp_intermediate_dir := $(call local-intermediates-dir) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := \ 14 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a \ 15 $(call intermediates-dir-for,GYP,components_autofill_jni_headers_gyp)/autofill_jni_headers.stamp 16 17GYP_GENERATED_OUTPUTS := 18 19# Make sure our deps and generated files are built first. 20LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 21 22LOCAL_CPP_EXTENSION := .cc 23LOCAL_GENERATED_SOURCES := 24 25GYP_COPIED_SOURCE_ORIGIN_DIRS := 26 27LOCAL_SRC_FILES := \ 28 components/autofill/core/browser/android/auxiliary_profile_loader_android.cc \ 29 components/autofill/core/browser/android/auxiliary_profiles_android.cc \ 30 components/autofill/core/browser/android/component_jni_registrar.cc \ 31 components/autofill/core/browser/android/personal_data_manager_android.cc \ 32 components/autofill/core/common/autofill_constants.cc \ 33 components/autofill/core/common/autofill_pref_names.cc \ 34 components/autofill/core/common/autofill_switches.cc \ 35 components/autofill/core/common/form_data.cc \ 36 components/autofill/core/common/form_data_predictions.cc \ 37 components/autofill/core/common/form_field_data.cc \ 38 components/autofill/core/common/form_field_data_predictions.cc \ 39 components/autofill/core/common/password_autofill_util.cc \ 40 components/autofill/core/common/password_form.cc \ 41 components/autofill/core/common/password_form_fill_data.cc \ 42 components/autofill/core/common/password_generation_util.cc \ 43 components/autofill/core/common/web_element_descriptor.cc 44 45 46# Flags passed to both C and C++ files. 47MY_CFLAGS_Debug := \ 48 -fstack-protector \ 49 --param=ssp-buffer-size=4 \ 50 -Werror \ 51 -fno-exceptions \ 52 -fno-strict-aliasing \ 53 -Wall \ 54 -Wno-unused-parameter \ 55 -Wno-missing-field-initializers \ 56 -fvisibility=hidden \ 57 -pipe \ 58 -fPIC \ 59 -fno-tree-sra \ 60 -fuse-ld=gold \ 61 -Wno-psabi \ 62 -ffunction-sections \ 63 -funwind-tables \ 64 -g \ 65 -fstack-protector \ 66 -fno-short-enums \ 67 -finline-limit=64 \ 68 -Wa,--noexecstack \ 69 -U_FORTIFY_SOURCE \ 70 -Wno-extra \ 71 -Wno-ignored-qualifiers \ 72 -Wno-type-limits \ 73 -Os \ 74 -g \ 75 -fomit-frame-pointer \ 76 -fdata-sections \ 77 -ffunction-sections 78 79MY_DEFS_Debug := \ 80 '-DV8_DEPRECATION_WARNINGS' \ 81 '-D_FILE_OFFSET_BITS=64' \ 82 '-DNO_TCMALLOC' \ 83 '-DDISABLE_NACL' \ 84 '-DCHROMIUM_BUILD' \ 85 '-DUSE_LIBJPEG_TURBO=1' \ 86 '-DUSE_PROPRIETARY_CODECS' \ 87 '-DENABLE_CONFIGURATION_POLICY' \ 88 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 89 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 90 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 91 '-DUSE_OPENSSL=1' \ 92 '-DENABLE_EGLIMAGE=1' \ 93 '-DCLD_VERSION=1' \ 94 '-DENABLE_PRINTING=1' \ 95 '-DENABLE_MANAGED_USERS=1' \ 96 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 97 '-DU_USING_ICU_NAMESPACE=0' \ 98 '-DPOSIX_AVOID_MMAP' \ 99 '-D__STDC_CONSTANT_MACROS' \ 100 '-D__STDC_FORMAT_MACROS' \ 101 '-DANDROID' \ 102 '-D__GNU_SOURCE=1' \ 103 '-DUSE_STLPORT=1' \ 104 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 105 '-DCHROME_BUILD_ID=""' \ 106 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 107 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 108 '-D_DEBUG' 109 110 111# Include paths placed before CFLAGS/CPPFLAGS 112LOCAL_C_INCLUDES_Debug := \ 113 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 114 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 115 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 116 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 117 $(LOCAL_PATH) \ 118 $(gyp_shared_intermediate_dir)/autofill \ 119 $(LOCAL_PATH)/skia/config \ 120 $(PWD)/external/skia/include \ 121 $(PWD)/external/skia/include/core \ 122 $(LOCAL_PATH)/third_party/skia/src/core \ 123 $(LOCAL_PATH)/skia/ext \ 124 $(PWD)/external/icu4c/common \ 125 $(PWD)/external/icu4c/i18n \ 126 $(PWD)/frameworks/wilhelm/include \ 127 $(PWD)/bionic \ 128 $(PWD)/external/stlport/stlport 129 130 131# Flags passed to only C++ (and not C) files. 132LOCAL_CPPFLAGS_Debug := \ 133 -fno-rtti \ 134 -fno-threadsafe-statics \ 135 -fvisibility-inlines-hidden \ 136 -Wsign-compare \ 137 -Wno-abi \ 138 -Wno-error=c++0x-compat \ 139 -Wno-non-virtual-dtor \ 140 -Wno-sign-promo 141 142 143# Flags passed to both C and C++ files. 144MY_CFLAGS_Release := \ 145 -fstack-protector \ 146 --param=ssp-buffer-size=4 \ 147 -Werror \ 148 -fno-exceptions \ 149 -fno-strict-aliasing \ 150 -Wall \ 151 -Wno-unused-parameter \ 152 -Wno-missing-field-initializers \ 153 -fvisibility=hidden \ 154 -pipe \ 155 -fPIC \ 156 -fno-tree-sra \ 157 -fuse-ld=gold \ 158 -Wno-psabi \ 159 -ffunction-sections \ 160 -funwind-tables \ 161 -g \ 162 -fstack-protector \ 163 -fno-short-enums \ 164 -finline-limit=64 \ 165 -Wa,--noexecstack \ 166 -U_FORTIFY_SOURCE \ 167 -Wno-extra \ 168 -Wno-ignored-qualifiers \ 169 -Wno-type-limits \ 170 -Os \ 171 -fno-ident \ 172 -fdata-sections \ 173 -ffunction-sections \ 174 -fomit-frame-pointer 175 176MY_DEFS_Release := \ 177 '-DV8_DEPRECATION_WARNINGS' \ 178 '-D_FILE_OFFSET_BITS=64' \ 179 '-DNO_TCMALLOC' \ 180 '-DDISABLE_NACL' \ 181 '-DCHROMIUM_BUILD' \ 182 '-DUSE_LIBJPEG_TURBO=1' \ 183 '-DUSE_PROPRIETARY_CODECS' \ 184 '-DENABLE_CONFIGURATION_POLICY' \ 185 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 186 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 187 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 188 '-DUSE_OPENSSL=1' \ 189 '-DENABLE_EGLIMAGE=1' \ 190 '-DCLD_VERSION=1' \ 191 '-DENABLE_PRINTING=1' \ 192 '-DENABLE_MANAGED_USERS=1' \ 193 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 194 '-DU_USING_ICU_NAMESPACE=0' \ 195 '-DPOSIX_AVOID_MMAP' \ 196 '-D__STDC_CONSTANT_MACROS' \ 197 '-D__STDC_FORMAT_MACROS' \ 198 '-DANDROID' \ 199 '-D__GNU_SOURCE=1' \ 200 '-DUSE_STLPORT=1' \ 201 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 202 '-DCHROME_BUILD_ID=""' \ 203 '-DNDEBUG' \ 204 '-DNVALGRIND' \ 205 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 206 '-D_FORTIFY_SOURCE=2' 207 208 209# Include paths placed before CFLAGS/CPPFLAGS 210LOCAL_C_INCLUDES_Release := \ 211 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 212 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 213 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 214 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 215 $(LOCAL_PATH) \ 216 $(gyp_shared_intermediate_dir)/autofill \ 217 $(LOCAL_PATH)/skia/config \ 218 $(PWD)/external/skia/include \ 219 $(PWD)/external/skia/include/core \ 220 $(LOCAL_PATH)/third_party/skia/src/core \ 221 $(LOCAL_PATH)/skia/ext \ 222 $(PWD)/external/icu4c/common \ 223 $(PWD)/external/icu4c/i18n \ 224 $(PWD)/frameworks/wilhelm/include \ 225 $(PWD)/bionic \ 226 $(PWD)/external/stlport/stlport 227 228 229# Flags passed to only C++ (and not C) files. 230LOCAL_CPPFLAGS_Release := \ 231 -fno-rtti \ 232 -fno-threadsafe-statics \ 233 -fvisibility-inlines-hidden \ 234 -Wsign-compare \ 235 -Wno-abi \ 236 -Wno-error=c++0x-compat \ 237 -Wno-non-virtual-dtor \ 238 -Wno-sign-promo 239 240 241LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 242LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 243LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 244### Rules for final target. 245 246LOCAL_LDFLAGS_Debug := \ 247 -Wl,-z,now \ 248 -Wl,-z,relro \ 249 -Wl,-z,noexecstack \ 250 -fPIC \ 251 -Wl,-z,relro \ 252 -Wl,-z,now \ 253 -fuse-ld=gold \ 254 -nostdlib \ 255 -Wl,--no-undefined \ 256 -Wl,--exclude-libs=ALL \ 257 -Wl,--icf=safe \ 258 -Wl,--fatal-warnings \ 259 -Wl,--gc-sections \ 260 -Wl,--warn-shared-textrel \ 261 -Wl,-O1 \ 262 -Wl,--as-needed 263 264 265LOCAL_LDFLAGS_Release := \ 266 -Wl,-z,now \ 267 -Wl,-z,relro \ 268 -Wl,-z,noexecstack \ 269 -fPIC \ 270 -Wl,-z,relro \ 271 -Wl,-z,now \ 272 -fuse-ld=gold \ 273 -nostdlib \ 274 -Wl,--no-undefined \ 275 -Wl,--exclude-libs=ALL \ 276 -Wl,--icf=safe \ 277 -Wl,-O1 \ 278 -Wl,--as-needed \ 279 -Wl,--gc-sections \ 280 -Wl,--fatal-warnings \ 281 -Wl,--warn-shared-textrel 282 283 284LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 285 286LOCAL_STATIC_LIBRARIES := \ 287 ui_ui_gyp 288 289# Enable grouping to fix circular references 290LOCAL_GROUP_STATIC_LIBRARIES := true 291 292LOCAL_SHARED_LIBRARIES := \ 293 libskia \ 294 libstlport \ 295 libdl 296 297# Add target alias to "gyp_all_modules" target. 298.PHONY: gyp_all_modules 299gyp_all_modules: components_autofill_core_common_gyp 300 301# Alias gyp target name. 302.PHONY: autofill_core_common 303autofill_core_common: components_autofill_core_common_gyp 304 305include $(BUILD_STATIC_LIBRARY) 306