Skip to content

Commit

Permalink
OpenSSL: add command and options to compile with emscripten (#590)
Browse files Browse the repository at this point in the history
Co-authored-by: r.nowak <r.nowak@magnificgames.com>
  • Loading branch information
Dargun and r.nowak committed Jul 4, 2022
1 parent ee29a85 commit 08b2aa3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/projects/OpenSSL/schemes/url_sha1_openssl.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ elseif(MINGW)
else()
set(configure_command "./Configure" mingw)
endif()
elseif(EMSCRIPTEN)
set(configure_command AR=${CMAKE_AR} RANLIB=${CMAKE_RANLIB} "./config")
else()
set(configure_command "./config")
endif()
Expand Down Expand Up @@ -106,6 +108,9 @@ elseif(RASPBERRY_PI)
set(configure_opts "linux-generic32")
elseif(OPENWRT)
set(configure_opts "linux-generic32" "no-async")
elseif(EMSCRIPTEN)
# disable features that will not work with emscripten
set(configure_opts "no-engine" "no-dso" "no-asm" "no-shared" "no-sse2" "no-srtp")
endif()

string(REGEX REPLACE "^ " "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
Expand Down

0 comments on commit 08b2aa3

Please sign in to comment.