Add an empty native library to gyp_managed_install's incomplete apks

This is required to install these apks on some devices.

BUG=384638

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@286028 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
cjhopman@chromium.org 2014-07-28 23:49:35 +00:00
Родитель 6b82a31134
Коммит 70872679ea
2 изменённых файлов: 34 добавлений и 0 удалений

16
android/gyp/touch.py Executable file
Просмотреть файл

@ -0,0 +1,16 @@
#!/usr/bin/env python
#
# 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.
import sys
from util import build_utils
def main(argv):
for f in argv[1:]:
build_utils.Touch(f)
if __name__ == '__main__':
sys.exit(main(sys.argv))

Просмотреть файл

@ -403,6 +403,11 @@
'conditions': [
['gyp_managed_install == 1', {
'variables': {
# This "library" just needs to be put in the .apk. It is not loaded
# at runtime.
'placeholder_native_library_path':
'<(apk_package_native_libs_dir)/<(android_app_abi)/libfix.crbug.384638.so',
'package_input_paths': [ '<(placeholder_native_library_path)' ],
'libraries_top_dir': '<(intermediate_dir)/lib.stripped',
'libraries_source_dir': '<(libraries_top_dir)/lib/<(android_app_abi)',
'device_library_dir': '<(device_intermediate_dir)/lib.stripped',
@ -415,6 +420,19 @@
{
'includes': ['../build/android/push_libraries.gypi'],
},
{
'action_name': 'create placeholder lib',
'inputs': [
'<(DEPTH)/build/android/gyp/touch.py',
],
'outputs': [
'<(placeholder_native_library_path)',
],
'action' : [
'python', '<(DEPTH)/build/android/gyp/touch.py',
'<@(_outputs)',
],
},
{
'action_name': 'create device library symlinks',
'message': 'Creating links on device for <(_target_name)',