Use ninja to build
This commit is contained in:
parent
304e13db24
commit
66b259b6a5
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
Name: spirv-tools
|
Name: spirv-tools
|
||||||
Version: 2016.7
|
Version: 2016.7
|
||||||
Release: 0.3%{?gitrel}%{?dist}
|
Release: 0.4%{?gitrel}%{?dist}
|
||||||
Summary: API and commands for processing SPIR-V modules
|
Summary: API and commands for processing SPIR-V modules
|
||||||
|
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
@ -15,6 +15,7 @@ Patch0: SPIRV-Tools_staticlib.patch
|
|||||||
|
|
||||||
BuildRequires: cmake3
|
BuildRequires: cmake3
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: ninja-build
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
BuildRequires: python2-simplejson
|
BuildRequires: python2-simplejson
|
||||||
BuildRequires: spirv-headers-devel
|
BuildRequires: spirv-headers-devel
|
||||||
@ -40,13 +41,16 @@ integration into other code bases directly.
|
|||||||
%__mkdir_p %_target_platform
|
%__mkdir_p %_target_platform
|
||||||
pushd %_target_platform
|
pushd %_target_platform
|
||||||
%cmake3 -DCMAKE_BUILD_TYPE=Release \
|
%cmake3 -DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DPYTHON_EXECUTABLE:FILEPATH=%{_bindir}/python%{python2_version} \
|
||||||
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
|
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
|
||||||
-DSPIRV-Headers_SOURCE_DIR=%{_prefix} ..
|
-DSPIRV_WERROR=OFF \
|
||||||
%{make_build}
|
-DSPIRV-Headers_SOURCE_DIR=%{_prefix} \
|
||||||
|
-GNinja ..
|
||||||
|
%ninja_build
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{make_install} -C %_target_platform
|
%ninja_install -C %_target_platform
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
@ -67,6 +71,9 @@ popd
|
|||||||
%{_libdir}/libSPIRV-Tools.a
|
%{_libdir}/libSPIRV-Tools.a
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Feb 09 2018 Leigh Scott <leigh123linux@googlemail.com> - 2016.7-0.4.20171023.git5834719
|
||||||
|
- Use ninja to build
|
||||||
|
|
||||||
* Mon Jan 22 2018 Leigh Scott <leigh123linux@googlemail.com> - 2016.7-0.3.20171023.git5834719
|
* Mon Jan 22 2018 Leigh Scott <leigh123linux@googlemail.com> - 2016.7-0.3.20171023.git5834719
|
||||||
- Add python prefix to fix the stupid Bodhi tests
|
- Add python prefix to fix the stupid Bodhi tests
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user