Commit 51a8d664 authored by Puneet Kaushik's avatar Puneet Kaushik Committed by Facebook Github Bot

getdeps: Extend is_objfile() to Windows class to only select files with .exe extension

Summary: is_objfile() is used to find the executable files in the given project. Getdeps will only find and copy the dependencies of the binaries identified by this function. On Windows we will copy only the dependencies for an exe file.

Reviewed By: chadaustin

Differential Revision: D16185962

fbshipit-source-id: f6b5089401b242514a845e3a97b3804051d93c1c
parent 1766f03f
......@@ -191,6 +191,13 @@ class WinDeps(DepBase):
return False
return True
def is_objfile(self, objfile):
if not os.path.isfile(objfile):
return False
if objfile.lower().endswith(".exe"):
return True
return False
class ElfDeps(DepBase):
def __init__(self, buildopts, install_dirs):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment