Compare commits
9
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6d39435119 | ||
|
|
9ca49d770a | ||
|
|
8fef1505b4 | ||
|
|
772894d6a0 | ||
|
|
d30c066419 | ||
|
|
ab15deb121 | ||
|
|
0fd7ff8de9 | ||
|
|
651482be4f | ||
|
|
b701539f22 |
@@ -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()
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
@@ -21,11 +21,4 @@
|
||||
%include <javascriptinit.swg>
|
||||
|
||||
#define %module_macro(m) %feature("module_macro","m")
|
||||
#define %release_returned_cpp_object_in_gc(method) %feature("release_returned_cpp_object_in_gc", "1") method
|
||||
|
||||
%define %virtual_inherit(klass)
|
||||
%feature("virtual_inherit", "1") klass;
|
||||
%typemap(in) klass *self
|
||||
%{ $1 = SE_THIS_OBJECT_VIRTUAL<$*ltype, cc::VirtualInheritBase>(s);
|
||||
if (nullptr == $1) return true;%}
|
||||
%enddef
|
||||
#define %release_returned_cpp_object_in_gc(method) %feature("release_returned_cpp_object_in_gc", "1") method
|
||||
@@ -22,7 +22,8 @@ static bool $jswrapper(se::State& s) // NOLINT(readability-identifier-naming)
|
||||
$js_check_arg_count
|
||||
$jslocals
|
||||
$jscode
|
||||
$js_set_private_object
|
||||
auto *ptr = JSB_MAKE_PRIVATE_OBJECT_WITH_INSTANCE(result);
|
||||
s.thisObject()->setPrivateObject(ptr);
|
||||
return true;
|
||||
}
|
||||
SE_BIND_CTOR($jswrapper, __jsb_$jsmangledname_class, js_delete_$jsdtor)%}
|
||||
@@ -61,7 +62,8 @@ static bool $jswrapper(se::State& s) // NOLINT(readability-identifier-naming)
|
||||
CC_UNUSED bool ok = true;
|
||||
$jslocals
|
||||
$jscode
|
||||
$js_set_private_object
|
||||
auto *ptr = JSB_MAKE_PRIVATE_OBJECT_WITH_INSTANCE(result);
|
||||
s.thisObject()->setPrivateObject(ptr);
|
||||
return true;
|
||||
}
|
||||
%}
|
||||
@@ -84,20 +86,19 @@ static bool $jswrapper(se::State& s) // NOLINT(readability-identifier-naming)
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* js_dtor: template for a destructor wrapper
|
||||
* - $classname_mangled: mangled class name
|
||||
* - $jsmangledname: mangled class name
|
||||
* - $jstype: class type
|
||||
* ----------------------------------------------------------------------------- */
|
||||
%fragment ("js_dtor", "templates")
|
||||
%{
|
||||
static bool $jswrapper(se::State& s) {
|
||||
cc::invokeOnGarbageCollectMethod<$jsclass_type>(s);
|
||||
return true;
|
||||
}
|
||||
SE_BIND_FINALIZE_FUNC($jswrapper) %}
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* js_dtor: template for a destructor wrapper
|
||||
* - $classname_mangled: mangled class name
|
||||
* - $jsmangledname: mangled class name
|
||||
* - $jstype: class type
|
||||
* - ${destructor_action}: The custom destructor action to invoke.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
@@ -105,7 +106,6 @@ SE_BIND_FINALIZE_FUNC($jswrapper) %}
|
||||
%{
|
||||
static bool $jswrapper(se::State& s)
|
||||
{
|
||||
cc::invokeOnGarbageCollectMethod<$jsclass_type>(s);
|
||||
return true;
|
||||
}
|
||||
SE_BIND_FINALIZE_FUNC($jswrapper) %}
|
||||
|
||||
Binary file not shown.
@@ -21,11 +21,4 @@
|
||||
%include <javascriptinit.swg>
|
||||
|
||||
#define %module_macro(m) %feature("module_macro","m")
|
||||
#define %release_returned_cpp_object_in_gc(method) %feature("release_returned_cpp_object_in_gc", "1") method
|
||||
|
||||
%define %virtual_inherit(klass)
|
||||
%feature("virtual_inherit", "1") klass;
|
||||
%typemap(in) klass *self
|
||||
%{ $1 = SE_THIS_OBJECT_VIRTUAL<$*ltype, cc::VirtualInheritBase>(s);
|
||||
if (nullptr == $1) return true;%}
|
||||
%enddef
|
||||
#define %release_returned_cpp_object_in_gc(method) %feature("release_returned_cpp_object_in_gc", "1") method
|
||||
@@ -22,7 +22,8 @@ static bool $jswrapper(se::State& s) // NOLINT(readability-identifier-naming)
|
||||
$js_check_arg_count
|
||||
$jslocals
|
||||
$jscode
|
||||
$js_set_private_object
|
||||
auto *ptr = JSB_MAKE_PRIVATE_OBJECT_WITH_INSTANCE(result);
|
||||
s.thisObject()->setPrivateObject(ptr);
|
||||
return true;
|
||||
}
|
||||
SE_BIND_CTOR($jswrapper, __jsb_$jsmangledname_class, js_delete_$jsdtor)%}
|
||||
@@ -61,7 +62,8 @@ static bool $jswrapper(se::State& s) // NOLINT(readability-identifier-naming)
|
||||
CC_UNUSED bool ok = true;
|
||||
$jslocals
|
||||
$jscode
|
||||
$js_set_private_object
|
||||
auto *ptr = JSB_MAKE_PRIVATE_OBJECT_WITH_INSTANCE(result);
|
||||
s.thisObject()->setPrivateObject(ptr);
|
||||
return true;
|
||||
}
|
||||
%}
|
||||
@@ -84,20 +86,19 @@ static bool $jswrapper(se::State& s) // NOLINT(readability-identifier-naming)
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* js_dtor: template for a destructor wrapper
|
||||
* - $classname_mangled: mangled class name
|
||||
* - $jsmangledname: mangled class name
|
||||
* - $jstype: class type
|
||||
* ----------------------------------------------------------------------------- */
|
||||
%fragment ("js_dtor", "templates")
|
||||
%{
|
||||
static bool $jswrapper(se::State& s) {
|
||||
cc::invokeOnGarbageCollectMethod<$jsclass_type>(s);
|
||||
return true;
|
||||
}
|
||||
SE_BIND_FINALIZE_FUNC($jswrapper) %}
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* js_dtor: template for a destructor wrapper
|
||||
* - $classname_mangled: mangled class name
|
||||
* - $jsmangledname: mangled class name
|
||||
* - $jstype: class type
|
||||
* - ${destructor_action}: The custom destructor action to invoke.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
@@ -105,7 +106,6 @@ SE_BIND_FINALIZE_FUNC($jswrapper) %}
|
||||
%{
|
||||
static bool $jswrapper(se::State& s)
|
||||
{
|
||||
cc::invokeOnGarbageCollectMethod<$jsclass_type>(s);
|
||||
return true;
|
||||
}
|
||||
SE_BIND_FINALIZE_FUNC($jswrapper) %}
|
||||
|
||||
@@ -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
|
||||
|
||||
+4
-2
@@ -139,5 +139,7 @@ glslang (Built using https://github.com/YunHsiao/glslang/tree/build)
|
||||
linux: 11.5.0
|
||||
openharmony:11.5.0 (commit: 1978c76)
|
||||
|
||||
swig ( Built using https://github.com/cocos/swig/tree/cocos-se, executable files are downloaded from https://github.com/cocos/swig/releases/tag/cocos-v1.1.7 )
|
||||
all: cocos-v1.1.7 (commit: 7969da2)
|
||||
swig ( Built using https://github.com/cocos/swig/tree/cocos-se, executable files are downloaded from https://github.com/cocos/swig/releases/tag/cocos-v1.1.6 )
|
||||
win64: cocos-v1.1.6 (commit: f52be17)
|
||||
mac: cocos-v1.1.6 (commit: f52be17)
|
||||
linux: cocos-v1.1.6 (commit: f52be17)
|
||||
|
||||
Binary file not shown.
@@ -21,11 +21,4 @@
|
||||
%include <javascriptinit.swg>
|
||||
|
||||
#define %module_macro(m) %feature("module_macro","m")
|
||||
#define %release_returned_cpp_object_in_gc(method) %feature("release_returned_cpp_object_in_gc", "1") method
|
||||
|
||||
%define %virtual_inherit(klass)
|
||||
%feature("virtual_inherit", "1") klass;
|
||||
%typemap(in) klass *self
|
||||
%{ $1 = SE_THIS_OBJECT_VIRTUAL<$*ltype, cc::VirtualInheritBase>(s);
|
||||
if (nullptr == $1) return true;%}
|
||||
%enddef
|
||||
#define %release_returned_cpp_object_in_gc(method) %feature("release_returned_cpp_object_in_gc", "1") method
|
||||
@@ -22,7 +22,8 @@ static bool $jswrapper(se::State& s) // NOLINT(readability-identifier-naming)
|
||||
$js_check_arg_count
|
||||
$jslocals
|
||||
$jscode
|
||||
$js_set_private_object
|
||||
auto *ptr = JSB_MAKE_PRIVATE_OBJECT_WITH_INSTANCE(result);
|
||||
s.thisObject()->setPrivateObject(ptr);
|
||||
return true;
|
||||
}
|
||||
SE_BIND_CTOR($jswrapper, __jsb_$jsmangledname_class, js_delete_$jsdtor)%}
|
||||
@@ -61,7 +62,8 @@ static bool $jswrapper(se::State& s) // NOLINT(readability-identifier-naming)
|
||||
CC_UNUSED bool ok = true;
|
||||
$jslocals
|
||||
$jscode
|
||||
$js_set_private_object
|
||||
auto *ptr = JSB_MAKE_PRIVATE_OBJECT_WITH_INSTANCE(result);
|
||||
s.thisObject()->setPrivateObject(ptr);
|
||||
return true;
|
||||
}
|
||||
%}
|
||||
@@ -84,20 +86,19 @@ static bool $jswrapper(se::State& s) // NOLINT(readability-identifier-naming)
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* js_dtor: template for a destructor wrapper
|
||||
* - $classname_mangled: mangled class name
|
||||
* - $jsmangledname: mangled class name
|
||||
* - $jstype: class type
|
||||
* ----------------------------------------------------------------------------- */
|
||||
%fragment ("js_dtor", "templates")
|
||||
%{
|
||||
static bool $jswrapper(se::State& s) {
|
||||
cc::invokeOnGarbageCollectMethod<$jsclass_type>(s);
|
||||
return true;
|
||||
}
|
||||
SE_BIND_FINALIZE_FUNC($jswrapper) %}
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* js_dtor: template for a destructor wrapper
|
||||
* - $classname_mangled: mangled class name
|
||||
* - $jsmangledname: mangled class name
|
||||
* - $jstype: class type
|
||||
* - ${destructor_action}: The custom destructor action to invoke.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
@@ -105,7 +106,6 @@ SE_BIND_FINALIZE_FUNC($jswrapper) %}
|
||||
%{
|
||||
static bool $jswrapper(se::State& s)
|
||||
{
|
||||
cc::invokeOnGarbageCollectMethod<$jsclass_type>(s);
|
||||
return true;
|
||||
}
|
||||
SE_BIND_FINALIZE_FUNC($jswrapper) %}
|
||||
|
||||
Reference in New Issue
Block a user