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.
14 # Note, this target_name cannot be 'url', because that will generate
15 # 'url.dll' for a Windows component build, and that will confuse Windows,
16 # which has a system DLL with the same name.
17 'target_name': 'url_lib',
18 'type': '<(component)',
20 '../base/base.gyp:base',
21 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
22 '../third_party/icu/icu.gyp:icui18n',
23 '../third_party/icu/icu.gyp:icuuc',
28 'direct_dependent_settings': {
36 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
37 'msvs_disabled_warnings': [4267, ],
40 'target_name': 'url_unittests',
43 '../base/base.gyp:run_all_unittests',
44 '../testing/gtest.gyp:gtest',
45 '../third_party/icu/icu.gyp:icuuc',
51 'scheme_host_port_unittest.cc',
52 'url_canon_icu_unittest.cc',
53 'url_canon_unittest.cc',
54 'url_parse_unittest.cc',
56 'url_util_unittest.cc',
59 ['os_posix==1 and OS!="mac" and OS!="ios" and use_allocator!="none"',
62 '../base/allocator/allocator.gyp:allocator',
67 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
68 'msvs_disabled_warnings': [4267, ],
75 'target_name': 'url_jni_headers',
78 'android/java/src/org/chromium/url/IDNStringUtil.java'
81 'jni_gen_package': 'url',
83 'includes': [ '../build/jni_generator.gypi' ],
86 'target_name': 'url_java',
89 'java_in_dir': '../url/android/java',
92 '../base/base.gyp:base',
94 'includes': [ '../build/java.gypi' ],
97 # Same as url_lib but using ICU alternatives on Android.
98 'target_name': 'url_lib_use_icu_alternatives_on_android',
99 'type': '<(component)',
101 '../base/base.gyp:base',
102 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
108 'url_canon_icu_alternatives_android.cc',
109 'url_canon_icu_alternatives_android.h',
115 'direct_dependent_settings': {
121 'URL_IMPLEMENTATION',
122 'USE_ICU_ALTERNATIVES_ON_ANDROID=1',
127 ['test_isolation_mode != "noop"', {
130 'target_name': 'url_unittests_run',
136 '../build/isolate.gypi',
139 'url_unittests.isolate',