[SyncFS] Build indexes from FileTracker entries on disk.
[chromium-blink-merge.git] / third_party / libaddressinput / libaddressinput.gyp
blobe0aa83b0592032088cf17588206bb047faed19b9
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'],
6   'variables': {
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',
24     ],
25   },
26   'targets': [
27     {
28       'target_name': 'libaddressinput_strings',
29       'type': 'none',
30       'variables': {
31         'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/libaddressinput/',
32         'grit_grd_file': '../../chrome/app/address_input_strings.grd',
33       },
34       'actions': [
35         {
36           'action_name': 'libaddressinput_strings',
37           'variables': {
38           },
39           'includes': [
40             '../../build/grit_action.gypi',
41           ],
42         },
43       ],
44       'direct_dependent_settings': {
45         # Files in libaddressinput include the grit-generated en_messages.cc
46         # without knowing its path.
47         'include_dirs': [
48           '<(grit_out_dir)',
49         ],
50       },
51     },
52     {
53       'target_name': 'libaddressinput_util',
54       'type': 'static_library',
55       'sources': [
56         '<@(libaddressinput_util_files)',
57         'chromium/addressinput_util.cc',
58         'chromium/json.cc',
59       ],
60       'sources!': [
61         'src/cpp/src/util/json.cc',
62       ],
63       'conditions': [
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.
67           'xcode_settings': {
68             'GCC_WARN_ABOUT_MISSING_NEWLINE': 'NO',
69           },
70         }],
71       ],
72       'include_dirs': [
73         'chromium/override/',
74         'src/cpp/include/',
75       ],
76       'defines': [
77         'I18N_ADDRESSINPUT_USE_BASICTYPES_OVERRIDE=1',
78       ],
79       'direct_dependent_settings': {
80         'include_dirs': [
81           'chromium/override/',
82           'src/cpp/include/',
83         ],
84         'defines': [
85           'I18N_ADDRESSINPUT_USE_BASICTYPES_OVERRIDE=1',
86         ],
87       },
88       'dependencies': [
89         '../re2/re2.gyp:re2',
90         'libaddressinput_strings',
91       ],
92       'export_dependent_settings': [
93         'libaddressinput_strings',
94       ],
95     },
96     {
97       'target_name': 'libaddressinput',
98       'type': 'static_library',
99       'sources': [
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',
107         'chromium/trie.cc',
108       ],
109       'sources!': [
110         '<@(libaddressinput_util_files)',
111         'src/cpp/src/util/string_compare.cc',
112       ],
113       'direct_dependent_settings': {
114         'defines': [
115           'I18N_ADDRESS_VALIDATION_DATA_URL="https://i18napis.appspot.com/ssl-aggregate-address/"',
116         ],
117       },
118       'dependencies': [
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',
126       ],
127       'export_dependent_settings': [
128         'libaddressinput_util',
129       ],
130     },
131     {
132       'target_name': 'libaddressinput_unittests',
133       'type': '<(gtest_target_type)',
134       'sources': [
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',
144       ],
145       'defines': [
146         'TEST_DATA_DIR="third_party/libaddressinput/src/testdata"',
147       ],
148       'include_dirs': [
149         '../../',
150         'src/cpp/src/',
151       ],
152       'dependencies': [
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',
157         'libaddressinput',
158         'libaddressinput_util',
159       ],
160     },
161   ],