mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
rlottie/gbs: move gbs build from cmake to meson
This commit is contained in:
parent
7792124c46
commit
1d7243e2a4
@ -6,7 +6,8 @@ Group: UI Framework/Services
|
|||||||
License: LGPL-v2.1
|
License: LGPL-v2.1
|
||||||
URL: http://www.tizen.org/
|
URL: http://www.tizen.org/
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
BuildRequires: cmake
|
BuildRequires: meson
|
||||||
|
BuildRequires: ninja
|
||||||
Requires(post): /sbin/ldconfig
|
Requires(post): /sbin/ldconfig
|
||||||
Requires(postun): /sbin/ldconfig
|
Requires(postun): /sbin/ldconfig
|
||||||
|
|
||||||
@ -29,28 +30,24 @@ rlottie library (devel)
|
|||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS+=" -fvisibility=hidden -fPIC -Wall -O2"
|
|
||||||
export LDFLAGS+=" "
|
|
||||||
|
|
||||||
%ifarch %{arm}
|
export DESTDIR=%{buildroot}
|
||||||
export CXXFLAGS+=" -D_ARCH_ARM_ -mfpu=neon"
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
export CXXFLAGS+=" -std=gnu++14"
|
||||||
|
|
||||||
%ifarch %{arm}
|
meson setup \
|
||||||
cmake . -DCMAKE_INSTALL_PREFIX=/usr \
|
--prefix /usr \
|
||||||
-DLIB_INSTALL_DIR:PATH=%{_libdir} \
|
--libdir %{_libdir} \
|
||||||
-DARCH="arm"
|
builddir 2>&1
|
||||||
%else
|
ninja \
|
||||||
cmake . -DCMAKE_INSTALL_PREFIX=/usr \
|
-C builddir \
|
||||||
-DLIB_INSTALL_DIR:PATH=%{_libdir}
|
-j %(echo "`/usr/bin/getconf _NPROCESSORS_ONLN`")
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
make %{?jobs:-j%jobs}
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
|
||||||
|
export DESTDIR=%{buildroot}
|
||||||
|
|
||||||
|
ninja -C builddir install
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -65,5 +62,4 @@ make %{?jobs:-j%jobs}
|
|||||||
%{_libdir}/librlottie.so
|
%{_libdir}/librlottie.so
|
||||||
%{_libdir}/librlottie-image-loader.so
|
%{_libdir}/librlottie-image-loader.so
|
||||||
|
|
||||||
%{_libdir}/cmake/rlottie/*.cmake
|
|
||||||
%{_libdir}/pkgconfig/rlottie.pc
|
%{_libdir}/pkgconfig/rlottie.pc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user