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