open nri and cdi support in build
Signed-off-by: zhongtao <zhongtao17@huawei.com>
This commit is contained in:
parent
403f9489f9
commit
72a8f0f087
16
iSulad.spec
16
iSulad.spec
@ -2,6 +2,8 @@
|
||||
%global _release 12
|
||||
%global is_systemd 1
|
||||
%global enable_criv1 1
|
||||
%global enable_cdi 1
|
||||
%global enable_nri 1
|
||||
%global enable_shimv2 1
|
||||
%global is_embedded 1
|
||||
%global cpp_std 17
|
||||
@ -196,7 +198,9 @@ BuildRequires: libevhtp-devel libevent-devel
|
||||
%if 0%{?enable_shimv2}
|
||||
BuildRequires: lib-shim-v2 lib-shim-v2-devel
|
||||
%endif
|
||||
|
||||
%if 0%{?enable_nri}
|
||||
BuildRequires: isula-rust-extensions-devel
|
||||
%endif
|
||||
|
||||
Requires: libisula > %{lcrver_lower} libisula < %{lcrver_upper}
|
||||
Requires: grpc protobuf
|
||||
@ -209,6 +213,9 @@ BuildRequires: libevhtp libevent
|
||||
%if 0%{?enable_shimv2}
|
||||
Requires: lib-shim-v2
|
||||
%endif
|
||||
%if 0%{?enable_nri}
|
||||
Requires: isula-rust-extensions
|
||||
%endif
|
||||
|
||||
%description
|
||||
This is a umbrella project for gRPC-services based Lightweight Container
|
||||
@ -227,7 +234,12 @@ cd build
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
%if 0%{?enable_criv1}
|
||||
-DENABLE_CRI_API_V1=ON \
|
||||
-DENABLE_SANDBOXER=ON \
|
||||
%if 0%{?enable_cdi}
|
||||
-DENABLE_CDI=ON \
|
||||
%endif
|
||||
%if 0%{?enable_nri}
|
||||
-DENABLE_NRI=ON \
|
||||
%endif
|
||||
%endif
|
||||
%if 0%{?enable_shimv2}
|
||||
-DENABLE_SHIM_V2=ON \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user