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