Commit aefb2793 authored by hjd's avatar hjd Committed by Commit bot

Make the WebView apk build in the Chrome tree

We checkout the Android WebView glue layer (frameworks/webview)
into a new third_party directory (android_webview_glue)
which is checked out via gclient.

This is built against a jar containing frameworks/base
(in android_platform/webview/frameworks.jar).

We have to work around a few other issues:
    - Change build/java_apk.gypi to bypass the hardcoded
      'src' path.
    - Move libwebviewchromium to an include so we can make both
      the prefixed and un-prefixed version in the same build.

BUG=391488
R=mkosiba@chromium.org

Review URL: https://codereview.chromium.org/477903003

Cr-Commit-Position: refs/heads/master@{#293921}
parent b73e0783
...@@ -218,6 +218,7 @@ v8.log ...@@ -218,6 +218,7 @@ v8.log
/third_party/android_protobuf/src /third_party/android_protobuf/src
/third_party/android_tools/ /third_party/android_tools/
/third_party/android_tools_internal/ /third_party/android_tools_internal/
/third_party/android_webview_glue/src
/third_party/angle /third_party/angle
/third_party/angle_dx11 /third_party/angle_dx11
/third_party/aosp /third_party/aosp
......
...@@ -468,6 +468,11 @@ deps_os = { ...@@ -468,6 +468,11 @@ deps_os = {
'src/third_party/android_protobuf/src': 'src/third_party/android_protobuf/src':
Var('chromium_git') + '/external/android_protobuf.git' + '@' + '94f522f907e3f34f70d9e7816b947e62fddbb267', Var('chromium_git') + '/external/android_protobuf.git' + '@' + '94f522f907e3f34f70d9e7816b947e62fddbb267',
# Whenever you roll this please also change frameworks/webview in
# src/android_webview/buildbot/aosp_manifest.xml to point to the same revision.
'src/third_party/android_webview_glue/src':
Var('chromium_git') + '/external/android_webview_glue.git' + '@' + 'e73e669ac73b2ddc042e380cd784ba8bd39ebb95',
'src/third_party/android_tools': 'src/third_party/android_tools':
Var('chromium_git') + '/android_tools.git' + '@' + '7fc902d157a9aed7a2b68adc9c69181b3a43cd58', Var('chromium_git') + '/android_tools.git' + '@' + '7fc902d157a9aed7a2b68adc9c69181b3a43cd58',
......
...@@ -57,7 +57,7 @@ $(R_file_stamp): $(android_webview_resources_stamp) ...@@ -57,7 +57,7 @@ $(R_file_stamp): $(android_webview_resources_stamp)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := webviewchromium_pak LOCAL_MODULE := webviewchromium_pak
LOCAL_MODULE_STEM := webviewchromium LOCAL_MODULE_STEM := webviewchromium
LOCAL_BUILT_MODULE_STEM := android_webview_apk/assets/webviewchromium.pak LOCAL_BUILT_MODULE_STEM := android_webview_assets/webviewchromium.pak
include $(LOCAL_PATH)/webview_pak.mk include $(LOCAL_PATH)/webview_pak.mk
include $(CLEAR_VARS) include $(CLEAR_VARS)
......
...@@ -6,69 +6,6 @@ ...@@ -6,69 +6,6 @@
'chromium_code': 1, 'chromium_code': 1,
}, },
'targets': [ 'targets': [
{
'target_name': 'libwebviewchromium',
'type': 'shared_library',
'android_unmangled_name': 1,
'dependencies': [
'android_webview_common',
],
'conditions': [
# Avoid clashes between the versions of this library built with
# android_webview_build==1 by using a different name prefix.
[ 'android_webview_build==0', {
'product_prefix': 'libstandalone',
}],
[ 'android_webview_build==1', {
# When building inside the android tree we also need to depend on all
# the java sources generated from templates which will be needed by
# android_webview_java in android_webview/java_library_common.mk.
'dependencies': [
'../base/base.gyp:base_java_application_state',
'../base/base.gyp:base_java_memory_pressure_level_list',
'../content/content.gyp:content_gamepad_mapping',
'../content/content.gyp:gesture_event_type_java',
'../content/content.gyp:page_transition_types_java',
'../content/content.gyp:popup_item_type_java',
'../content/content.gyp:result_codes_java',
'../content/content.gyp:screen_orientation_values_java',
'../content/content.gyp:selection_event_type_java',
'../content/content.gyp:speech_recognition_error_java',
'../media/media.gyp:media_android_imageformat_list',
'../net/net.gyp:cert_verify_status_android_java',
'../net/net.gyp:certificate_mime_types_java',
'../net/net.gyp:net_errors_java',
'../net/net.gyp:private_key_types_java',
'../ui/android/ui_android.gyp:bitmap_format_java',
'../ui/android/ui_android.gyp:window_open_disposition_java',
],
}],
[ 'android_webview_build==1 and use_system_skia==0', {
# When not using the system skia there are linker warnings about
# overriden hidden symbols which there's no easy way to eliminate;
# disable them. http://crbug.com/157326
'ldflags': [
'-Wl,--no-fatal-warnings',
],
'ldflags!': [
'-Wl,--fatal-warnings',
],
}],
['android_webview_build==1 and use_system_stlport==1', {
# ICU requires RTTI, which is not present in the system's stlport, so
# we have to include gabi++. We can't include it in icu.gyp because
# link_settings cannot be used inside target_conditions. This will be
# removed once we stop using the system stlport.
# http://crbug.com/409851
'libraries': [
'-lgabi++',
],
}],
],
'sources': [
'lib/main/webview_entry_point.cc',
],
},
{ {
'target_name': 'android_webview_pak', 'target_name': 'android_webview_pak',
'type': 'none', 'type': 'none',
...@@ -89,7 +26,7 @@ ...@@ -89,7 +26,7 @@
'<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak', '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
'<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak', '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
], ],
'pak_output': '<(PRODUCT_DIR)/android_webview_apk/assets/webviewchromium.pak', 'pak_output': '<(PRODUCT_DIR)/android_webview_assets/webviewchromium.pak',
}, },
'includes': [ '../build/repack_action.gypi' ], 'includes': [ '../build/repack_action.gypi' ],
}, },
...@@ -97,7 +34,7 @@ ...@@ -97,7 +34,7 @@
'action_name': 'add_en_US_pak_locale', 'action_name': 'add_en_US_pak_locale',
'variables': { 'variables': {
'pak_inputs': ['<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en-US.pak'], 'pak_inputs': ['<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en-US.pak'],
'pak_output': '<(PRODUCT_DIR)/android_webview_apk/assets/en-US.pak', 'pak_output': '<(PRODUCT_DIR)/android_webview_assets/en-US.pak',
}, },
'includes': [ '../build/repack_action.gypi' ], 'includes': [ '../build/repack_action.gypi' ],
} }
...@@ -277,11 +214,18 @@ ...@@ -277,11 +214,18 @@
'renderer/print_render_frame_observer.h', 'renderer/print_render_frame_observer.h',
], ],
}, },
{
'target_name': 'libwebviewchromium',
'includes': [
'libwebviewchromium.gypi',
],
}
], ],
'conditions': [ 'conditions': [
['android_webview_build==0', { ['android_webview_build==0', {
'includes': [ 'includes': [
'android_webview_tests.gypi', 'android_webview_tests.gypi',
'../third_party/android_webview_glue/android_webview_glue.gypi',
], ],
'targets': [ 'targets': [
{ {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
'target_name': 'android_webview_apk', 'target_name': 'android_webview_apk',
'type': 'none', 'type': 'none',
'dependencies': [ 'dependencies': [
'libwebviewchromium', 'libstandalonelibwebviewchromium',
'android_webview_java', 'android_webview_java',
'android_webview_pak', 'android_webview_pak',
'libdrawgl', 'libdrawgl',
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
'extensions_to_not_compress': 'pak', 'extensions_to_not_compress': 'pak',
'extra_native_libs': ['<(SHARED_LIB_DIR)/libdrawgl.>(android_product_extension)'], 'extra_native_libs': ['<(SHARED_LIB_DIR)/libdrawgl.>(android_product_extension)'],
'additional_input_paths': [ 'additional_input_paths': [
'<(PRODUCT_DIR)/android_webview_apk/assets/webviewchromium.pak', '<(PRODUCT_DIR)/android_webview_assets/webviewchromium.pak',
'<(PRODUCT_DIR)/android_webview_apk/assets/en-US.pak', '<(PRODUCT_DIR)/android_webview_assets/en-US.pak',
'<(PRODUCT_DIR)/android_webview_apk/assets/asset_file.html', '<(PRODUCT_DIR)/android_webview_apk/assets/asset_file.html',
'<(PRODUCT_DIR)/android_webview_apk/assets/cookie_test.html', '<(PRODUCT_DIR)/android_webview_apk/assets/cookie_test.html',
'<(PRODUCT_DIR)/android_webview_apk/assets/asset_icon.png', '<(PRODUCT_DIR)/android_webview_apk/assets/asset_icon.png',
...@@ -39,6 +39,8 @@ ...@@ -39,6 +39,8 @@
{ {
'destination': '<(PRODUCT_DIR)/android_webview_apk/assets', 'destination': '<(PRODUCT_DIR)/android_webview_apk/assets',
'files': [ 'files': [
'<(PRODUCT_DIR)/android_webview_assets/webviewchromium.pak',
'<(PRODUCT_DIR)/android_webview_assets/en-US.pak',
'<(java_in_dir)/assets/asset_file.html', '<(java_in_dir)/assets/asset_file.html',
'<(java_in_dir)/assets/asset_icon.png', '<(java_in_dir)/assets/asset_icon.png',
'<(java_in_dir)/assets/cookie_test.html', '<(java_in_dir)/assets/cookie_test.html',
...@@ -176,5 +178,11 @@ ...@@ -176,5 +178,11 @@
'../android_webview/test/shell/src/draw_gl/draw_gl.cc', '../android_webview/test/shell/src/draw_gl/draw_gl.cc',
], ],
}, },
{
'target_name': 'libstandalonelibwebviewchromium',
'includes': [
'libwebviewchromium.gypi',
],
},
], ],
} }
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
<default remote="aosp" <default remote="aosp"
sync-j="6" /> sync-j="6" />
<!-- Whenever you roll this please also change frameworks/webview in DEPS to point to the
same revision. -->
<project name="platform/frameworks/webview" path="frameworks/webview" revision="8dc9a9d1217f84a7f9b0554f22a826394eabc856"/> <project name="platform/frameworks/webview" path="frameworks/webview" revision="8dc9a9d1217f84a7f9b0554f22a826394eabc856"/>
<project groups="device,flo" name="device/asus/deb" revision="0ce3a783d549d023ddc553a04fed717ffb2ff533"/> <project groups="device,flo" name="device/asus/deb" revision="0ce3a783d549d023ddc553a04fed717ffb2ff533"/>
......
# Copyright 2014 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.
{
'type': 'shared_library',
'android_unmangled_name': 1,
'dependencies': [
'android_webview_common',
],
'conditions': [
[ 'android_webview_build==1', {
# When building inside the android tree we also need to depend on all
# the java sources generated from templates which will be needed by
# android_webview_java in android_webview/java_library_common.mk.
'dependencies': [
'../base/base.gyp:base_java_application_state',
'../base/base.gyp:base_java_memory_pressure_level_list',
'../content/content.gyp:content_gamepad_mapping',
'../content/content.gyp:gesture_event_type_java',
'../content/content.gyp:page_transition_types_java',
'../content/content.gyp:popup_item_type_java',
'../content/content.gyp:result_codes_java',
'../content/content.gyp:screen_orientation_values_java',
'../content/content.gyp:selection_event_type_java',
'../content/content.gyp:speech_recognition_error_java',
'../media/media.gyp:media_android_imageformat_list',
'../net/net.gyp:cert_verify_status_android_java',
'../net/net.gyp:certificate_mime_types_java',
'../net/net.gyp:net_errors_java',
'../net/net.gyp:private_key_types_java',
'../ui/android/ui_android.gyp:bitmap_format_java',
'../ui/android/ui_android.gyp:window_open_disposition_java',
],
}],
[ 'android_webview_build==1 and use_system_skia==0', {
# When not using the system skia there are linker warnings about
# overriden hidden symbols which there's no easy way to eliminate;
# disable them. http://crbug.com/157326
'ldflags': [
'-Wl,--no-fatal-warnings',
],
'ldflags!': [
'-Wl,--fatal-warnings',
],
}],
['android_webview_build==1 and use_system_stlport==1', {
# ICU requires RTTI, which is not present in the system's stlport, so
# we have to include gabi++. We can't include it in icu.gyp because
# link_settings cannot be used inside target_conditions. This will be
# removed once we stop using the system stlport.
# http://crbug.com/409851
'libraries': [
'-lgabi++',
],
}],
],
'sources': [
'lib/main/webview_entry_point.cc',
],
}
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
'<@(android_app_targets)', '<@(android_app_targets)',
'android_builder_tests', 'android_builder_tests',
'../android_webview/android_webview.gyp:android_webview_apk', '../android_webview/android_webview.gyp:android_webview_apk',
'../android_webview/android_webview.gyp:system_webview_apk',
'../android_webview/android_webview_telemetry_shell.gyp:android_webview_telemetry_shell_apk', '../android_webview/android_webview_telemetry_shell.gyp:android_webview_telemetry_shell_apk',
'../chrome/chrome.gyp:chrome_shell_apk', '../chrome/chrome.gyp:chrome_shell_apk',
'../chrome/chrome.gyp:chrome_sync_shell_apk', '../chrome/chrome.gyp:chrome_sync_shell_apk',
......
...@@ -56,6 +56,9 @@ ...@@ -56,6 +56,9 @@
# code. This allows a test APK to inject a Linker.TestRunner instance at # code. This allows a test APK to inject a Linker.TestRunner instance at
# runtime. Should only be used by the chromium_linker_test_apk target!! # runtime. Should only be used by the chromium_linker_test_apk target!!
# never_lint - Set to 1 to not run lint on this target. # never_lint - Set to 1 to not run lint on this target.
# java_in_dir_suffix - To override the /src suffix on java_in_dir.
# app_manifest_version_name - set the apps 'human readable' version number.
# app_manifest_version_code - set the apps version number.
{ {
'variables': { 'variables': {
'tested_apk_obfuscated_jar_path%': '/', 'tested_apk_obfuscated_jar_path%': '/',
...@@ -99,6 +102,7 @@ ...@@ -99,6 +102,7 @@
'lint_result': '<(intermediate_dir)/lint_result.xml', 'lint_result': '<(intermediate_dir)/lint_result.xml',
'lint_config': '<(intermediate_dir)/lint_config.xml', 'lint_config': '<(intermediate_dir)/lint_config.xml',
'never_lint%': 0, 'never_lint%': 0,
'java_in_dir_suffix%': '/src',
'instr_stamp': '<(intermediate_dir)/instr.stamp', 'instr_stamp': '<(intermediate_dir)/instr.stamp',
'jar_stamp': '<(intermediate_dir)/jar.stamp', 'jar_stamp': '<(intermediate_dir)/jar.stamp',
'obfuscate_stamp': '<(intermediate_dir)/obfuscate.stamp', 'obfuscate_stamp': '<(intermediate_dir)/obfuscate.stamp',
...@@ -605,7 +609,7 @@ ...@@ -605,7 +609,7 @@
# Java files instead of using find. (As is, this will be broken if two # Java files instead of using find. (As is, this will be broken if two
# targets use the same java_in_dir and both use java_apk.gypi or # targets use the same java_in_dir and both use java_apk.gypi or
# both use java.gypi.) # both use java.gypi.)
'java_sources': ['>!@(find >(java_in_dir)/src >(additional_src_dirs) -name "*.java" # apk)'], 'java_sources': ['>!@(find >(java_in_dir)>(java_in_dir_suffix) >(additional_src_dirs) -name "*.java" # apk)'],
}, },
'inputs': [ 'inputs': [
...@@ -657,7 +661,7 @@ ...@@ -657,7 +661,7 @@
{ {
'variables': { 'variables': {
'src_dirs': [ 'src_dirs': [
'<(java_in_dir)/src', '<(java_in_dir)<(java_in_dir_suffix)',
'>@(additional_src_dirs)', '>@(additional_src_dirs)',
], ],
'lint_jar_path': '<(jar_path)', 'lint_jar_path': '<(jar_path)',
......
Notice for all the files in this folder.
------------------------------------------------------------
Copyright (c) 2005-2008, The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations under
the License.
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2011 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
mkosiba@chromium.org
benm@chromium.org
torne@chromium.org
primiano@chromium.org
michaelbai@chromium.org
boliu@chromium.org
mnaganov@chromium.org
sgurun@chromium.org
hjd@chromium.org
Name: Android WebView Glue Layer
Short Name: android_webview_glue
Version: 0
URL: https://android.googlesource.com/platform/frameworks/webview
SOURCE CODE: git clone https://android.googlesource.com/platform/frameworks/webview.git
Security Critical: no
License: Apache Version 2.0
License File: NOT_SHIPPED
Description:
The AOSP Android WebView glue layer from frameworks/webview.
# Copyright 2014 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.
{
'targets': [
{
'target_name': 'system_webview_apk',
'type': 'none',
'dependencies': [
'libwebviewchromium',
'android_webview_java',
'android_webview_pak',
],
'variables': {
'android_sdk_jar': '../third_party/android_platform/webview/frameworks.jar',
'apk_name': 'SystemWebView',
'app_manifest_version_code': '999999',
'java_in_dir': 'src/chromium',
'java_in_dir_suffix': '/java',
'native_lib_target': 'libwebviewchromium',
'never_lint': 1,
'resource_dir': 'src/chromium/res',
'R_package': 'com.android.webview.chromium',
'R_package_relpath': 'com/android/webview/chromium',
'extensions_to_not_compress': 'pak',
'asset_location': '<(PRODUCT_DIR)/android_webview_assets',
# TODO: crbug.com/405035 Find a better solution for WebView .pak files.
'additional_input_paths': [
'<(PRODUCT_DIR)/android_webview_assets/webviewchromium.pak',
'<(PRODUCT_DIR)/android_webview_assets/en-US.pak',
],
'conditions': [
['icu_use_data_file_flag==1', {
'additional_input_paths': [
'<(PRODUCT_DIR)/icudtl.dat',
],
}],
],
},
'copies': [
{
'destination': '<(PRODUCT_DIR)/android_webview_assets',
'files': [],
'conditions': [
['icu_use_data_file_flag==1', {
'files': [
'<(PRODUCT_DIR)/icudtl.dat',
],
}],
],
},
],'includes': [ '../../build/java_apk.gypi' ],
},
],
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment