This commit is contained in:
alexey.lysiuk 2023-04-15 10:24:18 +03:00
parent 4cb1d44dbe
commit 3069fe7769
2 changed files with 20 additions and 0 deletions

View file

@ -51,6 +51,7 @@ def targets():
NBloodTarget(),
QuakespasmTarget(),
QuakespasmExpTarget(),
Q2ProTarget(),
# Libraries needed for GZDoom and Raze
Bzip2Target(),

View file

@ -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)