User interface of Apps Developer Tool:
[chromium-blink-merge.git] / url / url.gyp
bloba9a1a19dbfb6f2246c8760336da5579ad1a3e546
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   'variables': {
7     'chromium_code': 1,
8   },
9   'targets': [
10     {
11       # Note, this target_name cannot be 'url', because that will generate
12       # 'url.dll' for a Windows component build, and that will confuse Windows,
13       # which has a system DLL with the same name.
14       'target_name': 'url_lib',
15       'type': '<(component)',
16       'dependencies': [
17         '../base/base.gyp:base',
18         '../third_party/icu/icu.gyp:icudata',
19         '../third_party/icu/icu.gyp:icui18n',
20         '../third_party/icu/icu.gyp:icuuc',
21       ],
22       'sources': [
23         'gurl.cc',
24         'gurl.h',
25         'url_canon.h',
26         'url_canon_etc.cc',
27         'url_canon_filesystemurl.cc',
28         'url_canon_fileurl.cc',
29         'url_canon_host.cc',
30         'url_canon_icu.cc',
31         'url_canon_icu.h',
32         'url_canon_internal.cc',
33         'url_canon_internal.h',
34         'url_canon_internal_file.h',
35         'url_canon_ip.cc',
36         'url_canon_ip.h',
37         'url_canon_mailtourl.cc',
38         'url_canon_path.cc',
39         'url_canon_pathurl.cc',
40         'url_canon_query.cc',
41         'url_canon_relative.cc',
42         'url_canon_stdstring.h',
43         'url_canon_stdurl.cc',
44         'url_file.h',
45         'url_parse.cc',
46         'url_parse.h',
47         'url_parse_file.cc',
48         'url_parse_internal.h',
49         'url_util.cc',
50         'url_util.h',
51       ],
52       'direct_dependent_settings': {
53         'include_dirs': [
54           '..',
55         ],
56       },
57       'defines': [
58         'URL_IMPLEMENTATION',
59       ],
60       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
61       'msvs_disabled_warnings': [4267, ],
62     },
63     {
64       'target_name': 'url_unittests',
65       'type': 'executable',
66       'dependencies': [
67         '../base/base.gyp:base_i18n',
68         '../base/base.gyp:run_all_unittests',
69         '../testing/gtest.gyp:gtest',
70         '../third_party/icu/icu.gyp:icuuc',
71         'url_lib',
72       ],
73       'sources': [
74         'gurl_unittest.cc',
75         'url_canon_unittest.cc',
76         'url_parse_unittest.cc',
77         'url_test_utils.h',
78         'url_util_unittest.cc',
79       ],
80       'conditions': [
81         ['os_posix==1 and OS!="mac" and OS!="ios"',
82           {
83             'conditions': [
84               ['linux_use_tcmalloc==1',
85                 {
86                   'dependencies': [
87                     '../base/allocator/allocator.gyp:allocator',
88                   ],
89                 }
90               ],
91             ],
92           }
93         ],
94       ],
95       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
96       'msvs_disabled_warnings': [4267, ],
97     },
98   ],