Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1564 from advancedtelematic/fix/dynlib-name
Browse files Browse the repository at this point in the history
Give better names to shared libraries
  • Loading branch information
lbonn authored Feb 19, 2020
2 parents 1b3a1f0 + 35fe41a commit be85b3a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ make

NOTE: The `--recursive` flag in the `git clone` command is needed to recursively clone all the *git submodules*.

After the build is finished, you'll find the client library at the following location: `$\{PROJECT_ROOT}/build/src/libaktualizr/libaktualizr_lib.so`.
After the build is finished, you'll find the client library at the following location: `$\{PROJECT_ROOT}/build/src/libaktualizr/libaktualizr.so`.

== Integrating libaktualizr into your application

Expand Down
1 change: 1 addition & 0 deletions src/aktualizr_secondary/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ add_library(aktualizr_secondary_lib SHARED
$<TARGET_OBJECTS:logging>
$<TARGET_OBJECTS:uptane>
$<TARGET_OBJECTS:campaign>)
set_target_properties(aktualizr_secondary_lib PROPERTIES LIBRARY_OUTPUT_NAME aktualizr_secondary)
target_link_libraries(aktualizr_secondary_lib aktualizr-posix ${AKTUALIZR_EXTERNAL_LIBS})

if (BUILD_ISOTP)
Expand Down
1 change: 1 addition & 0 deletions src/libaktualizr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ add_library(aktualizr_lib SHARED
$<TARGET_OBJECTS:storage>
$<TARGET_OBJECTS:uptane>)
target_link_libraries(aktualizr_lib ${AKTUALIZR_EXTERNAL_LIBS})
set_target_properties(aktualizr_lib PROPERTIES LIBRARY_OUTPUT_NAME aktualizr)
install(TARGETS aktualizr_lib LIBRARY DESTINATION lib COMPONENT aktualizr)

if (BUILD_ISOTP)
Expand Down
1 change: 1 addition & 0 deletions src/sota_tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ if (BUILD_SOTA_TOOLS)
set(GARAGE_TOOLS_VERSION "${AKTUALIZR_VERSION}")
set_property(SOURCE garage_tools_version.cc PROPERTY COMPILE_DEFINITIONS GARAGE_TOOLS_VERSION="${GARAGE_TOOLS_VERSION}")
add_library(sota_tools_lib SHARED ${SOTA_TOOLS_LIB_SRC})
set_target_properties(sota_tools_lib PROPERTIES LIBRARY_OUTPUT_NAME sota_tools)
target_include_directories(sota_tools_lib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${PROJECT_SOURCE_DIR} ${GLIB2_INCLUDE_DIRS})

# we link with aktualizr static lib here, to bundle everything in sota_tools_lib
Expand Down

0 comments on commit be85b3a

Please sign in to comment.