Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / chrome / chrome_android.gypi
blob00a3af2ad8ab8e9f190fb23c94bcec79f7b92985
1 # Copyright (c) 2012 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   'variables': {
6     'chromium_code': 1,
7     'package_name': 'chrome_shell_apk',
8   },
9   'includes': [
10     'chrome_android_paks.gypi', # Included for the list of pak resources.
11   ],
12   'targets': [
13     {
14       'target_name': 'libchromeshell',
15       'type': 'shared_library',
16       'dependencies': [
17         '../base/base.gyp:base',
18         'chrome_android_core',
19         'chrome.gyp:browser_ui',
20         '../content/content.gyp:content_app_browser',
21       ],
22       'sources': [
23         # This file must always be included in the shared_library step to ensure
24         # JNI_OnLoad is exported.
25         'app/android/chrome_jni_onload.cc',
26         'android/shell/chrome_main_delegate_chrome_shell_android.cc',
27         'android/shell/chrome_main_delegate_chrome_shell_android.h',
28         "android/shell/chrome_shell_google_location_settings_helper.cc",
29         "android/shell/chrome_shell_google_location_settings_helper.h",
30       ],
31       'include_dirs': [
32         '../skia/config',
33       ],
34       'conditions': [
35         [ 'order_profiling!=0', {
36           'conditions': [
37             [ 'OS=="android"', {
38               'dependencies': [ '../tools/cygprofile/cygprofile.gyp:cygprofile', ],
39             }],
40           ],
41         }],
42         # TODO(dmikurube): Kill android_use_tcmalloc. http://crbug.com/345554
43         [ '(use_allocator!="none" and use_allocator!="see_use_tcmalloc") or (use_allocator=="see_use_tcmalloc" and android_use_tcmalloc==1)', {
44           'dependencies': [
45             '../base/allocator/allocator.gyp:allocator', ],
46         }],
47         ['OS=="android"', {
48           'ldflags': [
49             # Some android targets still depend on --gc-sections to link.
50             # TODO: remove --gc-sections for Debug builds (crbug.com/159847).
51             '-Wl,--gc-sections',
52           ],
53         }],
54       ],
55     },
56     {
57       'target_name': 'chrome_shell_apk',
58       'type': 'none',
59       'dependencies': [
60         'chrome_java',
61         'chrome_shell_paks',
62         'libchromeshell',
63         '../media/media.gyp:media_java',
64       ],
65       'variables': {
66         'apk_name': 'ChromeShell',
67         'manifest_package_name': 'org.chromium.chrome.shell',
68         'java_in_dir': 'android/shell/java',
69         'resource_dir': 'android/shell/res',
70         'asset_location': '<(PRODUCT_DIR)/../assets/<(package_name)',
71         'native_lib_target': 'libchromeshell',
72         'native_lib_version_name': '<(version_full)',
73         'additional_input_paths': [
74           '<@(chrome_android_pak_output_resources)',
75         ],
76       },
77       'includes': [ '../build/java_apk.gypi', ],
78     },
79     {
80       # chrome_shell_apk creates a .jar as a side effect. Any java targets
81       # that need that .jar in their classpath should depend on this target,
82       # chrome_shell_apk_java. Dependents of chrome_shell_apk receive its
83       # jar path in the variable 'apk_output_jar_path'.
84       # This target should only be used by targets which instrument
85       # chrome_shell_apk.
86       'target_name': 'chrome_shell_apk_java',
87       'type': 'none',
88       'dependencies': [
89         'chrome_shell_apk',
90       ],
91       'includes': [ '../build/apk_fake_jar.gypi' ],
92     },
93     {
94       'target_name': 'chrome_android_core',
95       'type': 'static_library',
96       'dependencies': [
97         'chrome.gyp:browser',
98         'chrome.gyp:browser_ui',
99         'chrome.gyp:plugin',
100         'chrome.gyp:renderer',
101         'chrome.gyp:utility',
102         '../content/content.gyp:content',
103         '../content/content.gyp:content_app_browser',
104       ],
105       'include_dirs': [
106         '..',
107         '<(android_ndk_include)',
108       ],
109       'sources': [
110         'app/android/chrome_android_initializer.cc',
111         'app/android/chrome_android_initializer.h',
112         'app/android/chrome_main_delegate_android.cc',
113         'app/android/chrome_main_delegate_android.h',
114         'app/chrome_main_delegate.cc',
115         'app/chrome_main_delegate.h',
116       ],
117       'link_settings': {
118         'libraries': [
119           '-landroid',
120           '-ljnigraphics',
121         ],
122       },
123     },
124     {
125       'target_name': 'chrome_shell_paks',
126       'type': 'none',
127       'dependencies': [
128         '<(DEPTH)/chrome/chrome_resources.gyp:packed_resources',
129         '<(DEPTH)/chrome/chrome_resources.gyp:packed_extra_resources',
130       ],
131       'copies': [
132         {
133           'destination': '<(chrome_android_pak_output_folder)',
134           'files': [
135             '<@(chrome_android_pak_input_resources)',
136           ],
137         }
138       ],
139     },
140   ],