if srclib["Srclibs"]:
n = 1
- for lib in srclib["Srclibs"].replace(';', ',').split(','):
+ for lib in metadata.split_list_values(srclib["Srclibs"]):
s_tuple = None
for t in srclibpaths:
if t[0] == lib:
build['ndk_path'] = common.get_ndk_path(build['ndk'])
+def split_list_values(s):
+ # Port legacy ';' separators
+ l = [v.strip() for v in s.replace(';', ',').split(',')]
+ return [v for v in l if v]
+
+
# Parse metadata for a single application.
#
# 'metafile' - the filename to read. The package id for the application comes
.format(p, linedesc))
t = flagtype(pk)
if t == 'list':
- # Port legacy ';' separators
- pv = [v.strip() for v in pv.replace(';', ',').split(',')]
+ pv = split_list_values(pv)
if pk == 'gradle':
if len(pv) == 1 and pv[0] in ['main', 'yes']:
pv = ['yes']
elif fieldtype == 'string':
thisinfo[field] = value
elif fieldtype == 'list':
- thisinfo[field] = [v.strip() for v in value.replace(';', ',').split(',')]
+ thisinfo[field] = split_list_values(value)
elif fieldtype == 'build':
if value.endswith("\\"):
mode = 2