Compare commits

...
2 Commits
Author SHA1 Message Date
wkpandGitHub 7903ee35a3 feat:Mac support CC_EDITOR V8 config (#219) 2022-02-08 11:10:51 +08:00
8e1e22ce0e refactor v8 config for cc_editor (#217)
Co-authored-by: minggo <xiaoming.zhang@chukong-inc.com>
2022-02-08 11:10:23 +08:00
2 changed files with 15 additions and 12 deletions
+10 -8
View File
@@ -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)
+5 -4
View File
@@ -166,8 +166,9 @@ set_target_properties(tcmalloc PROPERTIES
set(se_libs_name)
if(USE_SE_V8)
if(CC_EDITOR)
message(VERBOSE "CC_EDITOR USE V8 FROM NODEJS")
elseif(USE_SE_V8)
add_library(v8 SHARED IMPORTED GLOBAL)
set_target_properties(v8 PROPERTIES
IMPORTED_LOCATION ${CMAKE_CURRENT_LIST_DIR}/libs/v8.dll
@@ -194,8 +195,8 @@ if(USE_SE_V8)
)
set(se_libs_name v8)
elseif(NOT CC_EDITOR)
message(FATAL_ERROR "Only V8 is supported!")
else()
message(FATAL_ERROR "Only V8 is supported!")
endif()
############################# glslang #############################