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

Side by Side Diff: components/url_formatter/BUILD.gn

Issue 2110543004: Move JNI bindings for url_formatter from chrome to //components/url_formatter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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
« no previous file with comments | « chrome/chrome.gyp ('k') | components/url_formatter/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 if (is_android) {
6 import("//build/config/android/rules.gni")
7 }
8
5 static_library("url_formatter") { 9 static_library("url_formatter") {
6 sources = [ 10 sources = [
11 "android/component_jni_registrar.cc",
12 "android/component_jni_registrar.h",
7 "elide_url.cc", 13 "elide_url.cc",
8 "elide_url.h", 14 "elide_url.h",
9 "url_fixer.cc", 15 "url_fixer.cc",
10 "url_fixer.h", 16 "url_fixer.h",
11 "url_formatter.cc", 17 "url_formatter.cc",
12 "url_formatter.h", 18 "url_formatter.h",
19 "url_formatter_android.cc",
20 "url_formatter_android.h",
13 ] 21 ]
14 22
15 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 23 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
16 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 24 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
17 25
18 deps = [ 26 deps = [
19 "//base", 27 "//base",
20 "//net", 28 "//net",
21 "//third_party/icu", 29 "//third_party/icu",
22 "//url", 30 "//url",
23 ] 31 ]
24 32
25 if (!is_android) { 33 if (is_android) {
34 deps += [ "android:jni_headers" ]
35 } else {
26 deps += [ "//ui/gfx" ] 36 deps += [ "//ui/gfx" ]
27 } 37 }
28 } 38 }
29 39
30 source_set("unit_tests") { 40 source_set("unit_tests") {
31 testonly = true 41 testonly = true
32 sources = [ 42 sources = [
33 "elide_url_unittest.cc", 43 "elide_url_unittest.cc",
34 "url_fixer_unittest.cc", 44 "url_fixer_unittest.cc",
35 "url_formatter_unittest.cc", 45 "url_formatter_unittest.cc",
36 ] 46 ]
37 47
38 deps = [ 48 deps = [
39 ":url_formatter", 49 ":url_formatter",
40 "//base", 50 "//base",
41 "//net", 51 "//net",
42 "//testing/gtest", 52 "//testing/gtest",
43 "//ui/gfx", 53 "//ui/gfx",
44 "//url", 54 "//url",
45 ] 55 ]
46 56
47 if (is_android) { 57 if (is_android) {
48 deps -= [ "//ui/gfx" ] 58 deps -= [ "//ui/gfx" ]
49 } 59 }
50 } 60 }
OLDNEW
« no previous file with comments | « chrome/chrome.gyp ('k') | components/url_formatter/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698