aedi: add detection to unrar target

This commit is contained in:
alexey.lysiuk 2021-07-22 09:55:20 +03:00
parent 0961551fd8
commit 85ab6c4706

View file

@ -162,6 +162,9 @@ class UnrarTarget(MakeTarget):
def post_build(self, state: BuildState): def post_build(self, state: BuildState):
self.copy_to_bin(state) self.copy_to_bin(state)
def detect(self, state: BuildState) -> bool:
return state.has_source_file('rar.hpp')
class ZipTarget(MakeTarget): class ZipTarget(MakeTarget):
def __init__(self, name='zip'): def __init__(self, name='zip'):