mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-21 11:31:07 +00:00
aedi: add usb target to library tier 3
This commit is contained in:
parent
33ffd40d9f
commit
dae03acd0b
2 changed files with 14 additions and 0 deletions
|
@ -112,6 +112,7 @@ def targets():
|
|||
Sdl2TtfTarget(),
|
||||
SfmlTarget(),
|
||||
TiffTarget(),
|
||||
UsbTarget(),
|
||||
WxWidgetsTarget(),
|
||||
ZstdTarget(),
|
||||
|
||||
|
|
|
@ -367,6 +367,19 @@ class TiffTarget(base.CMakeStaticDependencyTarget):
|
|||
return line
|
||||
|
||||
|
||||
class UsbTarget(base.ConfigureMakeStaticDependencyTarget):
|
||||
def __init__(self, name='usb'):
|
||||
super().__init__(name)
|
||||
|
||||
def prepare_source(self, state: BuildState):
|
||||
state.download_source(
|
||||
'https://github.com/libusb/libusb/releases/download/v1.0.27/libusb-1.0.27.tar.bz2',
|
||||
'ffaa41d741a8a3bee244ac8e54a72ea05bf2879663c098c82fc5757853441575')
|
||||
|
||||
def detect(self, state: BuildState) -> bool:
|
||||
return state.has_source_file('libusb/libusb.h')
|
||||
|
||||
|
||||
class WxWidgetsTarget(base.CMakeStaticDependencyTarget):
|
||||
def __init__(self, name='wxwidgets'):
|
||||
super().__init__(name)
|
||||
|
|
Loading…
Reference in a new issue