axmolengine / axmol

Axmol Engine – A Multi-platform Engine for Desktop, XBOX (UWP) and Mobile games. (A fork of Cocos2d-x-4.0)
https://axmol.dev
MIT License
868 stars 195 forks source link

How to disable yasio ? I want to use other socket lib. #1642

Closed dotcomtnu closed 8 months ago

dotcomtnu commented 8 months ago

Hi there, I'm a indie dev, I love using C++ to dev game, thank you for bring Cocos2d-x back in a new generation. I want to use other socket lib, but that lib conflict with some yasio pre defined macro, I can modify the source to temporary fix, but it is good to have option to switch off include yasio lib. Please consider to add cmake option to disable yasio. Thank you.

halx99 commented 8 months ago

The axmol builtin HttpClient and WebSocket based on yasio, so not easy to disable it currently

halx99 commented 8 months ago

BTW: which socket lib do you use?

dotcomtnu commented 8 months ago

BTW: which socket lib do you use?

hi halx99 I'm using libhv for cross platform tcp/ip socket with ssl support and protobuf for data exchange between client/server. Because I'm not using yasio so I will modify yasio pre defined macro to keep libhv as original, Thank you.