PROPERTIES SOVERSION "1"
VERSION ${VULKAN_LOADER_VERSION})
target_link_libraries(vulkan PRIVATE ${CMAKE_DL_LIBS} m Threads::Threads)
+ option(TIZEN_PLATFORM "If build for Tizen platform")
+ if (TIZEN_PLATFORM)
+ add_definitions(-DTIZEN_PLATFORM)
+ target_link_libraries(vulkan PRIVATE dlog)
+ endif()
if (LOADER_ENABLE_ADDRESS_SANITIZER)
target_compile_options(vulkan PUBLIC -fsanitize=address)
}
void loader_destroy_generic_list(const struct loader_instance *inst, struct loader_generic_list *list) {
- if (list->count !=0)
- loader_instance_heap_free(inst, list->list);
+ loader_instance_heap_free(inst, list->list);
list->count = 0;
list->capacity = 0;
list->list = NULL;
#include "loader_environment.h"
#include "settings.h"
#include "vk_loader_platform.h"
+#ifdef TIZEN_PLATFORM
+#include <dlog/dlog.h>
+#define LOG_TAG "VK_LOADER"
+#endif
uint32_t g_loader_debug = 0;
OutputDebugString(msg);
OutputDebugString("\n");
#endif
+
+#ifdef TIZEN_PLATFORM
+ if ((msg_type & VULKAN_LOADER_ERROR_BIT) != 0) {
+ dlog_print(DLOG_ERROR, LOG_TAG, "%s %s\n", cmd_line_msg, msg);
+ } else if ((msg_type & VULKAN_LOADER_WARN_BIT) != 0) {
+ dlog_print(DLOG_WARN, LOG_TAG, "%s %s\n", cmd_line_msg, msg);
+ } else if ((msg_type & VULKAN_LOADER_INFO_BIT) != 0) {
+ dlog_print(DLOG_INFO, LOG_TAG, "%s %s\n", cmd_line_msg, msg);
+ } else if ((msg_type & VULKAN_LOADER_DEBUG_BIT) != 0) {
+ dlog_print(DLOG_DEBUG, LOG_TAG, "%s %s\n", cmd_line_msg, msg);
+ }
+#endif
+
}
void loader_log_asm_function_not_supported(const struct loader_instance *inst, VkFlags msg_type, int32_t msg_code,
Name: vulkan-loader
-Version: 1.3.240
+Version: 1.3.268
Release: 0
Summary: Vulkan ICD loader
Group: Graphics & UI Framework/GL
BuildRequires: pkgconfig(wayland-cursor)
BuildRequires: pkgconfig(wayland-server)
BuildRequires: pkgconfig(wayland-egl)
+BuildRequires: pkgconfig(dlog)
%define BUILD_TYPE Debug
%build
cp %{SOURCE1001} .
export CFLAGS="$CFLAGS -w"
-cmake -DCMAKE_BUILD_TYPE=%{BUILD_TYPE} -DBUILD_TESTS=OFF \
+cmake -DCMAKE_BUILD_TYPE=%{BUILD_TYPE} -DBUILD_TESTS=OFF -DTIZEN_PLATFORM=ON \
-DBUILD_WSI_XLIB_SUPPORT=OFF -DBUILD_WSI_XCB_SUPPORT=OFF -DBUILD_WSI_WAYLAND_SUPPORT=ON \
-DCMAKE_INSTALL_LIBDIR=%{_libdir} -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} -DCMAKE_INSTALL_DATADIR=%{_datadir}
make
%files devel
%{_libdir}/pkgconfig/vulkan.pc
%{_libdir}/*.so
-
+%{_libdir}/cmake/*