1 # Copyright 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.
5 'includes': ['src/cpp/libaddressinput.gypi'],
7 'libaddressinput_util_files': [
8 'src/cpp/src/address_data.cc',
9 'src/cpp/src/address_field.cc',
10 'src/cpp/src/address_field_util.cc',
11 'src/cpp/src/address_formatter.cc',
12 'src/cpp/src/address_metadata.cc',
13 'src/cpp/src/address_ui.cc',
14 'src/cpp/src/format_element.cc',
15 'src/cpp/src/language.cc',
16 'src/cpp/src/localization.cc',
17 'src/cpp/src/lookup_key.cc',
18 'src/cpp/src/region_data_constants.cc',
19 'src/cpp/src/rule.cc',
20 'src/cpp/src/util/cctype_tolower_equal.cc',
21 'src/cpp/src/util/json.cc',
22 'src/cpp/src/util/string_split.cc',
23 'src/cpp/src/util/string_util.cc',
28 'target_name': 'libaddressinput_strings',
31 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/libaddressinput/',
32 'grit_grd_file': '../../chrome/app/address_input_strings.grd',
36 'action_name': 'libaddressinput_strings',
40 '../../build/grit_action.gypi',
44 'direct_dependent_settings': {
45 # Files in libaddressinput include the grit-generated en_messages.cc
46 # without knowing its path.
53 'target_name': 'libaddressinput_util',
54 'type': 'static_library',
56 '<@(libaddressinput_util_files)',
57 'chromium/addressinput_util.cc',
61 'src/cpp/src/util/json.cc',
64 ['OS=="mac" or OS=="ios"', {
65 # localization.cc in libaddressinput_util_files includes
66 # grit-generated en_messages.cc, which does not have a newline.
68 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'NO',
77 'I18N_ADDRESSINPUT_USE_BASICTYPES_OVERRIDE=1',
79 'direct_dependent_settings': {
85 'I18N_ADDRESSINPUT_USE_BASICTYPES_OVERRIDE=1',
90 'libaddressinput_strings',
92 'export_dependent_settings': [
93 'libaddressinput_strings',
97 'target_name': 'libaddressinput',
98 'type': 'static_library',
100 '<@(libaddressinput_files)',
101 'chromium/chrome_address_validator.cc',
102 'chromium/chrome_downloader_impl.cc',
103 'chromium/chrome_storage_impl.cc',
104 'chromium/fallback_data_store.cc',
105 'chromium/input_suggester.cc',
106 'chromium/string_compare.cc',
110 '<@(libaddressinput_util_files)',
111 'src/cpp/src/util/string_compare.cc',
113 'direct_dependent_settings': {
115 'I18N_ADDRESS_VALIDATION_DATA_URL="https://i18napis.appspot.com/ssl-aggregate-address/"',
119 '../../base/base.gyp:base',
120 '../../base/base.gyp:base_prefs',
121 '../../net/net.gyp:net',
122 '../icu/icu.gyp:icui18n',
123 '../icu/icu.gyp:icuuc',
124 '../re2/re2.gyp:re2',
125 'libaddressinput_util',
127 'export_dependent_settings': [
128 'libaddressinput_util',
132 'target_name': 'libaddressinput_unittests',
133 'type': '<(gtest_target_type)',
135 '<@(libaddressinput_test_files)',
136 'chromium/addressinput_util_unittest.cc',
137 'chromium/chrome_address_validator_unittest.cc',
138 'chromium/chrome_downloader_impl_unittest.cc',
139 'chromium/chrome_storage_impl_unittest.cc',
140 'chromium/fallback_data_store_unittest.cc',
141 'chromium/storage_test_runner.cc',
142 'chromium/string_compare_unittest.cc',
143 'chromium/trie_unittest.cc',
146 'TEST_DATA_DIR="third_party/libaddressinput/src/testdata"',
153 '../../base/base.gyp:base_prefs',
154 '../../base/base.gyp:run_all_unittests',
155 '../../net/net.gyp:net_test_support',
156 '../../testing/gtest.gyp:gtest',
158 'libaddressinput_util',