fix: solve cmake issues

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
Jason Dellaluce 2023-08-04 16:23:23 +00:00 committed by poiana
parent 179b191f70
commit 78e2ddc63e
2 changed files with 9 additions and 6 deletions

View File

@ -189,17 +189,19 @@ endif()
include(cxxopts)
# One TBB
if (NOT EMSCRIPTEN)
include(tbb)
endif()
# One TBB
if (CMAKE_SYSTEM_NAME MATCHES "Linux" AND NOT MINIMAL_BUILD)
if (NOT MINIMAL_BUILD)
include(zlib)
include(cares)
include(protobuf)
# gRPC
include(grpc)
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
include(cares)
include(protobuf)
# gRPC
include(grpc)
endif()
endif()
# Installation

View File

@ -170,6 +170,7 @@ if (EMSCRIPTEN)
target_link_options(falco PRIVATE "-sALLOW_MEMORY_GROWTH=1")
target_link_options(falco PRIVATE "-sDISABLE_EXCEPTION_CATCHING=0")
target_link_options(falco PRIVATE "-sMODULARIZE=1")
target_link_options(falco PRIVATE "-sEXPORT_ES6=1")
target_link_options(falco PRIVATE "-sEXPORTED_RUNTIME_METHODS=['FS', 'callMain']")
target_link_options(falco PRIVATE "-sEXPORTED_FUNCTIONS=['_main','_htons','_ntohs']")
endif()