diff --git a/android/CMakeLists.txt b/android/CMakeLists.txt index e179f9fcd..64b18a510 100644 --- a/android/CMakeLists.txt +++ b/android/CMakeLists.txt @@ -84,7 +84,8 @@ if(USE_SE_V8) IMPORTED_LOCATION ${platform_spec_path}/v8/libinspector.a 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() if(USE_WEBSOCKET_SERVER) @@ -160,7 +161,9 @@ endif() set(ZLIB z) if(NOT USE_MODULES) - list(APPEND CC_EXTERNAL_LIBS ${ZLIB} ${se_libs_name}) + list(APPEND CC_EXTERNAL_LIBS ${ZLIB} + ${se_libs_name} + ) endif() diff --git a/sources/CMakeLists.txt b/sources/CMakeLists.txt index 4f5e942a9..fabeb3c02 100644 --- a/sources/CMakeLists.txt +++ b/sources/CMakeLists.txt @@ -61,7 +61,7 @@ add_definitions(-DCC_SWAPPY_ENABLED) endif() -if(ANDROID) +if(ANDROID AND (NOT SURFACE_LESS_SERVICE)) set(CC_GAME_ACTIVITY_SOURCES ${CMAKE_CURRENT_LIST_DIR}/android-gamesdk/GameActivity/game-activity/include/game-activity/GameActivity.cpp ${CMAKE_CURRENT_LIST_DIR}/android-gamesdk/GameActivity/game-activity/include/game-activity/system_utils.cpp