diff options
| author | Jeremy Hayes <jeremy@lunarg.com> | 2016-02-08 12:14:51 -0700 |
|---|---|---|
| committer | Jeremy Hayes <jeremy@lunarg.com> | 2016-02-08 14:37:10 -0700 |
| commit | be930b28f8750b3742fb0d417e51b1c6b6227746 (patch) | |
| tree | 2ca056e126237e1d79671f63cbb377468975496b | |
| parent | da976b8c70bd34ccd34850c3945a1fa0f762a9b7 (diff) | |
| download | usermoji-be930b28f8750b3742fb0d417e51b1c6b6227746.tar.xz | |
linux: use linux naming conventions
| -rw-r--r-- | demos/CMakeLists.txt | 9 | ||||
| -rw-r--r-- | loader/CMakeLists.txt | 6 | ||||
| -rw-r--r-- | loader/README.md | 2 |
3 files changed, 11 insertions, 6 deletions
diff --git a/demos/CMakeLists.txt b/demos/CMakeLists.txt index ad0c0697..ebc406b7 100644 --- a/demos/CMakeLists.txt +++ b/demos/CMakeLists.txt @@ -10,7 +10,12 @@ file(COPY ${TEXTURES} DESTINATION ${CMAKE_BINARY_DIR}/demos) 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. @@ -71,7 +76,7 @@ if(NOT WIN32) "${PROJECT_SOURCE_DIR}/icd/common" ) - link_libraries(${XCB_LIBRARIES} vulkan-${MAJOR} m) + link_libraries(${XCB_LIBRARIES} vulkan m) endif() if(WIN32) include_directories ( diff --git a/loader/CMakeLists.txt b/loader/CMakeLists.txt index 90f1af4f..b14e89df 100644 --- a/loader/CMakeLists.txt +++ b/loader/CMakeLists.txt @@ -44,7 +44,7 @@ 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() diff --git a/loader/README.md b/loader/README.md index bf81c200..84cdfde3 100644 --- a/loader/README.md +++ b/loader/README.md @@ -2,7 +2,7 @@ ## 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. |
