Skip to content

Commit

Permalink
Inline libtls implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed May 31, 2024
1 parent 52bb19f commit c93ddad
Show file tree
Hide file tree
Showing 5 changed files with 264 additions and 108 deletions.
7 changes: 4 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[submodule "vendor/libtls"]
path = vendor/libtls
url = ../../holepunchto/libtls.git
[submodule "vendor/boringssl"]
path = vendor/boringssl
url = ../../google/boringssl.git
shallow = true
16 changes: 13 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,18 @@ project(bare_tls C CXX)

include(bare)

if(NOT TARGET tls)
add_subdirectory(vendor/libtls EXCLUDE_FROM_ALL)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

if(NOT TARGET ssl)
if(MSVC)
set(OPENSSL_NO_ASM ON)
endif()

if(WIN32)
add_definitions(-DWIN32_LEAN_AND_MEAN)
endif()

add_subdirectory(vendor/boringssl EXCLUDE_FROM_ALL)
endif()

add_bare_module(bare_tls)
Expand All @@ -19,5 +29,5 @@ target_sources(
target_link_libraries(
${bare_tls}
PUBLIC
tls_static
ssl
)
Loading

0 comments on commit c93ddad

Please sign in to comment.