build/python/cmake: add "windows_configure_args"
This commit is contained in:
parent
937423dbcf
commit
0231622169
|
@ -29,14 +29,19 @@ def configure(toolchain, src, build, args=()):
|
||||||
|
|
||||||
class CmakeProject(Project):
|
class CmakeProject(Project):
|
||||||
def __init__(self, url, md5, installed, configure_args=[],
|
def __init__(self, url, md5, installed, configure_args=[],
|
||||||
|
windows_configure_args=[],
|
||||||
**kwargs):
|
**kwargs):
|
||||||
Project.__init__(self, url, md5, installed, **kwargs)
|
Project.__init__(self, url, md5, installed, **kwargs)
|
||||||
self.configure_args = configure_args
|
self.configure_args = configure_args
|
||||||
|
self.windows_configure_args = windows_configure_args
|
||||||
|
|
||||||
def configure(self, toolchain):
|
def configure(self, toolchain):
|
||||||
src = self.unpack(toolchain)
|
src = self.unpack(toolchain)
|
||||||
build = self.make_build_path(toolchain)
|
build = self.make_build_path(toolchain)
|
||||||
configure(toolchain, src, build, self.configure_args)
|
configure_args = self.configure_args
|
||||||
|
if toolchain.is_windows:
|
||||||
|
configure_args = configure_args + self.windows_configure_args
|
||||||
|
configure(toolchain, src, build, configure_args)
|
||||||
return build
|
return build
|
||||||
|
|
||||||
def build(self, toolchain):
|
def build(self, toolchain):
|
||||||
|
|
Loading…
Reference in New Issue