diff options
author | Xuelian Bai <xuelian.bai@samsung.com> | 2021-05-28 19:35:20 +0800 |
---|---|---|
committer | Xuelian Bai <xuelian.bai@samsung.com> | 2021-06-02 22:55:42 +0800 |
commit | c72c6290ccf5a0308915755c47a12e0c2ae2d419 (patch) | |
tree | e6e82e04d19467390804e17de1ec7672e98202a3 | |
parent | 8a22bcf6bf741e5fa9d49a50629a66d9e57b0620 (diff) | |
download | Vulkan-ValidationLayers-accepted/tizen_6.5_unified.tar.gz Vulkan-ValidationLayers-accepted/tizen_6.5_unified.tar.bz2 Vulkan-ValidationLayers-accepted/tizen_6.5_unified.zip |
Add build support for Tizentizen_6.5.m2_releasesubmit/tizen_6.5/20211028.163301submit/tizen/20210607.072910submit/tizen/20210604.110910accepted/tizen/unified/20210609.140535accepted/tizen/6.5/unified/20211028.225058tizen_6.5accepted/tizen_6.5_unified
1. Merge old commits
2. No Robin Hood hashing and google test, so they are disabled and no
tests
3. Add neccessary *INSTALL_DIR
Change-Id: I166b6d444e8a51348f2ae90b0a55bd02ff31e021
Signed-Off-by: Xuelian Bai <xuelian.bai@samsung.com>
-rw-r--r-- | layers/CMakeLists.txt | 2 | ||||
-rw-r--r-- | packaging/vulkan-validation-layers.manifest | 5 | ||||
-rw-r--r-- | packaging/vulkan-validation-layers.spec | 66 |
3 files changed, 72 insertions, 1 deletions
diff --git a/layers/CMakeLists.txt b/layers/CMakeLists.txt index a3290a71a..bb5529715 100644 --- a/layers/CMakeLists.txt +++ b/layers/CMakeLists.txt @@ -338,7 +338,7 @@ if(BUILD_LAYERS) DESTINATION ${CMAKE_INSTALL_LIBDIR}) elseif(UNIX) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/staging-json/${TARGET_NAME}.json - DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/vulkan/explicit_layer.d) + DESTINATION ${CMAKE_INSTALL_DATADIR}/vulkan/explicit_layer.d) endif() endforeach() endif() diff --git a/packaging/vulkan-validation-layers.manifest b/packaging/vulkan-validation-layers.manifest new file mode 100644 index 000000000..97e8c3134 --- /dev/null +++ b/packaging/vulkan-validation-layers.manifest @@ -0,0 +1,5 @@ +<manifest> + <request> + <domain name="_"/> + </request> +</manifest> diff --git a/packaging/vulkan-validation-layers.spec b/packaging/vulkan-validation-layers.spec new file mode 100644 index 000000000..7f8a32ab3 --- /dev/null +++ b/packaging/vulkan-validation-layers.spec @@ -0,0 +1,66 @@ +Name: vulkan-validation-layers +Version: 1.2.179 +Release: 0 +Summary: Vulkan validation layers +Group: Graphics & UI Framework/GL +License: Apache-2.0 +Source: %{name}-%{version}.tar.gz +Source1001: %{name}.manifest + +BuildRequires: cmake +BuildRequires: python3 +BuildRequires: vulkan-headers = %{version} +BuildRequires: glslang-devel +BuildRequires: pkgconfig(SPIRV-Tools) = 2021.1.1 +BuildRequires: spirv-tools +BuildRequires: vulkan-loader-devel +BuildRequires: pkgconfig(wayland-client) +BuildRequires: spirv-headers + +%define BUILD_TYPE Debug + +%description +This project provides the Vulkan validation layers. + +%package devel +Summary: Development files for %{name} +Requires: vulkan-headers + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%prep +%setup -q + +%build +cp %{SOURCE1001} . +export CFLAGS="$CFLAGS -w -Wno-psabi" +export CXXFLAGS="$CXXFLAGS -w -Wno-psabi" +cmake -DCMAKE_BUILD_TYPE=%{BUILD_TYPE} \ + -DBUILD_WSI_XLIB_SUPPORT=OFF -DBUILD_WSI_XCB_SUPPORT=OFF -DBUILD_WSI_WAYLAND_SUPPORT=ON \ + -DGLSLANG_INSTALL_DIR=%{_bindir} -DSPIRV_HEADERS_INSTALL_DIR=/usr/include/spirv \ + -DUSE_ROBIN_HOOD_HASHING=OFF \ + -DCMAKE_INSTALL_LIBDIR=%{_libdir} -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir}/vulkan \ + -DCMAKE_INSTALL_DATADIR=%{_datadir} -DCMAKE_INSTALL_BINDIR=%{_bindir} +make -j8 + +%install +rm -rf %{buildroot} +%make_install +mkdir -p %{buildroot}%{_includedir}/vulkan +cp -a ./layers/generated/*.h %{buildroot}%{_includedir}/vulkan +%remove_docs + +%files +%manifest %{name}.manifest +%license LICENSE.txt +%defattr(-,root,root,-) +%{_datadir}/* +%{_libdir}/* + +%files devel +%defattr(-,root,root,-) +%{_includedir}/vulkan/ + + |