add JSON and crypto APIs with sandbox protection (milestone 6 complete)
This commit is contained in:
@@ -16,6 +16,8 @@ add_library(mosis-sandbox STATIC
|
||||
../src/main/cpp/sandbox/rate_limiter.cpp
|
||||
../src/main/cpp/sandbox/path_sandbox.cpp
|
||||
../src/main/cpp/sandbox/timer_manager.cpp
|
||||
../src/main/cpp/sandbox/json_api.cpp
|
||||
../src/main/cpp/sandbox/crypto_api.cpp
|
||||
)
|
||||
target_include_directories(mosis-sandbox PUBLIC
|
||||
../src/main/cpp/sandbox
|
||||
@@ -23,7 +25,12 @@ target_include_directories(mosis-sandbox PUBLIC
|
||||
)
|
||||
target_link_libraries(mosis-sandbox PUBLIC
|
||||
${LUA_LIBRARIES}
|
||||
nlohmann_json::nlohmann_json
|
||||
)
|
||||
# Windows BCrypt for crypto API
|
||||
if(WIN32)
|
||||
target_link_libraries(mosis-sandbox PUBLIC bcrypt)
|
||||
endif()
|
||||
|
||||
# Test executable
|
||||
add_executable(sandbox-test
|
||||
|
||||
Reference in New Issue
Block a user