diff options
author | Xuelian Bai <xuelian.bai@samsung.com> | 2021-05-28 19:35:20 +0800 |
---|---|---|
committer | Xuelian Bai <xuelian.bai@samsung.com> | 2022-03-24 09:03:36 +0800 |
commit | b006ad859b4f527c6bff64a430d96cd7728337f5 (patch) | |
tree | 24c1d91c1b2f9e212494b7fd0b95bb573db850a4 | |
parent | ee5abb815dad710c468b406023ee56ec97b54fe4 (diff) | |
download | Vulkan-ValidationLayers-b006ad859b4f527c6bff64a430d96cd7728337f5.tar.gz Vulkan-ValidationLayers-b006ad859b4f527c6bff64a430d96cd7728337f5.tar.bz2 Vulkan-ValidationLayers-b006ad859b4f527c6bff64a430d96cd7728337f5.zip |
Add build support for Tizen
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 37fa835e2..d00b58d85 100644 --- a/layers/CMakeLists.txt +++ b/layers/CMakeLists.txt @@ -362,7 +362,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/ + + |