Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: url/url.gyp

Issue 257673002: Make it possible to build url/ without ICU on android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change how failures are handled Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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': [ 9 'includes': [
10 'url_srcs.gypi', 10 'url_srcs.gypi',
(...skipping 15 matching lines...) Expand all
26 '<@(gurl_sources)', 26 '<@(gurl_sources)',
27 ], 27 ],
28 'direct_dependent_settings': { 28 'direct_dependent_settings': {
29 'include_dirs': [ 29 'include_dirs': [
30 '..', 30 '..',
31 ], 31 ],
32 }, 32 },
33 'defines': [ 33 'defines': [
34 'URL_IMPLEMENTATION', 34 'URL_IMPLEMENTATION',
35 ], 35 ],
36 'conditions': [
37 ['use_icu_alternatives==1', {
38 'sources!': [
39 'url_canon_icu.cc',
40 'url_canon_icu.h',
41 ],
42 'dependencies!': [
43 '../third_party/icu/icu.gyp:icui18n',
44 '../third_party/icu/icu.gyp:icuuc',
45 ],
46 }],
47 ['use_icu_alternatives==1 and OS=="android"', {
48 'dependencies': [
49 'url_java',
50 'url_jni_headers',
51 ],
52 'sources': [
53 'url_canon_icu_alternatives_android.cc',
54 'url_canon_icu_alternatives_android.h',
55 ],
56 }],
57 ],
36 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 58 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
37 'msvs_disabled_warnings': [4267, ], 59 'msvs_disabled_warnings': [4267, ],
38 }, 60 },
39 { 61 {
40 'target_name': 'url_unittests', 62 'target_name': 'url_unittests',
41 'type': 'executable', 63 'type': 'executable',
42 'dependencies': [ 64 'dependencies': [
43 '../base/base.gyp:base_i18n',
44 '../base/base.gyp:run_all_unittests', 65 '../base/base.gyp:run_all_unittests',
45 '../testing/gtest.gyp:gtest', 66 '../testing/gtest.gyp:gtest',
46 '../third_party/icu/icu.gyp:icuuc', 67 '../third_party/icu/icu.gyp:icuuc',
47 'url_lib', 68 'url_lib',
48 ], 69 ],
49 'sources': [ 70 'sources': [
50 'gurl_unittest.cc', 71 'gurl_unittest.cc',
51 'origin_unittest.cc', 72 'origin_unittest.cc',
73 'url_canon_icu_unittest.cc',
52 'url_canon_unittest.cc', 74 'url_canon_unittest.cc',
53 'url_parse_unittest.cc', 75 'url_parse_unittest.cc',
54 'url_test_utils.h', 76 'url_test_utils.h',
55 'url_util_unittest.cc', 77 'url_util_unittest.cc',
56 ], 78 ],
57 'conditions': [ 79 'conditions': [
58 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 80 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
59 ['os_posix==1 and OS!="mac" and OS!="ios" and ((use_allocator!="none" an d use_allocator!="see_use_tcmalloc") or (use_allocator=="see_use_tcmalloc" and l inux_use_tcmalloc==1))', 81 ['os_posix==1 and OS!="mac" and OS!="ios" and ((use_allocator!="none" an d use_allocator!="see_use_tcmalloc") or (use_allocator=="see_use_tcmalloc" and l inux_use_tcmalloc==1))',
60 { 82 {
61 'dependencies': [ 83 'dependencies': [
62 '../base/allocator/allocator.gyp:allocator', 84 '../base/allocator/allocator.gyp:allocator',
63 ], 85 ],
64 } 86 }
65 ], 87 ],
88 ['use_icu_alternatives==1',
89 {
90 'sources!': [
91 'url_canon_icu_unittest.cc',
92 ],
93 'dependencies!': [
94 '../third_party/icu/icu.gyp:icuuc',
95 ],
96 }
97 ],
66 ], 98 ],
67 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 99 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
68 'msvs_disabled_warnings': [4267, ], 100 'msvs_disabled_warnings': [4267, ],
69 }, 101 },
70 ], 102 ],
103 'conditions': [
104 ['use_icu_alternatives==1 and OS=="android"', {
105 'targets': [
106 {
107 'target_name': 'url_jni_headers',
108 'type': 'none',
109 'sources': [
110 'android/java/src/org/chromium/url/IDNStringUtil.java'
111 ],
112 'variables': {
113 'jni_gen_package': 'url',
114 },
115 'includes': [ '../build/jni_generator.gypi' ],
116 },
117 {
118 'target_name': 'url_java',
119 'type': 'none',
120 'variables': {
121 'java_in_dir': '../url/android/java',
122 },
123 'dependencies': [
124 '../base/base.gyp:base',
125 ],
126 'includes': [ '../build/java.gypi' ],
127 },
128 ],
129 }],
130 ],
71 } 131 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698