mbedtls-3.6.2
This commit is contained in:
@@ -1,28 +1,27 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
|
||||
|
||||
from pisi.actionsapi import cmaketools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import get
|
||||
from pisi.actionsapi import cmaketools, mesontools, pisitools
|
||||
|
||||
i = ''.join([
|
||||
' -DCMAKE_INSTALL_PREFIX=/usr',
|
||||
' -DCMAKE_BUILD_TYPE=Release',
|
||||
' -DUSE_SHARED_MBEDTLS_LIBRARY=ON',
|
||||
' -DUSE_STATIC_MBEDTLS_LIBRARY=OFF',
|
||||
' -DLINK_WITH_PTHREAD=ON',
|
||||
' -Bbuild -G Ninja -L '
|
||||
])
|
||||
|
||||
def setup():
|
||||
#pisitools.dosed('CMakeLists.txt', '"cmake"', '"lib/cmake"')
|
||||
|
||||
shelltools.system("mkdir build")
|
||||
shelltools.cd("build")
|
||||
cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \
|
||||
-DUSE_SHARED_MBEDTLS_LIBRARY=ON \
|
||||
-DMBEDTLS_FATAL_WARNINGS=OFF \
|
||||
-DINSTALL_MBEDTLS_HEADERS=ON", sourceDir="..")
|
||||
cmaketools.configure(i)
|
||||
|
||||
def build():
|
||||
cmaketools.make("-C build")
|
||||
mesontools.build()
|
||||
|
||||
def install():
|
||||
cmaketools.rawInstall("DESTDIR=%s -C build" % get.installDIR())
|
||||
mesontools.install()
|
||||
|
||||
pisitools.dodoc("ChangeLog", "LICENSE", "README*")
|
||||
pisitools.dodoc("LICENSE")
|
||||
|
||||
Reference in New Issue
Block a user