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.
6 # TODO(rouslan): Use the src/ directory. http://crbug.com/327046
7 'libaddressinput_dir': 'chromium',
11 ['OS=="mac" or OS=="ios"', {
13 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'NO',
18 'CUSTOM_BASICTYPES="base/basictypes.h"',
19 'CUSTOM_SCOPED_PTR="base/memory/scoped_ptr.h"',
24 'target_name': 'libaddressinput_strings',
27 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/libaddressinput/',
31 'action_name': 'libaddressinput_strings',
33 'grit_grd_file': '<(libaddressinput_dir)/cpp/res/messages.grd',
36 '../../build/grit_action.gypi',
41 '../../build/grit_target.gypi',
45 'target_name': 'libaddressinput',
46 'type': 'static_library',
48 '<(libaddressinput_dir)/cpp/include/',
49 '<(SHARED_INTERMEDIATE_DIR)/libaddressinput/',
52 'chromium/chrome_downloader_impl.cc',
53 'chromium/chrome_downloader_impl.h',
54 'chromium/chrome_storage_impl.cc',
55 'chromium/chrome_storage_impl.h',
57 'chromium/string_compare.cc',
58 '<(libaddressinput_dir)/cpp/include/libaddressinput/address_data.h',
59 '<(libaddressinput_dir)/cpp/include/libaddressinput/address_field.h',
60 '<(libaddressinput_dir)/cpp/include/libaddressinput/address_problem.h',
61 '<(libaddressinput_dir)/cpp/include/libaddressinput/address_ui_component.h',
62 '<(libaddressinput_dir)/cpp/include/libaddressinput/address_ui.h',
63 '<(libaddressinput_dir)/cpp/include/libaddressinput/address_validator.h',
64 '<(libaddressinput_dir)/cpp/include/libaddressinput/load_rules_delegate.h',
65 '<(libaddressinput_dir)/cpp/include/libaddressinput/util/basictypes.h',
66 '<(libaddressinput_dir)/cpp/include/libaddressinput/util/internal/basictypes.h',
67 '<(libaddressinput_dir)/cpp/include/libaddressinput/util/internal/move.h',
68 '<(libaddressinput_dir)/cpp/include/libaddressinput/util/internal/scoped_ptr.h',
69 '<(libaddressinput_dir)/cpp/include/libaddressinput/util/internal/template_util.h',
70 '<(libaddressinput_dir)/cpp/include/libaddressinput/util/scoped_ptr.h',
71 '<(libaddressinput_dir)/cpp/src/address_data.cc',
72 '<(libaddressinput_dir)/cpp/src/address_field.cc',
73 '<(libaddressinput_dir)/cpp/src/address_problem.cc',
74 '<(libaddressinput_dir)/cpp/src/address_ui.cc',
75 '<(libaddressinput_dir)/cpp/src/address_validator.cc',
76 '<(libaddressinput_dir)/cpp/src/country_rules_aggregator.cc',
77 '<(libaddressinput_dir)/cpp/src/country_rules_aggregator.h',
78 '<(libaddressinput_dir)/cpp/src/fallback_data_store.cc',
79 '<(libaddressinput_dir)/cpp/src/fallback_data_store.h',
80 '<(libaddressinput_dir)/cpp/src/grit.h',
81 '<(libaddressinput_dir)/cpp/src/region_data_constants.cc',
82 '<(libaddressinput_dir)/cpp/src/region_data_constants.h',
83 '<(libaddressinput_dir)/cpp/src/retriever.cc',
84 '<(libaddressinput_dir)/cpp/src/retriever.h',
85 '<(libaddressinput_dir)/cpp/src/rule.cc',
86 '<(libaddressinput_dir)/cpp/src/rule.h',
87 '<(libaddressinput_dir)/cpp/src/ruleset.cc',
88 '<(libaddressinput_dir)/cpp/src/ruleset.h',
89 '<(libaddressinput_dir)/cpp/src/time_to_string.cc',
90 '<(libaddressinput_dir)/cpp/src/time_to_string.h',
91 '<(libaddressinput_dir)/cpp/src/util/json.h',
92 '<(libaddressinput_dir)/cpp/src/util/md5.cc',
93 '<(libaddressinput_dir)/cpp/src/util/md5.h',
94 '<(libaddressinput_dir)/cpp/src/util/stl_util.h',
95 '<(libaddressinput_dir)/cpp/src/util/string_compare.h',
96 '<(libaddressinput_dir)/cpp/src/util/string_split.cc',
97 '<(libaddressinput_dir)/cpp/src/util/string_split.h',
100 'VALIDATION_DATA_URL="https://i18napis.appspot.com/ssl-aggregate-address/"',
103 'libaddressinput_strings',
104 '<(DEPTH)/base/base.gyp:base',
105 '<(DEPTH)/base/base.gyp:base_i18n',
106 '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
107 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
108 '<(DEPTH)/third_party/re2/re2.gyp:re2',
110 'direct_dependent_settings': {
112 'CUSTOM_BASICTYPES="base/basictypes.h"',
113 'CUSTOM_SCOPED_PTR="base/memory/scoped_ptr.h"',
116 '<(libaddressinput_dir)/cpp/include/',
121 'target_name': 'libaddressinput_unittests',
122 'type': '<(gtest_target_type)',
125 '<(libaddressinput_dir)/cpp/src/',
126 '<(DEPTH)/testing/gtest/include/',
127 '<(SHARED_INTERMEDIATE_DIR)/libaddressinput/',
130 'chromium/chrome_downloader_impl_unittest.cc',
131 'chromium/chrome_rule_test.cc',
132 'chromium/chrome_storage_impl_unittest.cc',
133 '<(libaddressinput_dir)/cpp/test/address_data_test.cc',
134 '<(libaddressinput_dir)/cpp/test/address_ui_test.cc',
135 '<(libaddressinput_dir)/cpp/test/address_validator_test.cc',
136 '<(libaddressinput_dir)/cpp/test/country_rules_aggregator_test.cc',
137 '<(libaddressinput_dir)/cpp/test/fake_downloader.cc',
138 '<(libaddressinput_dir)/cpp/test/fake_downloader.h',
139 '<(libaddressinput_dir)/cpp/test/fake_downloader_test.cc',
140 '<(libaddressinput_dir)/cpp/test/fake_storage.cc',
141 '<(libaddressinput_dir)/cpp/test/fake_storage.h',
142 '<(libaddressinput_dir)/cpp/test/fake_storage_test.cc',
143 '<(libaddressinput_dir)/cpp/test/fallback_data_store_test.cc',
144 '<(libaddressinput_dir)/cpp/test/region_data_constants_test.cc',
145 '<(libaddressinput_dir)/cpp/test/retriever_test.cc',
146 '<(libaddressinput_dir)/cpp/test/rule_test.cc',
147 '<(libaddressinput_dir)/cpp/test/storage_test_runner.cc',
148 '<(libaddressinput_dir)/cpp/test/storage_test_runner.h',
149 '<(libaddressinput_dir)/cpp/test/util/json_test.cc',
150 '<(libaddressinput_dir)/cpp/test/util/md5_unittest.cc',
151 '<(libaddressinput_dir)/cpp/test/util/scoped_ptr_unittest.cc',
152 '<(libaddressinput_dir)/cpp/test/util/stl_util_unittest.cc',
153 '<(libaddressinput_dir)/cpp/test/util/string_split_unittest.cc',
156 'TEST_DATA_DIR="third_party/libaddressinput/src/testdata"',
160 'libaddressinput_strings',
161 '<(DEPTH)/base/base.gyp:base_prefs',
162 '<(DEPTH)/base/base.gyp:run_all_unittests',
163 '<(DEPTH)/net/net.gyp:net_test_support',
164 '<(DEPTH)/testing/gtest.gyp:gtest',