Compare commits

...
7 Commits
Author SHA1 Message Date
PPandGitHub 680cd32d00 add wasm.fallback module (#369) 2023-06-21 16:09:53 +08:00
zhakesiandGitHub dbc64aaa87 fix spine wasm with bad performance (#368) 2023-06-19 23:26:31 +08:00
PPandGitHub 246787c1e7 Revert "compress spine.asm.js for Taobao platform (#366)" (#367)
This reverts commit c96e5cf50d.
2023-06-19 15:32:02 +08:00
PPandGitHub c96e5cf50d compress spine.asm.js for Taobao platform (#366) 2023-06-19 15:09:48 +08:00
PPandGitHub 8e867c50ca remove spine.js (#365) 2023-06-19 14:46:45 +08:00
PPandGitHub 9d201cd6d3 add spine js mem (#364)
update
2023-06-16 14:14:17 +08:00
qiuguohuaandGitHub 712e10655a Fix harmonyos platform compilation failure. (#356) (#363) 2023-06-14 10:28:03 +08:00
10 changed files with 89 additions and 24 deletions
+17 -1
View File
@@ -1,7 +1,23 @@
declare module 'external:emscripten/*.wasm' {
/**
* This is a url relative from build output chunk.
* This is a wasm url relative from build output chunk.
*/
const wasmPath: string;
export default wasmPath;
}
declare module 'external:emscripten/*.wasm.fallback' {
/**
* This is a wasm fallback url relative from build output chunk.
*/
const wasmFallbackPath: string;
export default wasmFallbackPath;
}
declare module 'external:emscripten/*.js.mem' {
/**
* This is a js.mem url relative from build output chunk.
*/
const jsMemPath: string;
export default jsMemPath;
}
File diff suppressed because one or more lines are too long
+5 -4
View File
@@ -2,7 +2,11 @@ declare module 'external:emscripten/spine/spine.asm.js' {
export default SpineWasm;
}
declare module 'external:emscripten/spine/spine.js' {
declare module 'external:emscripten/spine/spine.wasm.js' {
export default SpineWasm;
}
declare module 'external:emscripten/spine/spine.wasm.fallback.js' {
export default SpineWasm;
}
@@ -10,10 +14,7 @@ declare module 'external:emscripten/spine/spine.js' {
declare function SpineWasm (moduleOptions?: any): Promise<void>;
declare namespace SpineWasm {
type ptr = number;
interface instance {
spine: any;
memory: any;
spineWasmInit(): void;
spineWasmDestroy(): void;
}
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+4 -2
View File
@@ -143,7 +143,8 @@ add_library(glslang-default-resource-limits STATIC IMPORTED GLOBAL)
set_target_properties(glslang-default-resource-limits PROPERTIES
IMPORTED_LOCATION ${ohos_lib_dir}/libglslang-default-resource-limits.a
)
set(glslang_libs_name glslang OGLCompiler OSDependent SPIRV glslang-default-resource-limits MachineIndependent GenericCodeGen)
# Unable to link MachineIndependent with GenericCodeGen
set(glslang_libs_name glslang OGLCompiler OSDependent SPIRV glslang-default-resource-limits)
if(USE_PHYSICS_PHYSX)
set(PhysXSDK PhysXCooking PhysXCharacterKinematic PhysXVehicle PhysXExtensions PhysX PhysXPvdSDK PhysXCommon PhysXFoundation)
@@ -214,7 +215,8 @@ list(APPEND CC_EXTERNAL_INCLUDES
${platform_spec_path}/include/v8
${platform_spec_path}/include/sqlite
${platform_spec_path}/include/png16
${platform_spec_path}/include/uv
# Will conflict with the header file of harmonyos' standard library (error.h).
# ${platform_spec_path}/include/uv
)
#TODO: remove in future version