Skip to content

Commit

Permalink
[unity]native_src_il2cpp ci构建编译错误
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Sep 12, 2024
1 parent 5c63332 commit 160ddf0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
4 changes: 4 additions & 0 deletions unity/cli/make.mts
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ async function runPuertsMake(cwd: string, options: BuildOptions) {
console.warn(`${join(cwd, '../Assets/core/upm/Plugins/puerts_il2cpp/unityenv_for_puerts.h')} not existed! using default one`);
cp(join(cwd, '../cli/unityenv_for_puerts.h'), join(cwd, 'Inc/unityenv_for_puerts.h'));
}
if (!existsSync(join(cwd, '../Assets/core/upm/Plugins/puerts_il2cpp/UnityExports4Puerts.h'))) {
console.warn(`${join(cwd, '../Assets/core/upm/Plugins/puerts_il2cpp/UnityExports4Puerts.h')} not existed! using default one`);
cp(join(cwd, '../cli/UnityExports4Puerts.h'), join(cwd, 'Inc/UnityExports4Puerts.h'));
}
}

mkdir('-p', CMAKE_BUILD_PATH);
Expand Down
9 changes: 0 additions & 9 deletions unity/native_src_il2cpp/Inc/JSClassRegister.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,27 +76,18 @@ struct JSENV_API JSClassDefinition
JSPropertyInfo* Variables; //静态属性
FinalizeFunc Finalize;
// int InternalFieldCount;
#if USING_IN_UNREAL_ENGINE
NamedFunctionInfo* ConstructorInfos;
NamedFunctionInfo* MethodInfos;
NamedFunctionInfo* FunctionInfos;
NamedPropertyInfo* PropertyInfos;
NamedPropertyInfo* VariableInfos;
#endif
void* Data = nullptr;
};

#if USING_IN_UNREAL_ENGINE
#define JSClassEmptyDefinition \
{ \
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 \
}
#else
#define JSClassEmptyDefinition \
{ \
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 \
}
#endif

void JSENV_API RegisterJSClass(const JSClassDefinition& ClassDefinition);

Expand Down

0 comments on commit 160ddf0

Please sign in to comment.