Add an about:flag to control video casting. The feature will be off by default.
[chromium-blink-merge.git] / chrome / chrome_android.gypi
blobf7b2b4a513c5ee571404200a7ca6f7b2bc412046
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': 'chromium_testshell',
8   },
9   'includes': [
10     'chrome_android_paks.gypi', # Included for the list of pak resources.
11   ],
12   'targets': [
13     {
14       'target_name': 'libchromiumtestshell',
15       'type': 'shared_library',
16       'dependencies': [
17         '../base/base.gyp:base',
18         'chrome_android_core',
19         'chrome_android_auxiliary',
20         'chromium_testshell_jni_headers',
21         'chrome.gyp:browser_ui',
22         '../content/content.gyp:content_app_browser',
23         # TODO(miguelg): This should be indirect, see http://crbug.com/280695 .
24         '../skia/skia.gyp:skia',
25       ],
26       'sources': [
27         # This file must always be included in the shared_library step to ensure
28         # JNI_OnLoad is exported.
29         'app/android/chrome_jni_onload.cc',
30         'android/testshell/chrome_main_delegate_testshell_android.cc',
31         'android/testshell/chrome_main_delegate_testshell_android.h',
32         "android/testshell/testshell_google_location_settings_helper.cc",
33         "android/testshell/testshell_google_location_settings_helper.h",
34         'android/testshell/testshell_tab.cc',
35         'android/testshell/testshell_tab.h',
36         'android/testshell/testshell_stubs.cc',
37       ],
38       'include_dirs': [
39         '<(SHARED_INTERMEDIATE_DIR)/chromium_testshell',
40         '../skia/config',
41       ],
42       'conditions': [
43         [ 'order_profiling!=0', {
44           'conditions': [
45             [ 'OS=="android"', {
46               'dependencies': [ '../tools/cygprofile/cygprofile.gyp:cygprofile', ],
47             }],
48           ],
49         }],
50         [ 'android_use_tcmalloc==1', {
51           'dependencies': [
52             '../base/allocator/allocator.gyp:allocator', ],
53         }],
54       ],
55     },
56     {
57       'target_name': 'chromium_testshell',
58       'type': 'none',
59       'dependencies': [
60         '../media/media.gyp:media_java',
61         'chrome.gyp:chrome_java',
62         'chromium_testshell_paks',
63         'libchromiumtestshell',
64       ],
65       'variables': {
66         'apk_name': 'ChromiumTestShell',
67         'manifest_package_name': 'org.chromium.chrome.testshell',
68         'java_in_dir': 'android/testshell/java',
69         'resource_dir': 'android/testshell/res',
70         'asset_location': '<(ant_build_out)/../assets/<(package_name)',
71         'native_lib_target': 'libchromiumtestshell',
72         'additional_input_paths': [
73           '<@(chrome_android_pak_output_resources)',
74         ],
75       },
76       'includes': [ '../build/java_apk.gypi', ],
77     },
78     {
79       'target_name': 'chromium_testshell_jni_headers',
80       'type': 'none',
81       'sources': [
82         'android/testshell/java/src/org/chromium/chrome/testshell/TestShellTab.java',
83       ],
84       'variables': {
85         'jni_gen_package': 'chromium_testshell',
86       },
87       'includes': [ '../build/jni_generator.gypi' ],
88     },
89     {
90       # chromium_testshell creates a .jar as a side effect. Any java targets
91       # that need that .jar in their classpath should depend on this target,
92       # chromium_testshell_java. Dependents of chromium_testshell receive its
93       # jar path in the variable 'apk_output_jar_path'.
94       'target_name': 'chromium_testshell_java',
95       'type': 'none',
96       'dependencies': [
97         'chromium_testshell',
98       ],
99       'includes': [ '../build/apk_fake_jar.gypi' ],
100     },
101     {
102       'target_name': 'chrome_android_core',
103       'type': 'static_library',
104       'dependencies': [
105         'chrome.gyp:browser',
106         'chrome.gyp:browser_ui',
107         'chrome.gyp:plugin',
108         'chrome.gyp:renderer',
109         'chrome.gyp:utility',
110         '../content/content.gyp:content',
111         '../content/content.gyp:content_app_browser',
112       ],
113       'include_dirs': [
114         '..',
115         '<(SHARED_INTERMEDIATE_DIR)/android',
116         '<(SHARED_INTERMEDIATE_DIR)/chrome',
117         '<(android_ndk_include)',
118       ],
119       'sources': [
120         'app/android/chrome_android_initializer.cc',
121         'app/android/chrome_android_initializer.h',
122         'app/android/chrome_data_reduction_proxy_android.cc',
123         'app/android/chrome_data_reduction_proxy_android.h',
124         'app/android/chrome_main_delegate_android.cc',
125         'app/android/chrome_main_delegate_android.h',
126         'app/chrome_main_delegate.cc',
127         'app/chrome_main_delegate.h',
128       ],
129       'link_settings': {
130         'libraries': [
131           '-landroid',
132           '-ljnigraphics',
133         ],
134       },
135     },
136     {
137        'target_name': 'chrome_android_auxiliary',
138        'type': 'static_library',
139        'include_dirs': [
140          '<(SHARED_INTERMEDIATE_DIR)/chromium_testshell',
141        ],
142        'sources': [
143          'android/testshell/chrome_data_reduction_proxy_testshell_android.cc',
144        ],
145        'dependencies': [
146          '../base/base.gyp:base',
147        ],
148     },
149     {
150       'target_name': 'chromium_testshell_paks',
151       'type': 'none',
152       'dependencies': [
153         '<(DEPTH)/chrome/chrome_resources.gyp:packed_resources',
154         '<(DEPTH)/chrome/chrome_resources.gyp:packed_extra_resources',
155       ],
156       'copies': [
157         {
158           'destination': '<(chrome_android_pak_output_folder)',
159           'files': [
160             '<@(chrome_android_pak_input_resources)',
161           ],
162         }
163       ],
164     },
165   ],