| 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 'targets': [ | 9 'targets': [ |
| 10 { | 10 { |
| 11 # Note, this target_name cannot be 'url', because that will generate | 11 'target_name': 'url', |
| 12 # 'url.dll' for a Windows component build, and that will confuse Windows, | 12 'type': 'static_library', |
| 13 # which has a system DLL with the same name. | |
| 14 'target_name': 'url_lib', | |
| 15 'type': '<(component)', | |
| 16 'dependencies': [ | 13 'dependencies': [ |
| 17 '../base/base.gyp:base', | 14 '../base/base.gyp:base', |
| 18 '../third_party/icu/icu.gyp:icudata', | 15 '../third_party/icu/icu.gyp:icudata', |
| 19 '../third_party/icu/icu.gyp:icui18n', | 16 '../third_party/icu/icu.gyp:icui18n', |
| 20 '../third_party/icu/icu.gyp:icuuc', | 17 '../third_party/icu/icu.gyp:icuuc', |
| 21 ], | 18 ], |
| 22 'sources': [ | 19 'sources': [ |
| 23 'gurl.cc', | 20 'gurl.cc', |
| 24 'gurl.h', | 21 'gurl.h', |
| 25 'url_canon.h', | 22 'url_canon.h', |
| (...skipping 22 matching lines...) Expand all Loading... |
| 48 'url_parse_internal.h', | 45 'url_parse_internal.h', |
| 49 'url_util.cc', | 46 'url_util.cc', |
| 50 'url_util.h', | 47 'url_util.h', |
| 51 ], | 48 ], |
| 52 'direct_dependent_settings': { | 49 'direct_dependent_settings': { |
| 53 'include_dirs': [ | 50 'include_dirs': [ |
| 54 '..', | 51 '..', |
| 55 ], | 52 ], |
| 56 }, | 53 }, |
| 57 'defines': [ | 54 'defines': [ |
| 58 'URL_IMPLEMENTATION', | 55 'FULL_FILESYSTEM_URL_SUPPORT=1', |
| 59 ], | 56 ], |
| 60 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 57 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 61 'msvs_disabled_warnings': [4267, ], | 58 'msvs_disabled_warnings': [4267, ], |
| 62 }, | 59 }, |
| 63 { | 60 { |
| 64 'target_name': 'url_unittests', | 61 'target_name': 'url_unittests', |
| 65 'type': 'executable', | 62 'type': 'executable', |
| 66 'dependencies': [ | 63 'dependencies': [ |
| 67 '../base/base.gyp:base_i18n', | 64 '../base/base.gyp:base_i18n', |
| 68 '../base/base.gyp:run_all_unittests', | 65 '../base/base.gyp:run_all_unittests', |
| 69 '../testing/gtest.gyp:gtest', | 66 '../testing/gtest.gyp:gtest', |
| 70 '../third_party/icu/icu.gyp:icuuc', | 67 '../third_party/icu/icu.gyp:icuuc', |
| 71 'url_lib', | 68 'url', |
| 72 ], | 69 ], |
| 73 'sources': [ | 70 'sources': [ |
| 74 'gurl_unittest.cc', | 71 'gurl_unittest.cc', |
| 75 'url_canon_unittest.cc', | 72 'url_canon_unittest.cc', |
| 76 'url_parse_unittest.cc', | 73 'url_parse_unittest.cc', |
| 77 'url_test_utils.h', | 74 'url_test_utils.h', |
| 78 'url_util_unittest.cc', | 75 'url_util_unittest.cc', |
| 79 ], | 76 ], |
| 77 'defines': [ |
| 78 'FULL_FILESYSTEM_URL_SUPPORT=1', |
| 79 ], |
| 80 'conditions': [ | 80 'conditions': [ |
| 81 ['os_posix==1 and OS!="mac" and OS!="ios"', | 81 ['os_posix==1 and OS!="mac" and OS!="ios"', |
| 82 { | 82 { |
| 83 'conditions': [ | 83 'conditions': [ |
| 84 ['linux_use_tcmalloc==1', | 84 ['linux_use_tcmalloc==1', |
| 85 { | 85 { |
| 86 'dependencies': [ | 86 'dependencies': [ |
| 87 '../base/allocator/allocator.gyp:allocator', | 87 '../base/allocator/allocator.gyp:allocator', |
| 88 ], | 88 ], |
| 89 } | 89 } |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 'cp', '-R', '<(source_file)', '<(dest_file)', | 149 'cp', '-R', '<(source_file)', '<(dest_file)', |
| 150 ], | 150 ], |
| 151 }, | 151 }, |
| 152 ], | 152 ], |
| 153 } | 153 } |
| 154 ] | 154 ] |
| 155 ], | 155 ], |
| 156 }, | 156 }, |
| 157 ], | 157 ], |
| 158 } | 158 } |
| OLD | NEW |