dont make cocos definitions sources for windows

This commit is contained in:
alk 2023-03-18 22:24:46 +03:00 committed by GitHub
parent e8c03fea09
commit 92f11b0f99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -164,6 +164,11 @@ std::string generateBindingSource(Root& root) {
} else if (auto fn = f.get_as<FunctionBindField>()) {
if (codegen::getStatus(f) != BindStatus::NeedsBinding)
continue;
// no cocos2d definitions on windows
if (codegen::platform == Platform::Windows && f.parent.rfind("cocos2d::", 0) == 0) {
continue;
}
char const* used_declare_format;