summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXuelian Bai <xuelian.bai@samsung.com>2021-05-28 19:35:20 +0800
committerXuelian Bai <xuelian.bai@samsung.com>2023-08-03 15:52:21 +0800
commitdb866ca1c6689e859ad0cdfa4bc3831c6c8f1f77 (patch)
tree85879189cd7652312ef3b56b85c668b2e420b197
parentd6c1e5a5a6229b52c20c643ff626a948d4850865 (diff)
downloadVulkan-ValidationLayers-db866ca1c6689e859ad0cdfa4bc3831c6c8f1f77.tar.gz
Vulkan-ValidationLayers-db866ca1c6689e859ad0cdfa4bc3831c6c8f1f77.tar.bz2
Vulkan-ValidationLayers-db866ca1c6689e859ad0cdfa4bc3831c6c8f1f77.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.txt2
-rw-r--r--packaging/vulkan-validation-layers.manifest5
-rw-r--r--packaging/vulkan-validation-layers.spec66
3 files changed, 72 insertions, 1 deletions
diff --git a/layers/CMakeLists.txt b/layers/CMakeLists.txt
index 06b53ff9b..96a90ce54 100644
--- a/layers/CMakeLists.txt
+++ b/layers/CMakeLists.txt
@@ -420,7 +420,7 @@ if (UNIX)
configure_file(${INPUT_FILE} ${UNIX_INTERMEDIATE_FILE} @ONLY)
- install(FILES ${UNIX_INTERMEDIATE_FILE} DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/vulkan/explicit_layer.d RENAME ${OUTPUT_FILE_FINAL_NAME})
+ install(FILES ${UNIX_INTERMEDIATE_FILE} DESTINATION ${CMAKE_INSTALL_DATADIR}/vulkan/explicit_layer.d RENAME ${OUTPUT_FILE_FINAL_NAME})
endif()
if (WIN32)
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/
+
+