Do not crash in cmake_transform.py is a module has no 'libs' am: c9801f4bfb
Change-Id: Idbe39319f6ce9504fcce189baaf1001d60aab844
diff --git a/cmake_transform.py b/cmake_transform.py
index 3583ec8..298e454 100644
--- a/cmake_transform.py
+++ b/cmake_transform.py
@@ -106,7 +106,7 @@
flags = [escape(d) for d in module['cflags'] if not d.startswith('-D')]
# Make sure we remove the lib prefix from all our dependencies.
- libs = [remove_lib_prefix(l) for l in module['libs']]
+ libs = [remove_lib_prefix(l) for l in module.get('libs', [])]
staticlibs = [remove_lib_prefix(l) for l in
module.get('staticlibs', [])
if l != "libandroidemu"]