OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # TODO(mark): Upstream this file to googleurl. | 5 # TODO(tfarina): Remove this file when all the references are updated. |
6 { | 6 { |
7 'variables': { | 7 'variables': { |
8 'chromium_code': 1, | 8 'chromium_code': 1, |
9 }, | 9 }, |
10 'targets': [ | 10 'targets': [ |
11 { | 11 { |
12 'target_name': 'googleurl', | 12 'target_name': 'googleurl', |
13 'type': '<(component)', | 13 'type': 'none', |
14 'dependencies': [ | 14 'dependencies': [ |
15 '../../base/base.gyp:base', | 15 '../../googleurl/googleurl.gyp:googleurl', |
16 '../../third_party/icu/icu.gyp:icudata', | |
17 '../../third_party/icu/icu.gyp:icui18n', | |
18 '../../third_party/icu/icu.gyp:icuuc', | |
19 ], | 16 ], |
20 'sources': [ | 17 'export_dependent_settings': [ |
21 '../../googleurl/src/gurl.cc', | 18 '../../googleurl/googleurl.gyp:googleurl', |
22 '../../googleurl/src/gurl.h', | 19 ] |
23 '../../googleurl/src/url_canon.h', | |
24 '../../googleurl/src/url_canon_etc.cc', | |
25 '../../googleurl/src/url_canon_fileurl.cc', | |
26 '../../googleurl/src/url_canon_filesystemurl.cc', | |
27 '../../googleurl/src/url_canon_host.cc', | |
28 '../../googleurl/src/url_canon_icu.cc', | |
29 '../../googleurl/src/url_canon_icu.h', | |
30 '../../googleurl/src/url_canon_internal.cc', | |
31 '../../googleurl/src/url_canon_internal.h', | |
32 '../../googleurl/src/url_canon_internal_file.h', | |
33 '../../googleurl/src/url_canon_ip.cc', | |
34 '../../googleurl/src/url_canon_ip.h', | |
35 '../../googleurl/src/url_canon_mailtourl.cc', | |
36 '../../googleurl/src/url_canon_path.cc', | |
37 '../../googleurl/src/url_canon_pathurl.cc', | |
38 '../../googleurl/src/url_canon_query.cc', | |
39 '../../googleurl/src/url_canon_relative.cc', | |
40 '../../googleurl/src/url_canon_stdstring.h', | |
41 '../../googleurl/src/url_canon_stdurl.cc', | |
42 '../../googleurl/src/url_file.h', | |
43 '../../googleurl/src/url_parse.cc', | |
44 '../../googleurl/src/url_parse.h', | |
45 '../../googleurl/src/url_parse_file.cc', | |
46 '../../googleurl/src/url_parse_internal.h', | |
47 '../../googleurl/src/url_util.cc', | |
48 '../../googleurl/src/url_util.h', | |
49 ], | |
50 'direct_dependent_settings': { | |
51 'include_dirs': [ | |
52 '../..', | |
53 ], | |
54 }, | |
55 'defines': [ | |
56 'FULL_FILESYSTEM_URL_SUPPORT=1', | |
57 ], | |
58 'conditions': [ | |
59 ['component=="shared_library"', { | |
60 'defines': [ | |
61 'GURL_DLL', | |
62 'GURL_IMPLEMENTATION=1', | |
63 ], | |
64 'direct_dependent_settings': { | |
65 'defines': [ | |
66 'GURL_DLL', | |
67 ], | |
68 }, | |
69 }], | |
70 ], | |
71 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
72 'msvs_disabled_warnings': [4267, ], | |
73 }, | |
74 { | |
75 'target_name': 'googleurl_unittests', | |
76 'type': 'executable', | |
77 'dependencies': [ | |
78 'googleurl', | |
79 '../../base/base.gyp:base_i18n', | |
80 '../../base/base.gyp:run_all_unittests', | |
81 '../../testing/gtest.gyp:gtest', | |
82 '../../third_party/icu/icu.gyp:icuuc', | |
83 ], | |
84 'sources': [ | |
85 '../../googleurl/src/gurl_unittest.cc', | |
86 '../../googleurl/src/url_canon_unittest.cc', | |
87 '../../googleurl/src/url_parse_unittest.cc', | |
88 '../../googleurl/src/url_test_utils.h', | |
89 '../../googleurl/src/url_util_unittest.cc', | |
90 ], | |
91 'defines': [ | |
92 'FULL_FILESYSTEM_URL_SUPPORT=1', | |
93 ], | |
94 'conditions': [ | |
95 ['os_posix==1 and OS!="mac" and OS!="ios"', { | |
96 'conditions': [ | |
97 ['linux_use_tcmalloc==1', { | |
98 'dependencies': [ | |
99 '../../base/allocator/allocator.gyp:allocator', | |
100 ], | |
101 }], | |
102 ], | |
103 }], | |
104 ], | |
105 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
106 'msvs_disabled_warnings': [4267, ], | |
107 }, | 20 }, |
108 ], | 21 ], |
109 } | 22 } |
OLD | NEW |