set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
-set (LIBRARIES "vulkan-${MAJOR}")
+if(WIN32)
+ set (LIBRARIES "vulkan-${MAJOR}")
+elseif(UNIX)
+ set (LIBRARIES "vulkan")
+else()
+endif()
if(WIN32)
# For Windows, since 32-bit and 64-bit items can co-exist, we build each in its own build directory.
"${PROJECT_SOURCE_DIR}/icd/common"
)
- link_libraries(${XCB_LIBRARIES} vulkan-${MAJOR} m)
+ link_libraries(${XCB_LIBRARIES} vulkan m)
endif()
if(WIN32)
include_directories (
add_executable(vkjson_unittest vkjson_unittest.cc)
add_executable(vkjson_info vkjson_info.cc)
endif()
+
target_link_libraries(vkjson_unittest vkjson)
-target_link_libraries(vkjson_info vkjson vulkan-${MAJOR})
+
+if(WIN32)
+ target_link_libraries(vkjson_info vkjson vulkan-${MAJOR})
+elseif(UNIX)
+ target_link_libraries(vkjson_info vkjson vulkan)
+else()
+endif()
if (NOT WIN32)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wpointer-arith")
- add_library(vulkan-${MAJOR} SHARED ${LOADER_SRCS})
- set_target_properties(vulkan-${MAJOR} PROPERTIES SOVERSION 0)
- target_link_libraries(vulkan-${MAJOR} -ldl -lpthread -lm)
+ add_library(vulkan SHARED ${LOADER_SRCS})
+ set_target_properties(vulkan PROPERTIES SOVERSION "1" VERSION "1.0.2")
+ target_link_libraries(vulkan -ldl -lpthread -lm)
endif()
## Overview
The Loader implements the main VK library (e.g. "vulkan-1.dll" on Windows and
-"libvulkan-1.so" on Linux). It handles layer management and driver management. The
+"libvulkan.so" on Linux). It handles layer management and driver management. The
loader fully supports multi-gpu operation. As part of this, it dispatches API
calls to the correct driver, and to the correct layers, based on the GPU object
selected by the application.
endif()
endif()
-set (LIBVK "vulkan-${MAJOR}")
+if(WIN32)
+ set (LIBVK "vulkan-${MAJOR}")
+elseif(UNIX)
+ set (LIBVK "vulkan")
+else()
+endif()
add_executable(vk_layer_validation_tests layer_validation_tests.cpp ${COMMON_CPP})
set_target_properties(vk_layer_validation_tests