From 56bed68decd8564a2dfe7ad39c31eb2bcbea8617 Mon Sep 17 00:00:00 2001 From: "PC-202108251334\\dogeFu" <609075410@qq.com> Date: Fri, 28 Jan 2022 10:08:08 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9AMac=20support=20CC=5FEDITOR=20V8?= =?UTF-8?q?=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mac/CMakeLists.txt | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/mac/CMakeLists.txt b/mac/CMakeLists.txt index d578ccac..29b34da0 100644 --- a/mac/CMakeLists.txt +++ b/mac/CMakeLists.txt @@ -80,14 +80,16 @@ set_target_properties(GLESv2 PROPERTIES set(se_libs_name) -if(USE_SE_V8) - list(APPEND se_libs_name - v8_monolith - uv - ) - if(USE_V8_DEBUGGER) - list(APPEND se_libs_name inspector) - endif() +if(CC_EDITOR) + message(STATUS "CC_EDITOR USE V8 FROM NODEJS") +elseif(USE_SE_V8) + list(APPEND se_libs_name + v8_monolith + uv + ) + if(USE_V8_DEBUGGER) + list(APPEND se_libs_name inspector) + endif() endif() # if(USE_SOCKETS)