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