Merge "Install vndkcore and vndkprivate library list"

This commit is contained in:
Kiyoung Kim
2019-10-08 00:57:41 +00:00
committed by Gerrit Code Review
2 changed files with 14 additions and 3 deletions

View File

@@ -60,7 +60,11 @@ class GenBuildFile(object):
"""
INDENT = ' '
ETC_MODULES = [
'ld.config.txt', 'llndk.libraries.txt', 'vndksp.libraries.txt'
'ld.config.txt',
'llndk.libraries.txt',
'vndksp.libraries.txt',
'vndkcore.libraries.txt',
'vndkprivate.libraries.txt'
]
def __init__(self, install_dir, vndk_version):
@@ -77,10 +81,12 @@ class GenBuildFile(object):
self._snapshot_archs = utils.get_snapshot_archs(install_dir)
self._root_bpfile = os.path.join(install_dir, utils.ROOT_BP_PATH)
self._common_bpfile = os.path.join(install_dir, utils.COMMON_BP_PATH)
self._vndk_core = self._parse_lib_list('vndkcore.libraries.txt')
self._vndk_core = self._parse_lib_list(
os.path.basename(self._etc_paths['vndkcore.libraries.txt']))
self._vndk_sp = self._parse_lib_list(
os.path.basename(self._etc_paths['vndksp.libraries.txt']))
self._vndk_private = self._parse_lib_list('vndkprivate.libraries.txt')
self._vndk_private = self._parse_lib_list(
os.path.basename(self._etc_paths['vndkprivate.libraries.txt']))
self._modules_with_notice = self._get_modules_with_notice()
def _get_etc_paths(self):

View File

@@ -151,6 +151,11 @@ def post_processe_files_if_needed(vndk_version):
for file_to_rename in files_to_add_version_suffix:
add_version_suffix(file_to_rename)
files_to_enforce_version_suffix = ('vndkcore.libraries.txt',
'vndkprivate.libraries.txt')
for file_to_rename in files_to_enforce_version_suffix:
add_version_suffix(file_to_rename)
def update_buildfiles(buildfile_generator):
logging.info('Generating root Android.bp file...')