# Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { 'target_name': 'autofill_regexes', 'type': 'none', 'actions': [{ 'action_name': 'autofill_regexes', 'inputs': [ '<(DEPTH)/build/escape_unicode.py', 'autofill/browser/autofill_regex_constants.cc.utf8', ], 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/autofill_regex_constants.cc', ], 'action': ['python', '<(DEPTH)/build/escape_unicode.py', '-o', '<(SHARED_INTERMEDIATE_DIR)', 'autofill/browser/autofill_regex_constants.cc.utf8'], }], }, { # Protobuf compiler / generate rule for Autofill's risk integration. 'target_name': 'autofill_risk_proto', 'type': 'static_library', 'sources': [ 'autofill/browser/risk/proto/fingerprint.proto', ], 'variables': { 'proto_in_dir': 'autofill/browser/risk/proto', 'proto_out_dir': 'components/autofill/browser/risk/proto', }, 'includes': [ '../build/protoc.gypi' ] }, ], 'conditions': [ ['OS != "ios"', { 'targets': [ { 'target_name': 'autofill_common', 'type': 'static_library', 'dependencies': [ '../base/base.gyp:base', '../build/temp_gyp/googleurl.gyp:googleurl', '../content/content.gyp:content_common', '../ipc/ipc.gyp:ipc', '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit', '../ui/ui.gyp:ui', ], 'conditions': [ ['OS == "android"', { 'dependencies': [ 'autofill_jni_headers', ], }], ], 'include_dirs': [ '..', '<(SHARED_INTERMEDIATE_DIR)/autofill' ], 'sources': [ 'autofill/browser/android/auxiliary_profile_loader_android.cc', 'autofill/browser/android/auxiliary_profile_loader_android.h', 'autofill/browser/android/auxiliary_profiles_android.cc', 'autofill/browser/android/auxiliary_profiles_android.h', 'autofill/browser/android/component_jni_registrar.cc', 'autofill/browser/android/component_jni_registrar.h', 'autofill/browser/android/personal_data_manager_android.cc', 'autofill/common/autocheckout_status.h', 'autofill/common/autofill_constants.cc', 'autofill/common/autofill_constants.h', 'autofill/common/autofill_messages.h', 'autofill/common/autofill_pref_names.cc', 'autofill/common/autofill_pref_names.h', 'autofill/common/autofill_switches.cc', 'autofill/common/autofill_switches.h', 'autofill/common/form_data.cc', 'autofill/common/form_data.h', 'autofill/common/form_data_predictions.cc', 'autofill/common/form_data_predictions.h', 'autofill/common/form_field_data.cc', 'autofill/common/form_field_data.h', 'autofill/common/form_field_data_predictions.cc', 'autofill/common/form_field_data_predictions.h', 'autofill/common/password_form_fill_data.cc', 'autofill/common/password_form_fill_data.h', 'autofill/common/password_generation_util.cc', 'autofill/common/password_generation_util.h', 'autofill/common/web_element_descriptor.cc', 'autofill/common/web_element_descriptor.h', ], }, ], }], ['OS == "android"', { 'targets': [ { 'target_name': 'autofill_java', 'type': 'none', 'dependencies': [ '../base/base.gyp:base', '../content/content.gyp:content_java', ], 'variables': { 'java_in_dir': 'autofill/browser/android/java', }, 'includes': [ '../build/java.gypi' ], }, { 'target_name': 'autofill_jni_headers', 'type': 'none', 'sources': [ 'autofill/browser/android/java/src/org/chromium/components/browser/autofill/PersonalAutofillPopulator.java', ], 'variables': { 'jni_gen_package': 'autofill', }, 'includes': [ '../build/jni_generator.gypi' ], }, ], }], ], }