1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 2 # Use of this source code is governed by a BSD-style license that can be 3 # found in the LICENSE file. 4 5 { 6 'targets': [ 7 { 8 # Private target only used in components/autofill. 9 'target_name': 'autofill_regexes', 10 'type': 'none', 11 'actions': [{ 12 'action_name': 'autofill_regexes', 13 'inputs': [ 14 '<(DEPTH)/build/escape_unicode.py', 15 'autofill/core/browser/autofill_regex_constants.cc.utf8', 16 ], 17 'outputs': [ 18 '<(SHARED_INTERMEDIATE_DIR)/autofill_regex_constants.cc', 19 ], 20 'action': ['python', '<(DEPTH)/build/escape_unicode.py', 21 '-o', '<(SHARED_INTERMEDIATE_DIR)', 22 'autofill/core/browser/autofill_regex_constants.cc.utf8'], 23 }], 24 }, 25 26 { 27 'target_name': 'autofill_core_common', 28 'type': 'static_library', 29 'dependencies': [ 30 '../base/base.gyp:base', 31 '../ui/gfx/gfx.gyp:gfx', 32 '../ui/ui.gyp:ui', 33 '../url/url.gyp:url_lib', 34 ], 35 'conditions': [ 36 ['OS == "android"', { 37 'dependencies': [ 38 'autofill_jni_headers', 39 ], 40 }], 41 ], 42 'include_dirs': [ 43 '..', 44 '<(SHARED_INTERMEDIATE_DIR)/autofill' 45 ], 46 'sources': [ 47 'autofill/core/browser/android/auxiliary_profile_loader_android.cc', 48 'autofill/core/browser/android/auxiliary_profile_loader_android.h', 49 'autofill/core/browser/android/auxiliary_profiles_android.cc', 50 'autofill/core/browser/android/auxiliary_profiles_android.h', 51 'autofill/core/browser/android/component_jni_registrar.cc', 52 'autofill/core/browser/android/component_jni_registrar.h', 53 'autofill/core/browser/android/personal_data_manager_android.cc', 54 'autofill/core/common/autofill_constants.cc', 55 'autofill/core/common/autofill_constants.h', 56 'autofill/core/common/autofill_pref_names.cc', 57 'autofill/core/common/autofill_pref_names.h', 58 'autofill/core/common/autofill_switches.cc', 59 'autofill/core/common/autofill_switches.h', 60 'autofill/core/common/form_data.cc', 61 'autofill/core/common/form_data.h', 62 'autofill/core/common/form_data_predictions.cc', 63 'autofill/core/common/form_data_predictions.h', 64 'autofill/core/common/form_field_data.cc', 65 'autofill/core/common/form_field_data.h', 66 'autofill/core/common/form_field_data_predictions.cc', 67 'autofill/core/common/form_field_data_predictions.h', 68 'autofill/core/common/password_autofill_util.cc', 69 'autofill/core/common/password_autofill_util.h', 70 'autofill/core/common/password_form.cc', 71 'autofill/core/common/password_form.h', 72 'autofill/core/common/password_form_fill_data.cc', 73 'autofill/core/common/password_form_fill_data.h', 74 'autofill/core/common/password_generation_util.cc', 75 'autofill/core/common/password_generation_util.h', 76 'autofill/core/common/web_element_descriptor.cc', 77 'autofill/core/common/web_element_descriptor.h', 78 ], 79 }, 80 81 { 82 'target_name': 'autofill_core_browser', 83 'type': 'static_library', 84 'include_dirs': [ 85 '..', 86 ], 87 'dependencies': [ 88 'autofill_core_common', 89 'autofill_regexes', 90 'component_strings.gyp:component_strings', 91 'encryptor', 92 'user_prefs', 93 'webdata_common', 94 '../base/base.gyp:base', 95 '../base/base.gyp:base_i18n', 96 '../base/base.gyp:base_prefs', 97 '../google_apis/google_apis.gyp:google_apis', 98 '../skia/skia.gyp:skia', 99 '../sql/sql.gyp:sql', 100 '../third_party/icu/icu.gyp:icui18n', 101 '../third_party/icu/icu.gyp:icuuc', 102 '../third_party/libjingle/libjingle.gyp:libjingle', 103 '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber', 104 '../ui/gfx/gfx.gyp:gfx', 105 '../ui/ui.gyp:ui', 106 '../url/url.gyp:url_lib', 107 ], 108 # TODO(blundell): Eliminate the need for this conditional dependence. 109 # crbug.com/328150 110 'conditions': [ 111 ['OS != "ios"', { 112 'dependencies': [ 113 '../webkit/webkit_resources.gyp:webkit_resources', 114 ], 115 }], 116 ], 117 'sources': [ 118 'autofill/core/browser/address.cc', 119 'autofill/core/browser/address.h', 120 'autofill/core/browser/address_field.cc', 121 'autofill/core/browser/address_field.h', 122 'autofill/core/browser/autocomplete_history_manager.cc', 123 'autofill/core/browser/autocomplete_history_manager.h', 124 'autofill/core/browser/autofill-inl.h', 125 'autofill/core/browser/autofill_country.cc', 126 'autofill/core/browser/autofill_country.h', 127 'autofill/core/browser/autofill_data_model.cc', 128 'autofill/core/browser/autofill_data_model.h', 129 'autofill/core/browser/autofill_download.cc', 130 'autofill/core/browser/autofill_download.h', 131 'autofill/core/browser/autofill_download_url.cc', 132 'autofill/core/browser/autofill_download_url.h', 133 'autofill/core/browser/autofill_driver.h', 134 'autofill/core/browser/autofill_external_delegate.cc', 135 'autofill/core/browser/autofill_external_delegate.h', 136 'autofill/core/browser/autofill_field.cc', 137 'autofill/core/browser/autofill_field.h', 138 'autofill/core/browser/autofill_ie_toolbar_import_win.cc', 139 'autofill/core/browser/autofill_ie_toolbar_import_win.h', 140 'autofill/core/browser/autofill_manager.cc', 141 'autofill/core/browser/autofill_manager.h', 142 'autofill/core/browser/autofill_manager_delegate.h', 143 'autofill/core/browser/autofill_manager_test_delegate.h', 144 'autofill/core/browser/autofill_metrics.cc', 145 'autofill/core/browser/autofill_metrics.h', 146 'autofill/core/browser/autofill_popup_delegate.h', 147 'autofill/core/browser/autofill_profile.cc', 148 'autofill/core/browser/autofill_profile.h', 149 'autofill/core/browser/autofill_regex_constants.cc.utf8', 150 'autofill/core/browser/autofill_regex_constants.h', 151 'autofill/core/browser/autofill_regexes.cc', 152 'autofill/core/browser/autofill_regexes.h', 153 'autofill/core/browser/autofill_scanner.cc', 154 'autofill/core/browser/autofill_scanner.h', 155 'autofill/core/browser/autofill_server_field_info.h', 156 'autofill/core/browser/autofill_type.cc', 157 'autofill/core/browser/autofill_type.h', 158 'autofill/core/browser/autofill_xml_parser.cc', 159 'autofill/core/browser/autofill_xml_parser.h', 160 'autofill/core/browser/contact_info.cc', 161 'autofill/core/browser/contact_info.h', 162 'autofill/core/browser/credit_card.cc', 163 'autofill/core/browser/credit_card.h', 164 'autofill/core/browser/credit_card_field.cc', 165 'autofill/core/browser/credit_card_field.h', 166 'autofill/core/browser/email_field.cc', 167 'autofill/core/browser/email_field.h', 168 'autofill/core/browser/field_types.h', 169 'autofill/core/browser/form_field.cc', 170 'autofill/core/browser/form_field.h', 171 'autofill/core/browser/form_group.cc', 172 'autofill/core/browser/form_group.h', 173 'autofill/core/browser/form_structure.cc', 174 'autofill/core/browser/form_structure.h', 175 'autofill/core/browser/name_field.cc', 176 'autofill/core/browser/name_field.h', 177 'autofill/core/browser/password_autofill_manager.cc', 178 'autofill/core/browser/password_autofill_manager.h', 179 'autofill/core/browser/password_generator.cc', 180 'autofill/core/browser/password_generator.h', 181 'autofill/core/browser/personal_data_manager.cc', 182 'autofill/core/browser/personal_data_manager.h', 183 'autofill/core/browser/personal_data_manager_mac.mm', 184 'autofill/core/browser/personal_data_manager_observer.h', 185 'autofill/core/browser/phone_field.cc', 186 'autofill/core/browser/phone_field.h', 187 'autofill/core/browser/phone_number.cc', 188 'autofill/core/browser/phone_number.h', 189 'autofill/core/browser/phone_number_i18n.cc', 190 'autofill/core/browser/phone_number_i18n.h', 191 'autofill/core/browser/state_names.cc', 192 'autofill/core/browser/state_names.h', 193 'autofill/core/browser/validation.cc', 194 'autofill/core/browser/validation.h', 195 'autofill/core/browser/webdata/autofill_change.cc', 196 'autofill/core/browser/webdata/autofill_change.h', 197 'autofill/core/browser/webdata/autofill_entry.cc', 198 'autofill/core/browser/webdata/autofill_entry.h', 199 'autofill/core/browser/webdata/autofill_table.cc', 200 'autofill/core/browser/webdata/autofill_table.h', 201 'autofill/core/browser/webdata/autofill_webdata.h', 202 'autofill/core/browser/webdata/autofill_webdata_backend.h', 203 'autofill/core/browser/webdata/autofill_webdata_backend_impl.cc', 204 'autofill/core/browser/webdata/autofill_webdata_backend_impl.h', 205 'autofill/core/browser/webdata/autofill_webdata_service.cc', 206 'autofill/core/browser/webdata/autofill_webdata_service.h', 207 'autofill/core/browser/webdata/autofill_webdata_service_observer.h', 208 209 # This file is generated by the autofill_regexes action. 210 '<(SHARED_INTERMEDIATE_DIR)/autofill_regex_constants.cc', 211 ], 212 213 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 214 'msvs_disabled_warnings': [4267, ], 215 }, 216 217 { 218 'target_name': 'autofill_core_test_support', 219 'type': 'static_library', 220 'dependencies': [ 221 'autofill_core_common', 222 'autofill_core_browser', 223 '../skia/skia.gyp:skia', 224 '../testing/gtest.gyp:gtest', 225 ], 226 'sources': [ 227 'autofill/core/browser/android/test_auxiliary_profile_loader_android.cc', 228 'autofill/core/browser/android/test_auxiliary_profile_loader_android.h', 229 'autofill/core/browser/autofill_test_utils.cc', 230 'autofill/core/browser/autofill_test_utils.h', 231 'autofill/core/browser/data_driven_test.cc', 232 'autofill/core/browser/data_driven_test.h', 233 'autofill/core/browser/test_autofill_driver.cc', 234 'autofill/core/browser/test_autofill_driver.h', 235 'autofill/core/browser/test_autofill_external_delegate.cc', 236 'autofill/core/browser/test_autofill_external_delegate.h', 237 'autofill/core/browser/test_autofill_manager_delegate.cc', 238 'autofill/core/browser/test_autofill_manager_delegate.h', 239 'autofill/core/browser/test_personal_data_manager.cc', 240 'autofill/core/browser/test_personal_data_manager.h', 241 ], 242 }, 243 ], 244 'conditions': [ 245 ['OS != "ios"', { 246 'targets': [ 247 { 248 'target_name': 'autofill_content_common', 249 'type': 'static_library', 250 'dependencies': [ 251 'autofill_core_common', 252 '../base/base.gyp:base', 253 '../content/content.gyp:content_common', 254 '../ipc/ipc.gyp:ipc', 255 '../third_party/WebKit/public/blink.gyp:blink_minimal', 256 '../ui/gfx/gfx.gyp:gfx', 257 ], 258 'include_dirs': [ 259 '..', 260 ], 261 'sources': [ 262 'autofill/content/common/autofill_messages.h', 263 'autofill/content/common/autofill_message_generator.cc', 264 'autofill/content/common/autofill_message_generator.h', 265 'autofill/content/common/autofill_param_traits_macros.h', 266 ], 267 }, 268 269 { 270 # Protobuf compiler / generate rule for Autofill's risk integration. 271 'target_name': 'autofill_content_risk_proto', 272 'type': 'static_library', 273 'sources': [ 274 'autofill/content/browser/risk/proto/fingerprint.proto', 275 ], 276 'variables': { 277 'proto_in_dir': 'autofill/content/browser/risk/proto', 278 'proto_out_dir': 'components/autofill/content/browser/risk/proto', 279 }, 280 'includes': [ '../build/protoc.gypi' ] 281 }, 282 { 283 'target_name': 'autofill_content_test_support', 284 'type': 'static_library', 285 'dependencies': [ 286 '../testing/gmock.gyp:gmock', 287 ], 288 'sources': [ 289 'autofill/content/browser/wallet/mock_wallet_client.cc', 290 'autofill/content/browser/wallet/mock_wallet_client.h', 291 'autofill/content/browser/wallet/wallet_test_util.cc', 292 'autofill/content/browser/wallet/wallet_test_util.h', 293 ], 294 'include_dirs': [ '..' ], 295 }, 296 { 297 'target_name': 'autofill_content_browser', 298 'type': 'static_library', 299 'include_dirs': [ 300 '..', 301 ], 302 'dependencies': [ 303 'autofill_content_common', 304 'autofill_content_risk_proto', 305 'autofill_core_browser', 306 'autofill_core_common', 307 'autofill_regexes', 308 'encryptor', 309 'user_prefs', 310 'webdata_common', 311 '../base/base.gyp:base', 312 '../base/base.gyp:base_i18n', 313 '../base/base.gyp:base_prefs', 314 '../content/content.gyp:content_browser', 315 '../content/content.gyp:content_common', 316 '../google_apis/google_apis.gyp:google_apis', 317 '../ipc/ipc.gyp:ipc', 318 '../skia/skia.gyp:skia', 319 '../sql/sql.gyp:sql', 320 '../third_party/icu/icu.gyp:icui18n', 321 '../third_party/icu/icu.gyp:icuuc', 322 '../third_party/libjingle/libjingle.gyp:libjingle', 323 '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber', 324 '../ui/gfx/gfx.gyp:gfx', 325 '../ui/ui.gyp:ui', 326 '../url/url.gyp:url_lib', 327 '../webkit/webkit_resources.gyp:webkit_resources', 328 329 'component_strings.gyp:component_strings', 330 ], 331 'sources': [ 332 'autofill/content/browser/autofill_driver_impl.cc', 333 'autofill/content/browser/autofill_driver_impl.h', 334 'autofill/content/browser/request_autocomplete_manager.cc', 335 'autofill/content/browser/request_autocomplete_manager.h', 336 'autofill/content/browser/risk/fingerprint.cc', 337 'autofill/content/browser/risk/fingerprint.h', 338 'autofill/content/browser/wallet/form_field_error.cc', 339 'autofill/content/browser/wallet/form_field_error.h', 340 'autofill/content/browser/wallet/full_wallet.cc', 341 'autofill/content/browser/wallet/full_wallet.h', 342 'autofill/content/browser/wallet/gaia_account.cc', 343 'autofill/content/browser/wallet/gaia_account.h', 344 'autofill/content/browser/wallet/instrument.cc', 345 'autofill/content/browser/wallet/instrument.h', 346 'autofill/content/browser/wallet/required_action.cc', 347 'autofill/content/browser/wallet/required_action.h', 348 'autofill/content/browser/wallet/wallet_address.cc', 349 'autofill/content/browser/wallet/wallet_address.h', 350 'autofill/content/browser/wallet/wallet_client.cc', 351 'autofill/content/browser/wallet/wallet_client.h', 352 'autofill/content/browser/wallet/wallet_client_delegate.h', 353 'autofill/content/browser/wallet/wallet_items.cc', 354 'autofill/content/browser/wallet/wallet_items.h', 355 'autofill/content/browser/wallet/wallet_service_url.cc', 356 'autofill/content/browser/wallet/wallet_service_url.h', 357 'autofill/content/browser/wallet/wallet_signin_helper.cc', 358 'autofill/content/browser/wallet/wallet_signin_helper.h', 359 ], 360 361 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 362 'msvs_disabled_warnings': [4267, ], 363 }, 364 365 { 366 'target_name': 'autofill_content_renderer', 367 'type': 'static_library', 368 'include_dirs': [ 369 '..', 370 ], 371 'dependencies': [ 372 'autofill_content_common', 373 'autofill_core_common', 374 '../base/base.gyp:base', 375 '../content/content.gyp:content_renderer', 376 '../content/content.gyp:content_common', 377 '../ipc/ipc.gyp:ipc', 378 '../skia/skia.gyp:skia', 379 380 'component_strings.gyp:component_strings', 381 ], 382 'sources': [ 383 'autofill/content/renderer/autofill_agent.cc', 384 'autofill/content/renderer/autofill_agent.h', 385 'autofill/content/renderer/form_autofill_util.cc', 386 'autofill/content/renderer/form_autofill_util.h', 387 'autofill/content/renderer/form_cache.cc', 388 'autofill/content/renderer/form_cache.h', 389 'autofill/content/renderer/page_click_listener.h', 390 'autofill/content/renderer/page_click_tracker.cc', 391 'autofill/content/renderer/page_click_tracker.h', 392 'autofill/content/renderer/password_autofill_agent.cc', 393 'autofill/content/renderer/password_autofill_agent.h', 394 'autofill/content/renderer/password_form_conversion_utils.cc', 395 'autofill/content/renderer/password_form_conversion_utils.h', 396 'autofill/content/renderer/password_generation_agent.cc', 397 'autofill/content/renderer/password_generation_agent.h', 398 ], 399 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 400 'msvs_disabled_warnings': [4267, ], 401 }, 402 ], 403 }], 404 ['OS == "android"', { 405 'targets': [ 406 { 407 'target_name': 'autofill_java', 408 'type': 'none', 409 'dependencies': [ 410 '../base/base.gyp:base', 411 '../content/content.gyp:content_java', 412 ], 413 'variables': { 414 'java_in_dir': 'autofill/core/browser/android/java', 415 }, 416 'includes': [ '../build/java.gypi' ], 417 }, 418 { 419 'target_name': 'autofill_jni_headers', 420 'type': 'none', 421 'sources': [ 422 'autofill/core/browser/android/java/src/org/chromium/components/browser/autofill/PersonalAutofillPopulator.java', 423 ], 424 'variables': { 425 'jni_gen_package': 'autofill', 426 }, 427 'includes': [ '../build/jni_generator.gypi' ], 428 }, 429 ], 430 }], 431 ], 432 } 433