Merge "Rename soong outdir to generated-headers" am: 30bf9e8463
Original change: https://android-review.googlesource.com/c/platform/development/+/1850393 Change-Id: I7b95cbb7cd0e0275e4deb3c95021a1160bdf86ae
This commit is contained in:
@@ -525,6 +525,10 @@ class GenBuildFile(object):
|
||||
dirs=dirs,
|
||||
name=name))
|
||||
|
||||
def rename_generated_dirs(dirs):
|
||||
# Reame out/soong/.intermedaites to generated-headers for better readability.
|
||||
return [d.replace(utils.SOONG_INTERMEDIATES_DIR, utils.GENERATED_HEADERS_DIR, 1) for d in dirs]
|
||||
|
||||
for src in sorted(src_paths):
|
||||
include_dirs = ''
|
||||
system_include_dirs = ''
|
||||
@@ -541,10 +545,12 @@ class GenBuildFile(object):
|
||||
if prebuilt == 'android.hidl.memory@1.0-impl.so':
|
||||
props['RelativeInstallPath'] = 'hw'
|
||||
if 'ExportedDirs' in props:
|
||||
l = ['include/%s' % d for d in props['ExportedDirs']]
|
||||
dirs = rename_generated_dirs(props['ExportedDirs'])
|
||||
l = ['include/%s' % d for d in dirs]
|
||||
include_dirs = list_to_prop_value(l, 'export_include_dirs')
|
||||
if 'ExportedSystemDirs' in props:
|
||||
l = ['include/%s' % d for d in props['ExportedSystemDirs']]
|
||||
dirs = rename_generated_dirs(props['ExportedSystemDirs'])
|
||||
l = ['include/%s' % d for d in dirs]
|
||||
system_include_dirs = list_to_prop_value(l, 'export_system_include_dirs')
|
||||
if 'ExportedFlags' in props:
|
||||
flags = list_to_prop_value(props['ExportedFlags'], 'export_flags')
|
||||
|
||||
@@ -95,6 +95,13 @@ def install_snapshot(branch, build, local_dir, install_dir, temp_artifact_dir):
|
||||
logging.info('Unzipping VNDK snapshot: {}'.format(artifact))
|
||||
utils.check_call(['unzip', '-qn', artifact, '-d', install_dir])
|
||||
|
||||
# rename {install_dir}/{arch}/include/out/soong/.intermediates
|
||||
for soong_intermediates_dir in glob.glob(install_dir + '/*/include/' + utils.SOONG_INTERMEDIATES_DIR):
|
||||
generated_headers_dir = soong_intermediates_dir.replace(
|
||||
utils.SOONG_INTERMEDIATES_DIR,
|
||||
utils.GENERATED_HEADERS_DIR
|
||||
)
|
||||
os.rename(soong_intermediates_dir, generated_headers_dir)
|
||||
|
||||
def gather_notice_files(install_dir):
|
||||
"""Gathers all NOTICE files to a common NOTICE_FILES directory."""
|
||||
|
||||
@@ -37,7 +37,8 @@ NOTICE_FILES_DIR_NAME = 'NOTICE_FILES'
|
||||
NOTICE_FILES_DIR_PATH = os.path.join(COMMON_DIR_PATH, NOTICE_FILES_DIR_NAME)
|
||||
BINDER32 = 'binder32'
|
||||
MINIMUM_VNDK_VERSION = 28
|
||||
|
||||
SOONG_INTERMEDIATES_DIR = 'out/soong/.intermediates'
|
||||
GENERATED_HEADERS_DIR = 'generated-headers'
|
||||
|
||||
def set_logging_config(verbose_level):
|
||||
verbose_map = (logging.WARNING, logging.INFO, logging.DEBUG)
|
||||
|
||||
Reference in New Issue
Block a user