Add git cl format presubmit warning for extension and apps.
[chromium-blink-merge.git] / third_party / libaddressinput / libaddressinput.gyp
blob8c33175b5fbf7243a9020ba734668d744e196f50
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   'variables': {
6     # TODO(rouslan): Use the src/ directory. http://crbug.com/327046
7     'libaddressinput_dir': 'chromium',
8   },
9   'target_defaults': {
10     'conditions': [
11       ['OS=="mac" or OS=="ios"', {
12         'xcode_settings': {
13           'GCC_WARN_ABOUT_MISSING_NEWLINE': 'NO',
14         },
15       }],
16     ],
17     'defines': [
18       'CUSTOM_BASICTYPES="base/basictypes.h"',
19       'CUSTOM_SCOPED_PTR="base/memory/scoped_ptr.h"',
20     ],
21   },
22   'targets': [
23     {
24       'target_name': 'libaddressinput_strings',
25       'type': 'none',
26       'variables': {
27         'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/libaddressinput/',
28       },
29       'actions': [
30         {
31           'action_name': 'libaddressinput_strings',
32           'variables': {
33             'grit_grd_file': '<(libaddressinput_dir)/cpp/res/messages.grd',
34           },
35           'includes': [
36             '../../build/grit_action.gypi',
37           ],
38         },
39       ],
40       'includes': [
41         '../../build/grit_target.gypi',
42       ],
43     },
44     {
45       'target_name': 'libaddressinput',
46       'type': 'static_library',
47       'include_dirs': [
48         '<(libaddressinput_dir)/cpp/include/',
49         '<(SHARED_INTERMEDIATE_DIR)/libaddressinput/',
50       ],
51       'sources': [
52         'chromium/chrome_downloader_impl.cc',
53         'chromium/chrome_downloader_impl.h',
54         'chromium/chrome_storage_impl.cc',
55         'chromium/chrome_storage_impl.h',
56         'chromium/json.cc',
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',
98       ],
99       'defines': [
100         'VALIDATION_DATA_URL="https://i18napis.appspot.com/ssl-aggregate-address/"',
101       ],
102       'dependencies': [
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',
109       ],
110       'direct_dependent_settings': {
111         'defines': [
112           'CUSTOM_BASICTYPES="base/basictypes.h"',
113           'CUSTOM_SCOPED_PTR="base/memory/scoped_ptr.h"',
114         ],
115         'include_dirs': [
116           '<(libaddressinput_dir)/cpp/include/',
117         ],
118       },
119     },
120     {
121       'target_name': 'libaddressinput_unittests',
122       'type': '<(gtest_target_type)',
123       'include_dirs': [
124         '<(DEPTH)',
125         '<(libaddressinput_dir)/cpp/src/',
126         '<(DEPTH)/testing/gtest/include/',
127         '<(SHARED_INTERMEDIATE_DIR)/libaddressinput/',
128       ],
129       'sources': [
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',
154       ],
155       'defines': [
156         'TEST_DATA_DIR="third_party/libaddressinput/src/testdata"',
157       ],
158       'dependencies': [
159         'libaddressinput',
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',
165       ],
166     },
167   ],