OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 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 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 | 6 |
7 if (is_android) { | 7 if (is_android) { |
8 import("//build/config/android/rules.gni") | 8 import("//build/config/android/rules.gni") |
9 } | 9 } |
10 | 10 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 "//third_party/libxml", | 120 "//third_party/libxml", |
121 "//third_party/icu:icuuc", | 121 "//third_party/icu:icuuc", |
122 ] | 122 ] |
123 | 123 |
124 if (!is_posix) { | 124 if (!is_posix) { |
125 sources -= [ | 125 sources -= [ |
126 "scoped_locale.cc", | 126 "scoped_locale.cc", |
127 "scoped_locale.h", | 127 "scoped_locale.h", |
128 ] | 128 ] |
129 } | 129 } |
| 130 |
| 131 # Allow more direct string conversions on platforms with native utf8 |
| 132 # strings |
| 133 if (is_mac || is_ios || is_chromeos) { |
| 134 defines += [ "SYSTEM_NATIVE_UTF8" ] |
| 135 } |
| 136 |
130 if (is_ios) { | 137 if (is_ios) { |
131 # iOS uses its own unit test launcher. | 138 # iOS uses its own unit test launcher. |
132 sources -= [ "launcher/unit_test_launcher.cc" ] | 139 sources -= [ "launcher/unit_test_launcher.cc" ] |
133 | 140 |
134 # Pull in specific Mac files for iOS (which have been filtered out | 141 # Pull in specific Mac files for iOS (which have been filtered out |
135 # by file name rules). | 142 # by file name rules). |
136 set_sources_assignment_filter([]) | 143 set_sources_assignment_filter([]) |
137 sources += [ "test_file_util_mac.cc" ] | 144 sources += [ "test_file_util_mac.cc" ] |
138 } | 145 } |
139 | 146 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 } | 178 } |
172 | 179 |
173 if (is_android) { | 180 if (is_android) { |
174 generate_jni("base_unittests_jni_headers") { | 181 generate_jni("base_unittests_jni_headers") { |
175 sources = [ | 182 sources = [ |
176 "android/java/src/org/chromium/base/ContentUriTestUtils.java", | 183 "android/java/src/org/chromium/base/ContentUriTestUtils.java", |
177 ] | 184 ] |
178 jni_package = "base" | 185 jni_package = "base" |
179 } | 186 } |
180 } | 187 } |
OLD | NEW |