Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ SRC_DIRS = src src/%PLATFORM%
# - empty which will use whatever is the latest
# - undefined, no fujinet-lib will be used
FUJINET_LIB =
$(info FUJUNET_LIB=$(FUJINET_LIB))

# Some platforms don’t use FUJINET_LIB; set this to allow builds to continue
# even if the library isn’t present.
Expand Down
5 changes: 3 additions & 2 deletions makefiles/fnlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def __init__(self, FUJINET_LIB, PLATFORM, COMBOS, skipIfMissing=False):
self.LIBRARY_REGEX = []
for platform in self.possiblePlatforms:
self.LIBRARY_REGEX.extend([
fr"fujinet[-.]({platform})(-{VERSION_NUM_RE})?[.]lib$",
fr"fujinet[-.]({platform})-({VERSION_NUM_RE})?[.]lib$",
fr"fujinet[.]lib[.]({platform})$",
fr"libfujinet[.]({platform})[.]a$",
])
Expand All @@ -114,7 +114,8 @@ def __init__(self, FUJINET_LIB, PLATFORM, COMBOS, skipIfMissing=False):
if not self.MV.FUJINET_LIB_DIR:
self.getDirectory()

if not self.MV.FUJINET_LIB_FILE:
if not self.MV.FUJINET_LIB_FILE \
and (not self.MV.FUJINET_LIB_ZIP or not os.path.exists(self.MV.FUJINET_LIB_ZIP)):
self.downloadZip()

if not self.MV.FUJINET_LIB_INCLUDE:
Expand Down