Skip to content

Commit

Permalink
Refactor folder structure (#13)
Browse files Browse the repository at this point in the history
* try a folder structure

* update gitattributes

* commit openssl-3.2.1

* clean openssl-3.2.1
  • Loading branch information
Thomas-mcinally authored Mar 24, 2024
1 parent 3cce5d3 commit 19f8a86
Show file tree
Hide file tree
Showing 5,141 changed files with 11 additions and 95 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
openssl-3.2.1/** linguist-vendored
libs/** linguist-vendored
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ build/
todo.txt
.vscode/
.DS_Store
openssl-3.2.1/
*.json
14 changes: 7 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin")
add_custom_target(openssl
COMMAND ./Configure no-shared no-asm no-zlib no-psk no-srp ${OPENSSL_CONFIGURE_TRIPLET}
COMMAND make
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/openssl-3.2.1
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/libs/openssl-3.2.1
)
add_dependencies(stockprice openssl)
target_link_libraries(stockprice ${CMAKE_SOURCE_DIR}/openssl-3.2.1/libcrypto.a ${CMAKE_SOURCE_DIR}/openssl-3.2.1/libssl.a)
target_link_libraries(stockprice ${CMAKE_SOURCE_DIR}/libs/openssl-3.2.1/libcrypto.a ${CMAKE_SOURCE_DIR}/libs/openssl-3.2.1/libssl.a)
elseif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
if(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "AMD64")
set(OPENSSL_CONFIGURE_TRIPLET "VC-WIN64A")
Expand All @@ -35,20 +35,20 @@ elseif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
add_custom_target(openssl
COMMAND perl Configure no-shared no-asm no-zlib no-psk no-srp ${OPENSSL_CONFIGURE_TRIPLET}
COMMAND nmake
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/openssl-3.2.1
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/libs/openssl-3.2.1
)
add_dependencies(stockprice openssl)
target_link_libraries(stockprice ${CMAKE_SOURCE_DIR}/openssl-3.2.1/libcrypto.lib ${CMAKE_SOURCE_DIR}/openssl-3.2.1/libssl.lib)
target_link_libraries(stockprice ${CMAKE_SOURCE_DIR}/libs/openssl-3.2.1/libcrypto.lib ${CMAKE_SOURCE_DIR}/libs/openssl-3.2.1/libssl.lib)
elseif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux")
add_custom_target(openssl
COMMAND ./config
COMMAND make
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/openssl-3.2.1
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/libs/openssl-3.2.1
)
add_dependencies(stockprice openssl)
target_link_libraries(stockprice -Wl,--whole-archive ${CMAKE_SOURCE_DIR}/openssl-3.2.1/libcrypto.a ${CMAKE_SOURCE_DIR}/openssl-3.2.1/libssl.a -Wl,--no-whole-archive -static)
target_link_libraries(stockprice -Wl,--whole-archive ${CMAKE_SOURCE_DIR}/libs/openssl-3.2.1/libcrypto.a ${CMAKE_SOURCE_DIR}/libs/openssl-3.2.1/libssl.a -Wl,--no-whole-archive -static)
else()
message(FATAL_ERROR "Unsupported system: ${CMAKE_HOST_SYSTEM_NAME}")
endif()

include_directories(${CMAKE_SOURCE_DIR}/openssl-3.2.1/include)
include_directories(${CMAKE_SOURCE_DIR}/libs/openssl-3.2.1/include)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 19f8a86

Please sign in to comment.