Skip to content

Unicorn369/build-YGOServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build-YGOServer

用于 YGOPro2 人机对战服务

支持的平台:

Android | arm64-v8a armeabi-v7a x86

Linux | x64

macOS | arm64 x86_64

Windows | x86 x86_64

如何编译

编译请参考build/build.batbuild/build.sh

对于某些Linux平台需改用libevent/linux/event2/event-config2.h否则程序无法正常运行

交叉编译macOS平台请使用osxcross

使用CMAKE编译

通用(Linux/macOS/Windows)

cd build
cmake ..
cmake --build . --config Release

使用NDK编译(Android)

cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=${NDK_HOME}/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DANDROID_NATIVE_API_LEVEL=21 -DANDROID_TOOLCHAIN=clang
cmake --build . --config Release

构造64位(Windows)

cd build
cmake .. -A"x64"
cmake --build . --config Release

使用MinGW编译(推荐使用clang)

cd build
cmake .. -G"MinGW Makefiles"
cmake --build . --config Release

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published