OLD | NEW |
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 { | 5 { |
6 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 # GN version: //components/url_formatter | 8 # GN version: //components/url_formatter |
9 'target_name': 'url_formatter', | 9 'target_name': 'url_formatter', |
10 'type': 'static_library', | 10 'type': 'static_library', |
11 'dependencies': [ | 11 'dependencies': [ |
12 '../../base/base.gyp:base', | 12 '../../base/base.gyp:base', |
13 '../../net/net.gyp:net', | 13 '../../net/net.gyp:net', |
14 '../../third_party/icu/icu.gyp:icui18n', | 14 '../../third_party/icu/icu.gyp:icui18n', |
15 '../../third_party/icu/icu.gyp:icuuc', | 15 '../../third_party/icu/icu.gyp:icuuc', |
16 '../../url/url.gyp:url_lib', | 16 '../../url/url.gyp:url_lib', |
17 ], | 17 ], |
18 'sources': [ | 18 'sources': [ |
19 # Note: sources list duplicated in GN build. | 19 # Note: sources list duplicated in GN build. |
| 20 'android/component_jni_registrar.cc', |
| 21 'android/component_jni_registrar.h', |
20 'elide_url.cc', | 22 'elide_url.cc', |
21 'elide_url.h', | 23 'elide_url.h', |
22 'url_fixer.cc', | 24 'url_fixer.cc', |
23 'url_fixer.h', | 25 'url_fixer.h', |
24 'url_formatter.cc', | 26 'url_formatter.cc', |
25 'url_formatter.h', | 27 'url_formatter.h', |
| 28 'url_formatter_android.cc', |
| 29 'url_formatter_android.h', |
26 ], | 30 ], |
27 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 31 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
28 'msvs_disabled_warnings': [4267, ], | 32 'msvs_disabled_warnings': [4267, ], |
29 | 33 |
30 'conditions': [ | 34 'conditions': [ |
31 ['OS != "android"', { | 35 ['OS != "android"', { |
32 'dependencies': [ | 36 'dependencies': [ |
33 '../../ui/gfx/gfx.gyp:gfx', | 37 '../../ui/gfx/gfx.gyp:gfx', |
| 38 ], |
| 39 'sources!': [ |
| 40 'android/component_jni_registrar.cc', |
| 41 'android/component_jni_registrar.h', |
| 42 'url_formatter_android.cc', |
| 43 'url_formatter_android.h', |
| 44 ] |
| 45 }], |
| 46 ['OS == "android"', { |
| 47 'dependencies': [ |
| 48 'url_formatter_jni_headers', |
34 ] | 49 ] |
35 }], | 50 }], |
36 ], | 51 ], |
37 }, | 52 }, |
38 ], | 53 ], |
| 54 'conditions': [ |
| 55 ['OS == "android"', { |
| 56 'targets' : [ |
| 57 { |
| 58 # GN: //components/url_formatter/android:jni_headers |
| 59 'target_name' : 'url_formatter_jni_headers', |
| 60 'type': 'none', |
| 61 'sources': [ |
| 62 'android/java/src/org/chromium/components/url_formatter/UrlFormatter
.java', |
| 63 ], |
| 64 'variables': { |
| 65 'jni_gen_package': 'url_formatter', |
| 66 }, |
| 67 'includes': [ '../../build/jni_generator.gypi' ], |
| 68 }, |
| 69 { |
| 70 # GN: //components/url_formatter/android:url_formatter_java |
| 71 'target_name': 'url_formatter_java', |
| 72 'type': 'none', |
| 73 'dependencies': [ |
| 74 '../../base/base.gyp:base_java', |
| 75 ], |
| 76 'variables': { |
| 77 'java_in_dir': 'android/java', |
| 78 }, |
| 79 'includes': [ '../../build/java.gypi' ], |
| 80 }, |
| 81 ], |
| 82 }], |
| 83 ], |
39 } | 84 } |
OLD | NEW |