1
0
mirror of https://github.com/facebook/proxygen.git synced 2025-08-08 18:02:05 +03:00

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
This commit is contained in:
Puneet Kaushik
2019-07-11 08:13:49 -07:00
committed by Facebook Github Bot
parent 88d7917930
commit afe6a5bd6e

View File

@@ -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):