mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-30 14:25:36 +08:00
sanity check for cmake/7-zip and third-party/ existence
This commit is contained in:
parent
5f96b4907c
commit
7f2fbf8ab0
@ -156,6 +156,24 @@ local mycmake = os.realpath(path.join(third_party_deps_dir, 'cmake', 'bin', 'cma
|
|||||||
if _OPTIONS["custom-cmake"] then
|
if _OPTIONS["custom-cmake"] then
|
||||||
mycmake = _OPTIONS["custom-cmake"]
|
mycmake = _OPTIONS["custom-cmake"]
|
||||||
print('using custom cmake: ' .. _OPTIONS["custom-cmake"])
|
print('using custom cmake: ' .. _OPTIONS["custom-cmake"])
|
||||||
|
else
|
||||||
|
if os.host() == 'windows' then
|
||||||
|
mycmake = mycmake .. '.exe'
|
||||||
|
end
|
||||||
|
if not os.isfile(mycmake) then
|
||||||
|
error('cmake is missing from third-party dir, you can specify custom cmake location, run the script with --help. cmake: ' .. mycmake)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
if not third_party_dir or not os.isdir(third_party_dir) then
|
||||||
|
error('third-party dir is missing')
|
||||||
|
end
|
||||||
|
|
||||||
|
if os.host() == 'windows' then
|
||||||
|
extractor = extractor .. '.exe'
|
||||||
|
end
|
||||||
|
if not extractor or not os.isfile(extractor) then
|
||||||
|
error('extractor is missing from third-party dir. extractor: ' .. extractor)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user