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.
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)',
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',
27 'url_canon_filesystemurl.cc',
28 'url_canon_fileurl.cc',
32 'url_canon_internal.cc',
33 'url_canon_internal.h',
34 'url_canon_internal_file.h',
37 'url_canon_mailtourl.cc',
39 'url_canon_pathurl.cc',
41 'url_canon_relative.cc',
42 'url_canon_stdstring.h',
43 'url_canon_stdurl.cc',
48 'url_parse_internal.h',
52 'direct_dependent_settings': {
60 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
61 'msvs_disabled_warnings': [4267, ],
64 'target_name': 'url_unittests',
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',
75 'url_canon_unittest.cc',
76 'url_parse_unittest.cc',
78 'url_util_unittest.cc',
81 ['os_posix==1 and OS!="mac" and OS!="ios"',
84 ['linux_use_tcmalloc==1',
87 '../base/allocator/allocator.gyp:allocator',
95 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
96 'msvs_disabled_warnings': [4267, ],
99 # url_unittests was formerly named googleurl_unittests. While the build
100 # bots are being switched to use the new name we need to support both
102 # TODO(tfarina): Remove this target when build bots are building and
103 # running url_unittests. crbug.com/229660
104 'target_name': 'googleurl_unittests',
114 'message': 'TEMPORARY: Copying url_unittests to googleurl_unittests',
115 'action_name': 'copy_url_unittests',
117 'source_file': '<(PRODUCT_DIR)/url_unittests<(EXECUTABLE_SUFFIX)',
118 'dest_file': '<(PRODUCT_DIR)/googleurl_unittests<(EXECUTABLE_SUFFIX)',
128 'python', '../build/cp.py', '<(source_file)', '<(dest_file)',
132 }, { # else OS == "ios"
135 'message': 'TEMPORARY: Copying url_unittests to googleurl_unittests',
136 'action_name': 'copy_url_unittests',
138 'source_file': '<(PRODUCT_DIR)/url_unittests.app/',
139 'dest_file': '<(PRODUCT_DIR)/googleurl_unittests.app',
149 'cp', '-R', '<(source_file)', '<(dest_file)',