Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / build / android / gyp / strip_library_for_device.py
index fb4c300..ce23993 100755 (executable)
@@ -45,7 +45,10 @@ def main():
   build_utils.MakeDirectory(options.stripped_libraries_dir)
 
   for library in libraries:
-    library_path = os.path.join(options.libraries_dir, library)
+    for base_path in options.libraries_dir.split(','):
+      library_path = os.path.join(base_path, library)
+      if (os.path.exists(library_path)):
+        break
     stripped_library_path = os.path.join(
         options.stripped_libraries_dir, library)
     StripLibrary(options.android_strip, options.android_strip_arg, library_path,