support dynamic library loading

This commit is contained in:
Patrice Jiang 2023-04-13 12:10:49 +08:00
parent b701539f22
commit 651482be4f
1 changed files with 5 additions and 2 deletions

View File

@ -84,7 +84,8 @@ if(USE_SE_V8)
IMPORTED_LOCATION ${platform_spec_path}/v8/libinspector.a IMPORTED_LOCATION ${platform_spec_path}/v8/libinspector.a
INTERFACE_INCLUDE_DIRECTORIES ${platform_spec_path}/include/v8 INTERFACE_INCLUDE_DIRECTORIES ${platform_spec_path}/include/v8
) )
set(se_libs_name v8_monolith v8_inspector) set(se_libs_name v8_monolith)
set(se_libs_include ${platform_spec_path}/include/v8)
endif() endif()
if(USE_WEBSOCKET_SERVER) if(USE_WEBSOCKET_SERVER)
@ -160,7 +161,9 @@ endif()
set(ZLIB z) set(ZLIB z)
if(NOT USE_MODULES) if(NOT USE_MODULES)
list(APPEND CC_EXTERNAL_LIBS ${ZLIB} ${se_libs_name}) list(APPEND CC_EXTERNAL_LIBS ${ZLIB}
${se_libs_name}
)
endif() endif()