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': [ | 9 'includes': [ |
10 'url_srcs.gypi', | 10 'url_srcs.gypi', |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
93 '../third_party/icu/icu.gyp:icuuc', | 93 '../third_party/icu/icu.gyp:icuuc', |
94 ], | 94 ], |
95 } | 95 } |
96 ], | 96 ], |
97 ], | 97 ], |
98 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 98 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
99 'msvs_disabled_warnings': [4267, ], | 99 'msvs_disabled_warnings': [4267, ], |
100 }, | 100 }, |
101 ], | 101 ], |
102 'conditions': [ | 102 'conditions': [ |
103 ['use_icu_alternatives_on_android==1 and OS=="android"', { | 103 ['OS=="android"', { |
104 'targets': [ | 104 'targets': [ |
105 { | 105 { |
106 'target_name': 'url_jni_headers', | 106 'target_name': 'url_jni_headers', |
107 'type': 'none', | 107 'type': 'none', |
108 'sources': [ | 108 'sources': [ |
109 'android/java/src/org/chromium/url/IDNStringUtil.java' | 109 'android/java/src/org/chromium/url/IDNStringUtil.java' |
110 ], | 110 ], |
111 'variables': { | 111 'variables': { |
112 'jni_gen_package': 'url', | 112 'jni_gen_package': 'url', |
113 }, | 113 }, |
114 'includes': [ '../build/jni_generator.gypi' ], | 114 'includes': [ '../build/jni_generator.gypi' ], |
115 }, | 115 }, |
116 { | 116 { |
117 'target_name': 'url_java', | 117 'target_name': 'url_java', |
118 'type': 'none', | 118 'type': 'none', |
119 'variables': { | 119 'variables': { |
120 'java_in_dir': '../url/android/java', | 120 'java_in_dir': '../url/android/java', |
121 }, | 121 }, |
122 'dependencies': [ | 122 'dependencies': [ |
123 '../base/base.gyp:base', | 123 '../base/base.gyp:base', |
124 ], | 124 ], |
125 'includes': [ '../build/java.gypi' ], | 125 'includes': [ '../build/java.gypi' ], |
126 }, | 126 }, |
127 { | |
128 # Same as url_lib but using ICU alternatives on Android. | |
brettw
2015/02/24 18:30:54
This doesn't make any sense because url_lib is def
mef
2015/02/24 18:39:15
Sorry, yes. Done.
| |
129 'target_name': 'url_lib_use_icu_alternatives_on_android', | |
130 'type': '<(component)', | |
131 'dependencies': [ | |
132 '../base/base.gyp:base', | |
133 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations', | |
134 'url_java', | |
135 'url_jni_headers', | |
136 ], | |
137 'sources': [ | |
138 '<@(gurl_sources)', | |
139 'url_canon_icu_alternatives_android.cc', | |
140 'url_canon_icu_alternatives_android.h', | |
141 ], | |
142 'sources!': [ | |
143 'url_canon_icu.cc', | |
144 'url_canon_icu.h', | |
145 ], | |
146 'direct_dependent_settings': { | |
147 'include_dirs': [ | |
148 '..', | |
149 ], | |
150 }, | |
151 'defines': [ | |
152 'URL_IMPLEMENTATION', | |
153 'USE_ICU_ALTERNATIVES_ON_ANDROID=1', | |
154 ], | |
155 }, | |
127 ], | 156 ], |
128 }], | 157 }], |
129 ], | 158 ], |
130 } | 159 } |
OLD | NEW |