Add video metrics from webrtc to histograms.xml.
[chromium-blink-merge.git] / chrome / chrome_shell.gypi
blob2de7f002564d3704340fb2eee67d1366e77f3837
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.
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.
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_browser',
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==0 or 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         # This file must always be included in the shared_library step to ensure
52         # JNI_OnLoad is exported.
53         'app/android/chrome_jni_onload.cc',
54         'android/shell/chrome_main_delegate_chrome_shell_android.cc',
55         'android/shell/chrome_main_delegate_chrome_shell_android.h',
56       ],
57       'dependencies': [
58         'libchromeshell_base',
59       ],
60       'includes': [
61         # File 'protection' is based on non-trivial linker magic. TODO(pasko):
62         # remove it when crbug.com/424562 is fixed.
63         '../base/files/protect_file_posix.gypi',
64       ],
65     },
66     {
67       # GN: //chrome/android:chrome_sync_shell
68       'target_name': 'libchromesyncshell',
69       'type': 'shared_library',
70       'sources': [
71         # This file must always be included in the shared_library step to ensure
72         # JNI_OnLoad is exported.
73         'app/android/chrome_jni_onload.cc',
74         'android/sync_shell/chrome_main_delegate_chrome_sync_shell_android.cc',
75         'android/sync_shell/chrome_main_delegate_chrome_sync_shell_android.h',
76       ],
77       'dependencies': [
78         'libchromeshell_base',
79         '../sync/sync.gyp:test_support_sync_fake_server_android',
80       ],
81     },
82     {
83       # GN: //chrome/android:chrome_shell_manifest
84       'target_name': 'chrome_shell_manifest',
85       'type': 'none',
86       'variables': {
87         'jinja_inputs': ['android/shell/java/AndroidManifest.xml.jinja2'],
88         'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/chrome_shell_manifest/AndroidManifest.xml',
89       },
90       'includes': [ '../build/android/jinja_template.gypi' ],
91     },
92     {
93       # GN: //chrome/android:chrome_shell_apk
94       'target_name': 'chrome_shell_apk',
95       'type': 'none',
96       'dependencies': [
97         'chrome_java',
98         'chrome_android_paks_copy',
99         'libchromeshell',
100         '../media/media.gyp:media_java',
101       ],
102       'variables': {
103         'apk_name': 'ChromeShell',
104         'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/chrome_shell_manifest/AndroidManifest.xml',
105         'native_lib_version_name': '<(version_full)',
106         'java_in_dir': 'android/shell/java',
107         'resource_dir': 'android/shell/res',
108         'asset_location': '<(PRODUCT_DIR)/../assets/<(package_name)',
109         'native_lib_target': 'libchromeshell',
110         'additional_input_paths': [
111           '<@(chrome_android_pak_output_resources)',
112         ],
113       },
114       'includes': [ '../build/java_apk.gypi', ],
115     },
116     {
117       # GN: N/A
118       # chrome_shell_apk creates a .jar as a side effect. Any java targets
119       # that need that .jar in their classpath should depend on this target,
120       # chrome_shell_apk_java. Dependents of chrome_shell_apk receive its
121       # jar path in the variable 'apk_output_jar_path'.
122       # This target should only be used by targets which instrument
123       # chrome_shell_apk.
124       'target_name': 'chrome_shell_apk_java',
125       'type': 'none',
126       'dependencies': [
127         'chrome_shell_apk',
128       ],
129       'includes': [ '../build/apk_fake_jar.gypi' ],
130     },
131     {
132       # GN: //chrome/android:chrome_sync_shell_manifest
133       'target_name': 'chrome_sync_shell_manifest',
134       'type': 'none',
135       'variables': {
136         'jinja_inputs': ['android/sync_shell/java/AndroidManifest.xml.jinja2'],
137         'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/chrome_sync_shell_manifest/AndroidManifest.xml',
138       },
139       'includes': [ '../build/android/jinja_template.gypi' ],
140     },
141     {
142       # GN: //chrome/android:chrome_sync_shell_apk
143       'target_name': 'chrome_sync_shell_apk',
144       'type': 'none',
145       'dependencies': [
146         'chrome_java',
147         'chrome_android_paks_copy',
148         'libchromesyncshell',
149         '../media/media.gyp:media_java',
150         '../sync/sync.gyp:sync_java_test_support',
151       ],
152       'variables': {
153         'apk_name': 'ChromeSyncShell',
154         'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/chrome_sync_shell_manifest/AndroidManifest.xml',
155         'R_package': 'org.chromium.chrome.shell',
156         'native_lib_version_name': '<(version_full)',
157         'java_in_dir': 'android/shell/java',
158         'resource_dir': 'android/shell/res',
159         'asset_location': '<(PRODUCT_DIR)/../assets/<(package_name)',
160         'native_lib_target': 'libchromesyncshell',
161         'additional_input_paths': [
162           '<@(chrome_android_pak_output_resources)',
163         ],
164       },
165       'includes': [ '../build/java_apk.gypi', ],
166     },
167     {
168       # GN: N/A
169       # chrome_sync_shell_apk creates a .jar as a side effect. Any java
170       # targets that need that .jar in their classpath should depend on this
171       # target. Dependents of chrome_sync_shell_apk receive its jar path in the
172       # variable 'apk_output_jar_path'. This target should only be used by
173       # targets which instrument chrome_sync_shell_apk.
174       'target_name': 'chrome_sync_shell_apk_java',
175       'type': 'none',
176       'dependencies': [
177         'chrome_sync_shell_apk',
178       ],
179       'includes': [ '../build/apk_fake_jar.gypi' ],
180     },
181   ],