OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 { | |
6 'targets': [ | |
7 { | |
8 # GN version: //components/ntp_tiles | |
9 'target_name': 'ntp_tiles', | |
10 'type': 'static_library', | |
11 'include_dirs': [ | |
12 '..', | |
13 ], | |
14 'dependencies': [ | |
15 '../base/base.gyp:base', | |
16 'history_core_browser', | |
17 'pref_registry', | |
18 'search_engines', | |
19 'suggestions', | |
20 'variations', | |
21 ], | |
22 'sources': [ | |
23 'ntp_tiles/constants.cc', | |
24 'ntp_tiles/constants.h', | |
25 'ntp_tiles/most_visited_sites.cc', | |
26 'ntp_tiles/most_visited_sites.h', | |
27 'ntp_tiles/popular_sites.cc', | |
28 'ntp_tiles/popular_sites.h', | |
29 'ntp_tiles/pref_names.h', | |
30 'ntp_tiles/pref_names.cc', | |
31 'ntp_tiles/switches.h', | |
32 'ntp_tiles/switches.cc', | |
33 ], | |
34 'conditions': [ | |
35 ['OS == "android"', { | |
36 'dependencies': [ | |
37 'ntp_tiles_jni_headers', | |
38 ], | |
39 }], | |
40 ], | |
41 }, | |
42 ], | |
43 | |
44 'conditions': [ | |
45 ['OS == "android"', { | |
46 'targets': [ | |
47 { | |
48 # GN: //components/ntp_tiles:ntp_tiles_enums_java | |
49 'target_name': 'ntp_tiles_enums_java', | |
50 'type': 'none', | |
51 'variables': { | |
52 'source_file': 'ntp_tiles/most_visited_sites.h', | |
53 }, | |
54 'includes': [ | |
55 '../build/android/java_cpp_enum.gypi' | |
56 ], | |
57 }, | |
58 { | |
59 # GN version: //components/ntp_tiles/android:ntp_tiles_java | |
60 'target_name': 'ntp_tiles_java', | |
61 'type': 'none', | |
62 'dependencies': [ | |
63 '../base/base.gyp:base', | |
64 ], | |
65 'variables': { | |
66 'java_in_dir': 'ntp_tiles/android/java', | |
67 }, | |
68 'includes': [ '../build/java.gypi' ], | |
69 }, | |
70 { | |
71 # GN version: //components/ntp_tiles:jni | |
72 'target_name': 'ntp_tiles_jni_headers', | |
73 'type': 'none', | |
74 'sources': [ | |
75 'ntp_tiles/android/java/src/org/chromium/components/ntptiles/MostVis
itedSites.java', | |
76 ], | |
77 'variables': { | |
78 'jni_gen_package': 'ntp_tiles', | |
79 }, | |
80 'includes': [ '../build/jni_generator.gypi' ], | |
81 }, | |
82 ], | |
83 }], | |
84 ], | |
85 } | |
OLD | NEW |