[libromdata] Bump the SOVERSION from 2 to 3.

This is needed because, among other things, a lot of functions were moved
from the LibRpBase namespace to the LibRpText namespace.
This commit is contained in:
David Korth 2023-02-19 13:02:55 -05:00
parent 0e176a7d45
commit 52f2947f44
3 changed files with 9 additions and 6 deletions

View File

@ -56,6 +56,8 @@
* New unit test RomHeaderTest that runs `rpcli` against a set of known ROM
headers and reference text and JSON output. Currently has headers for
MegaDrive (including 32X), N64, SNES, DMG, and GameBoyAdvance.
* libromdata's SOVERSION was bumped to 3 due to, among other things, the
librptext split.
## v2.1 (released 2022/12/24)

View File

@ -415,8 +415,8 @@ IF(RP_LIBROMDATA_IS_DLL)
ADD_DEFINITIONS(-DRP_BUILDING_FOR_DLL=1)
# NOTE: Not using the project version here.
# This represents the ABI version.
SET(${PROJECT_NAME}_VERSION 2.0)
SET(${PROJECT_NAME}_SOVERSION 2)
SET(${PROJECT_NAME}_VERSION 3.0)
SET(${PROJECT_NAME}_SOVERSION 3)
IF(MSVC)
# Delay-load sources.
SET(${PROJECT_NAME}-DELAYLOAD_SRC ../libwin32common/DelayLoadHelper.c)
@ -701,8 +701,8 @@ ENDIF(BUILD_TESTING)
IF(${PROJECT_NAME}_LINKAGE STREQUAL SHARED)
IF(WIN32)
# NOTE: Don't install libraries.
# That installs the import library, and romdata-2.dll's
# ABI is not guaranteed to be stable.
# That installs the import library, which we don't
# want to distribute.
INSTALL(TARGETS ${PROJECT_NAME}
RUNTIME DESTINATION "${DIR_INSTALL_EXE}"
LIBRARY DESTINATION "${DIR_INSTALL_DLL}"

View File

@ -188,8 +188,9 @@ IF(RP_LIBROMDATA_IS_DLL AND MSVC)
# Delay-load libromdata if it's a DLL.
# Otherwise, we won't be able to load it if it's in an
# architecture-specific subdirectory.
SET(DL_DEBUG_FLAGS "${DL_DEBUG_FLAGS} /DELAYLOAD:romdata-2d.dll")
SET(DL_RELEASE_FLAGS "${DL_RELEASE_FLAGS} /DELAYLOAD:romdata-2.dll")
# TODO: Global variable with the libromdata SOVERSION?
SET(DL_DEBUG_FLAGS "${DL_DEBUG_FLAGS} /DELAYLOAD:romdata-3d.dll")
SET(DL_RELEASE_FLAGS "${DL_RELEASE_FLAGS} /DELAYLOAD:romdata-3.dll")
SET(CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} ${DL_DEBUG_FLAGS}")
SET(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} ${DL_RELEASE_FLAGS}")