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:
committed by
Facebook Github Bot
parent
88d7917930
commit
afe6a5bd6e
@@ -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):
|
||||
|
Reference in New Issue
Block a user