Skip to content

Commit

Permalink
Remove shared nets lib building
Browse files Browse the repository at this point in the history
  • Loading branch information
cfnptr committed Oct 18, 2024
1 parent 7f7308c commit 48a6708
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
9 changes: 0 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ project(nets VERSION 2.0.3 LANGUAGES C
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED TRUE)

option(NETS_BUILD_SHARED "Build Nets shared library" ON)
option(NETS_BUILD_EXAMPLES "Build Nets usage examples" ON)
option(NETS_USE_OPENSSL "Use OpenSSL for secure communication" ON)
option(NETS_ALLOW_DEPRECATED_SSL "Allow deprecated OpenSSL functions" OFF)
Expand Down Expand Up @@ -93,14 +92,6 @@ add_library(nets-static STATIC ${NETS_SOURCES})
target_link_libraries(nets-static PUBLIC ${NETS_LINK_LIBRARIES})
target_include_directories(nets-static PUBLIC ${NETS_INCLUDE_DIRECTORIES})

if(NETS_BUILD_SHARED)
add_library(nets-shared SHARED ${NETS_SOURCES})
set_target_properties(nets-shared PROPERTIES OUTPUT_NAME "nets"
WINDOWS_EXPORT_ALL_SYMBOLS ON POSITION_INDEPENDENT_CODE ON)
target_link_libraries(nets-shared PUBLIC ${NETS_LINK_LIBRARIES})
target_include_directories(nets-shared PUBLIC ${NETS_INCLUDE_DIRECTORIES})
endif()

if(NETS_BUILD_EXAMPLES)
add_executable(nets-datagram-example examples/datagram_example.c)
target_link_libraries(nets-datagram-example PRIVATE nets-static)
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ Use building [instructions](BUILDING.md) to install all required tools and libra

| Name | Description | Default value |
|---------------------------|--------------------------------------|---------------|
| NETS_BUILD_SHARED | Build Nets shared library | `ON` |
| NETS_BUILD_EXAMPLES | Build Nets usage examples | `ON` |
| NETS_USE_OPENSSL | Use OpenSSL for secure communication | `ON` |
| NETS_ALLOW_DEPRECATED_SSL | Allow deprecated OpenSSL functions | `OFF` |
Expand Down

0 comments on commit 48a6708

Please sign in to comment.