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