OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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/ntp_tiles | 8 # GN version: //components/ntp_tiles |
9 'target_name': 'ntp_tiles', | 9 'target_name': 'ntp_tiles', |
10 'type': 'static_library', | 10 'type': 'static_library', |
(...skipping 19 matching lines...) Expand all Loading... |
30 'ntp_tiles/pref_names.cc', | 30 'ntp_tiles/pref_names.cc', |
31 'ntp_tiles/switches.h', | 31 'ntp_tiles/switches.h', |
32 'ntp_tiles/switches.cc', | 32 'ntp_tiles/switches.cc', |
33 ], | 33 ], |
34 'conditions': [ | 34 'conditions': [ |
35 ['OS != "ios"', { | 35 ['OS != "ios"', { |
36 'dependencies': [ | 36 'dependencies': [ |
37 'safe_json', | 37 'safe_json', |
38 ], | 38 ], |
39 }], | 39 }], |
| 40 ['OS == "android"', { |
| 41 'dependencies': [ |
| 42 'ntp_tiles_jni_headers', |
| 43 ], |
| 44 }], |
40 ], | 45 ], |
41 }, | 46 }, |
42 ], | 47 ], |
43 | 48 |
44 'conditions': [ | 49 'conditions': [ |
45 ['OS == "android"', { | 50 ['OS == "android"', { |
46 'targets': [ | 51 'targets': [ |
47 { | 52 { |
48 # GN: //components/ntp_tiles:ntp_tiles_enums_java | 53 # GN: //components/ntp_tiles:ntp_tiles_enums_java |
49 'target_name': 'ntp_tiles_enums_java', | 54 'target_name': 'ntp_tiles_enums_java', |
50 'type': 'none', | 55 'type': 'none', |
51 'variables': { | 56 'variables': { |
52 'source_file': 'ntp_tiles/most_visited_sites.h', | 57 'source_file': 'ntp_tiles/most_visited_sites.h', |
53 }, | 58 }, |
54 'includes': [ | 59 'includes': [ |
55 '../build/android/java_cpp_enum.gypi' | 60 '../build/android/java_cpp_enum.gypi' |
56 ], | 61 ], |
57 }, | 62 }, |
| 63 { |
| 64 # GN version: //components/ntp_tiles/android:ntp_tiles_java |
| 65 'target_name': 'ntp_tiles_java', |
| 66 'type': 'none', |
| 67 'dependencies': [ |
| 68 '../base/base.gyp:base', |
| 69 ], |
| 70 'variables': { |
| 71 'java_in_dir': 'ntp_tiles/android/java', |
| 72 }, |
| 73 'includes': [ '../build/java.gypi' ], |
| 74 }, |
| 75 { |
| 76 # GN version: //components/ntp_tiles:jni |
| 77 'target_name': 'ntp_tiles_jni_headers', |
| 78 'type': 'none', |
| 79 'sources': [ |
| 80 'ntp_tiles/android/java/src/org/chromium/components/ntptiles/MostVis
itedSites.java', |
| 81 ], |
| 82 'variables': { |
| 83 'jni_gen_package': 'ntp_tiles', |
| 84 }, |
| 85 'includes': [ '../build/jni_generator.gypi' ], |
| 86 }, |
58 ], | 87 ], |
59 }], | 88 }], |
60 ], | 89 ], |
61 } | 90 } |
OLD | NEW |