OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 { | 4 { |
5 'variables': { | 5 'variables': { |
6 'chromium_code': 1, | 6 'chromium_code': 1, |
7 }, | 7 }, |
8 'targets': [ | 8 'targets': [ |
9 { | 9 { |
10 'target_name': 'libwebview', | 10 'target_name': 'libwebview', |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 '../chrome/chrome_resources.gyp:packed_resources', | 119 '../chrome/chrome_resources.gyp:packed_resources', |
120 '../content/content.gyp:content_java', | 120 '../content/content.gyp:content_java', |
121 '../media/media.gyp:media_java', | 121 '../media/media.gyp:media_java', |
122 '../net/net.gyp:net_java', | 122 '../net/net.gyp:net_java', |
123 '../ui/ui.gyp:ui_java', | 123 '../ui/ui.gyp:ui_java', |
124 'libwebview', | 124 'libwebview', |
125 ], | 125 ], |
126 'variables': { | 126 'variables': { |
127 'package_name': 'android_webview', | 127 'package_name': 'android_webview', |
128 'apk_name': 'AndroidWebView', | 128 'apk_name': 'AndroidWebView', |
| 129 'manifest_package_name': 'org.chromium.android_webview', |
129 'java_in_dir': '../android_webview/java', | 130 'java_in_dir': '../android_webview/java', |
130 'resource_dir': '../res', | 131 'resource_dir': '../res', |
131 'native_libs_paths': ['<(PRODUCT_DIR)/android_webview/libs/<(android_app
_abi)/libwebview.so'], | 132 'native_libs_paths': ['<(SHARED_LIB_DIR)/libwebview.so'], |
132 'input_pak_files': [ | 133 'input_pak_files': [ |
133 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome.pak', | 134 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome.pak', |
134 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_100_percent.pak', | 135 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_100_percent.pak', |
135 '<(SHARED_INTERMEDIATE_DIR)/repack/resources.pak', | 136 '<(SHARED_INTERMEDIATE_DIR)/repack/resources.pak', |
136 '<(SHARED_INTERMEDIATE_DIR)/repack/en-US.pak', | 137 '<(SHARED_INTERMEDIATE_DIR)/repack/en-US.pak', |
137 ], | 138 ], |
138 'copied_pak_files': [ | 139 'copied_pak_files': [ |
139 '<(PRODUCT_DIR)/android_webview/assets/chrome.pak', | 140 '<(PRODUCT_DIR)/android_webview/assets/chrome.pak', |
140 '<(PRODUCT_DIR)/android_webview/assets/chrome_100_percent.pak', | 141 '<(PRODUCT_DIR)/android_webview/assets/chrome_100_percent.pak', |
141 '<(PRODUCT_DIR)/android_webview/assets/resources.pak', | 142 '<(PRODUCT_DIR)/android_webview/assets/resources.pak', |
142 '<(PRODUCT_DIR)/android_webview/assets/en-US.pak', | 143 '<(PRODUCT_DIR)/android_webview/assets/en-US.pak', |
143 ], | 144 ], |
144 'additional_input_paths': [ '<@(copied_pak_files)' ], | 145 'additional_input_paths': [ '<@(copied_pak_files)' ], |
145 }, | 146 }, |
146 'actions': [ | |
147 { | |
148 'action_name': 'copy_and_strip_so', | |
149 'inputs': ['<(SHARED_LIB_DIR)/libwebview.so'], | |
150 'outputs': ['<(PRODUCT_DIR)/android_webview/libs/<(android_app_abi)/li
bwebview.so'], | |
151 'action': [ | |
152 '<(android_strip)', | |
153 '--strip-unneeded', # All symbols not needed for relocation. | |
154 '<@(_inputs)', | |
155 '-o', | |
156 '<@(_outputs)', | |
157 ], | |
158 }, | |
159 ], | |
160 'copies': [ | 147 'copies': [ |
161 { | 148 { |
162 'destination': '<(PRODUCT_DIR)/android_webview/assets', | 149 'destination': '<(PRODUCT_DIR)/android_webview/assets', |
163 'files': [ '<@(input_pak_files)' ] | 150 'files': [ '<@(input_pak_files)' ] |
164 }, | 151 }, |
165 ], | 152 ], |
166 'includes': [ '../build/java_apk.gypi' ], | 153 'includes': [ '../build/java_apk.gypi' ], |
167 }, | 154 }, |
168 { | 155 { |
169 'target_name': 'android_webview_test_apk', | 156 'target_name': 'android_webview_test_apk', |
(...skipping 22 matching lines...) Expand all Loading... |
192 'copies': [ | 179 'copies': [ |
193 { | 180 { |
194 'destination': '<(PRODUCT_DIR)/android_webview_test/assets', | 181 'destination': '<(PRODUCT_DIR)/android_webview_test/assets', |
195 'files': [ '<!@(find <(java_in_dir)/assets -type f -name "*")' ] | 182 'files': [ '<!@(find <(java_in_dir)/assets -type f -name "*")' ] |
196 }, | 183 }, |
197 ], | 184 ], |
198 'includes': [ '../build/java_apk.gypi' ], | 185 'includes': [ '../build/java_apk.gypi' ], |
199 }, | 186 }, |
200 ], | 187 ], |
201 } | 188 } |
OLD | NEW |