lldb-soname
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Tue, 8 Feb 2022 20:39:18 +0000 (20:39 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Tue, 8 Feb 2022 20:39:18 +0000 (20:39 +0000)
Gbp-Pq: Name lldb-soname.diff

lldb/source/API/CMakeLists.txt

index 2e33f5c05c1a03aea770dfc17ff88cf8eb2ad430..0c4deef03f5b1a661d7147aa38d3adbef90486b0 100644 (file)
@@ -19,7 +19,12 @@ if(LLDB_ENABLE_LUA)
   set(lldb_lua_wrapper ${lua_bindings_dir}/LLDBWrapLua.cpp)
 endif()
 
-add_lldb_library(liblldb SHARED ${option_framework}
+set(output_name lldb)
+if (CMAKE_SYSTEM_NAME MATCHES "Windows")
+  set(output_name liblldb)
+endif()
+
+add_lldb_library(liblldb SHARED OUTPUT_NAME ${output_name} SONAME
   SBAddress.cpp
   SBAttachInfo.cpp
   SBBlock.cpp
@@ -162,7 +167,7 @@ endif()
 
 set_target_properties(liblldb
   PROPERTIES
-  VERSION ${LLDB_VERSION}
+  VERSION 1
 )
 
 if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows")
@@ -181,12 +186,12 @@ if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows")
   set_target_properties(liblldb_exports PROPERTIES FOLDER "lldb misc")
 endif()
 
-if (NOT MSVC)
-  set_target_properties(liblldb
-    PROPERTIES
-    OUTPUT_NAME lldb
-  )
-endif()
+#if (NOT MSVC)
+#  set_target_properties(liblldb
+#    PROPERTIES
+#    OUTPUT_NAME lldb
+#    )
+#endif()
 
 # The Clang expression parser in LLDB requires the Clang resource directory to function.
 if (TARGET clang-resource-headers)