!1 add spee、code
From: @xieyijun3 Reviewed-by: @yanansong Signed-off-by: @yanansong
This commit is contained in:
commit
2ad65c08c3
BIN
ft_surface-1.0.0.tar.gz
Normal file
BIN
ft_surface-1.0.0.tar.gz
Normal file
Binary file not shown.
76
ft_surface.spec
Normal file
76
ft_surface.spec
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
# Copyright (c) 2023 Huawei Technologies Co., Ltd. All rights reserved.
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
Name: ft_surface
|
||||||
|
Version: 1.0.0
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: fangtian engine surface wrapper for mesa
|
||||||
|
|
||||||
|
License: Apache-2.0
|
||||||
|
URL: https://gitee.com/openeuler/ft_surface
|
||||||
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildRequires: cmake g++
|
||||||
|
|
||||||
|
%description
|
||||||
|
ft_surface is wrapper for fangtian surface module in ft_engine. this lib is used for build mesa with ohos platform.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: ft_surface development files
|
||||||
|
Provides: ft_surface-devel
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
This package contains necessary header files for ft_surface development.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{name}-%{version} -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
cd %{_builddir}/%{name}-%{version}
|
||||||
|
mkdir build && cd build
|
||||||
|
%{cmake3} ..
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{_libdir}
|
||||||
|
cp -pdf %{_builddir}/%{name}-%{version}/build/libft_surface_wrapper.so %{buildroot}%{_libdir}
|
||||||
|
mkdir -p %{buildroot}%{_libdir}/pkgconfig
|
||||||
|
cp -pdf %{_builddir}/%{name}-%{version}/ft_surface_wrapper.pc %{buildroot}%{_libdir}/pkgconfig/
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{_includedir}/ftsurface
|
||||||
|
cp -pdf %{_builddir}/%{name}-%{version}/include/buffer_handle.h %{buildroot}%{_includedir}/ftsurface/
|
||||||
|
cp -pdf %{_builddir}/%{name}-%{version}/include/display_type.h %{buildroot}%{_includedir}/ftsurface/
|
||||||
|
cp -pdf %{_builddir}/%{name}-%{version}/include/external_window.h %{buildroot}%{_includedir}/ftsurface/
|
||||||
|
cp -pdf %{_builddir}/%{name}-%{version}/include/native_window_wrapper.h %{buildroot}%{_includedir}/ftsurface/
|
||||||
|
cp -pdf %{_builddir}/%{name}-%{version}/include/window.h %{buildroot}%{_includedir}/ftsurface/
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{_libdir}/*
|
||||||
|
%{_libdir}/pkgconfig/ft_surface_wrapper.pc
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_libdir}/*
|
||||||
|
%{_libdir}/pkgconfig/ft_surface_wrapper.pc
|
||||||
|
%dir %{_includedir}/ftsurface
|
||||||
|
%{_includedir}/ftsurface/buffer_handle.h
|
||||||
|
%{_includedir}/ftsurface/display_type.h
|
||||||
|
%{_includedir}/ftsurface/external_window.h
|
||||||
|
%{_includedir}/ftsurface/native_window_wrapper.h
|
||||||
|
%{_includedir}/ftsurface/window.h
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Oct 10 2023 xieyijun3 <xieyijun3@huawei.com> - 1.0.0-1
|
||||||
|
-
|
||||||
Loading…
x
Reference in New Issue
Block a user