mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2025-01-20 23:20:47 +00:00
wip
This commit is contained in:
parent
4cb1d44dbe
commit
3069fe7769
2 changed files with 20 additions and 0 deletions
|
@ -51,6 +51,7 @@ def targets():
|
|||
NBloodTarget(),
|
||||
QuakespasmTarget(),
|
||||
QuakespasmExpTarget(),
|
||||
Q2ProTarget(),
|
||||
|
||||
# Libraries needed for GZDoom and Raze
|
||||
Bzip2Target(),
|
||||
|
|
|
@ -479,3 +479,22 @@ class QuakespasmExpTarget(CMakeMainTarget):
|
|||
opts['QUAKE_MACOS_MOUSE_ACCELERATION'] = 'ON'
|
||||
|
||||
super().configure(state)
|
||||
|
||||
|
||||
class Q2ProTarget(base.MesonTarget):
|
||||
def __init__(self, name='q2pro'):
|
||||
super().__init__(name)
|
||||
|
||||
def prepare_source(self, state: BuildState):
|
||||
state.checkout_git('https://github.com/skullernet/q2pro.git')
|
||||
|
||||
def detect(self, state: BuildState) -> bool:
|
||||
return state.has_source_file('man/q2pro.6.txt')
|
||||
|
||||
def configure(self, state: BuildState):
|
||||
option = state.options
|
||||
option['libcurl'] = 'disabled'
|
||||
option['openal'] = 'disabled' # TODO
|
||||
option['system-wide'] = 'false'
|
||||
|
||||
super().configure(state)
|
||||
|
|
Loading…
Reference in a new issue