OLD | NEW |
| (Empty) |
1 # Copyright 2014 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 # This GYPI allows independent customization of the chrome shell in a manner | |
6 # similar to content shell (in content_shell.gypi). Notably, this file does | |
7 # NOT contain chrome_android_core, which is independent of the chrome shell | |
8 # and should be separately customized. | |
9 { | |
10 'variables': { | |
11 'package_name': 'chrome_shell_apk', | |
12 }, | |
13 'targets': [ | |
14 { | |
15 # GN: //chrome/android:chrome_shell_base | |
16 'target_name': 'libchromeshell_base', | |
17 'type': 'none', | |
18 'dependencies': [ | |
19 '../base/base.gyp:base', | |
20 'chrome_android_core', | |
21 'chrome.gyp:browser_ui', | |
22 '../content/content.gyp:content_app_both', | |
23 ], | |
24 'direct_dependent_settings': { | |
25 'ldflags': [ | |
26 # Some android targets still depend on --gc-sections to link. | |
27 # TODO: remove --gc-sections for Debug builds (crbug.com/159847). | |
28 '-Wl,--gc-sections', | |
29 ], | |
30 }, | |
31 'conditions': [ | |
32 [ 'order_profiling!=0', { | |
33 'dependencies': [ '../tools/cygprofile/cygprofile.gyp:cygprofile', ], | |
34 }], | |
35 [ 'use_allocator!="none"', { | |
36 'dependencies': [ | |
37 '../base/allocator/allocator.gyp:allocator', ], | |
38 }], | |
39 [ 'cld_version==2', { | |
40 'dependencies': [ | |
41 # Chrome shell should always use the statically-linked CLD data. | |
42 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld2_static', ], | |
43 }], | |
44 ], | |
45 }, | |
46 { | |
47 # GN: //chrome/android:chrome_shell | |
48 'target_name': 'libchromeshell', | |
49 'type': 'shared_library', | |
50 'sources': [ | |
51 'android/shell/chrome_shell_entry_point.cc', | |
52 'android/shell/chrome_main_delegate_chrome_shell_android.cc', | |
53 'android/shell/chrome_main_delegate_chrome_shell_android.h', | |
54 ], | |
55 'dependencies': [ | |
56 'libchromeshell_base', | |
57 ], | |
58 }, | |
59 { | |
60 # GN: //chrome/android:chrome_shell_manifest | |
61 'target_name': 'chrome_shell_manifest', | |
62 'type': 'none', | |
63 'variables': { | |
64 'jinja_inputs': ['android/shell/java/AndroidManifest.xml.jinja2'], | |
65 'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/chrome_shell_manifest/Androi
dManifest.xml', | |
66 }, | |
67 'includes': [ '../build/android/jinja_template.gypi' ], | |
68 }, | |
69 { | |
70 # GN: //chrome/android:chrome_shell_apk | |
71 'target_name': 'chrome_shell_apk', | |
72 'type': 'none', | |
73 'dependencies': [ | |
74 'chrome_java', | |
75 'chrome_android_paks_copy', | |
76 'libchromeshell', | |
77 '../media/media.gyp:media_java', | |
78 ], | |
79 'variables': { | |
80 'apk_name': 'ChromeShell', | |
81 'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/chrome_shell_manife
st/AndroidManifest.xml', | |
82 'native_lib_version_name': '<(version_full)', | |
83 'java_in_dir': 'android/shell/java', | |
84 'resource_dir': 'android/shell/res', | |
85 'asset_location': '<(PRODUCT_DIR)/assets/<(package_name)', | |
86 'native_lib_target': 'libchromeshell', | |
87 'additional_input_paths': [ | |
88 '<@(chrome_android_pak_output_resources)', | |
89 ], | |
90 'proguard_enabled': 'true', | |
91 'proguard_flags_paths': ['android/shell/java/proguard.flags'], | |
92 }, | |
93 'includes': [ '../build/java_apk.gypi', ], | |
94 }, | |
95 { | |
96 # GN: N/A | |
97 # chrome_shell_apk creates a .jar as a side effect. Any java targets | |
98 # that need that .jar in their classpath should depend on this target, | |
99 # chrome_shell_apk_java. Dependents of chrome_shell_apk receive its | |
100 # jar path in the variable 'apk_output_jar_path'. | |
101 # This target should only be used by targets which instrument | |
102 # chrome_shell_apk. | |
103 'target_name': 'chrome_shell_apk_java', | |
104 'type': 'none', | |
105 'dependencies': [ | |
106 'chrome_shell_apk', | |
107 ], | |
108 'includes': [ '../build/apk_fake_jar.gypi' ], | |
109 }, | |
110 ], | |
111 | |
112 } | |
OLD | NEW |