You've already forked OpenUxAS-bootstrap
mirror of
https://github.com/AdaCore/OpenUxAS-bootstrap.git
synced 2026-02-12 13:07:23 -08:00
24 lines
609 B
Plaintext
24 lines
609 B
Plaintext
from e3.anod.loader import spec
|
|
from e3.anod.spec import Anod
|
|
from e3.fs import cp, mkdir
|
|
import os
|
|
|
|
|
|
class ZeroMQ(spec('github')):
|
|
|
|
@property
|
|
def build_deps(self):
|
|
return [Anod.Dependency('compiler'),
|
|
Anod.Dependency('cmake')]
|
|
|
|
github_project = 'libzmq'
|
|
|
|
@Anod.primitive()
|
|
def build(self):
|
|
self.cmake_build(params={
|
|
'BUILD_TESTS': 'OFF'})
|
|
self.adjust_pkg_config(pc_file='libzmq.pc')
|
|
mkdir(os.path.join(self.lib_dir, 'static'))
|
|
cp(os.path.join(self.lib_dir, 'libzmq.a'),
|
|
os.path.join(self.lib_dir, 'static'))
|