Commit 09d16cf4 authored by mercury233's avatar mercury233

update readme

parent 18546127
...@@ -12,6 +12,5 @@ ...@@ -12,6 +12,5 @@
/gframe/ygopro.ico /gframe/ygopro.ico
/gframe/ygopro.rc /gframe/ygopro.rc
/gframe/ygopro.aps /gframe/ygopro.aps
/gframe/dirent.h
ygopro ygopro
premake5.exe premake5.exe
## YGOPro(Server) ## YGOPro(Server)
[![Build status](https://ci.appveyor.com/api/projects/status/qgkqi6o0wq7qn922/branch/server?svg=true)](https://ci.appveyor.com/project/zh99998/ygopro/branch/server) [![Build status](https://ci.appveyor.com/api/projects/status/qgkqi6o0wq7qn922/branch/server?svg=true)](https://ci.appveyor.com/project/zh99998/ygopro/branch/server)
[![Build Status](https://travis-ci.org/moecube/ygopro.svg?branch=server)](https://travis-ci.org/moecube/ygopro)
一个YGOPro的服务端版本,运行后自动建立主机,并开启端口供YGOPro客户端连接。 一个YGOPro的服务端版本,运行后自动建立主机,并开启端口供YGOPro客户端连接。
现用于[萌卡](https://mycard.moe/)[YGOPRO 233服](http://mercury233.me/ygosrv233/) 现用于[萌卡](https://mycard.moe/)[YGOPro 233服](http://mercury233.me/ygosrv233/)
### Linux下编译 ### Linux下编译
* 需要以下组件或工具 * 需要以下组件或工具
* gcc * gcc
* premake4 * premake5
* libevent * libevent
* lua5.2 * lua5.2
* sqlite3 * sqlite3
* 可参考 https://github.com/mercury233/ygopro-server/wiki 中的脚本 * 可参考本项目 [.travis.yml](https://github.com/mycard/ygopro/blob/server/.travis.yml) 中的脚本
### Windows下编译 ### Windows下编译
* 需要以下组件或工具 * 需要以下组件或工具
...@@ -21,7 +22,6 @@ ...@@ -21,7 +22,6 @@
* libevent * libevent
* lua5.2 * lua5.2
* sqlite3 * sqlite3
* dirent for windows
* 可参考本项目 [appveyor.yml](https://github.com/mycard/ygopro/blob/server/appveyor.yml) 中的脚本 * 可参考本项目 [appveyor.yml](https://github.com/mycard/ygopro/blob/server/appveyor.yml) 中的脚本
### 运行 ### 运行
......
...@@ -16,9 +16,9 @@ install: ...@@ -16,9 +16,9 @@ install:
- tar xf lua-5.2.4.tar.gz - tar xf lua-5.2.4.tar.gz
- move lua-5.2.4\src lua - move lua-5.2.4\src lua
- bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://www.sqlite.org/2016/sqlite-amalgamation-3150200.zip ; exit 0" - bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://www.sqlite.org/2017/sqlite-amalgamation-3200000.zip ; exit 0"
- 7z x sqlite-amalgamation-3150200.zip - 7z x sqlite-amalgamation-3200000.zip
- move sqlite-amalgamation-3150200 sqlite3 - move sqlite-amalgamation-3200000 sqlite3
# let premake happy # let premake happy
- xcopy /E premake\* . - xcopy /E premake\* .
...@@ -45,4 +45,4 @@ cache: ...@@ -45,4 +45,4 @@ cache:
- premake-5.0.0-alpha10-windows.zip - premake-5.0.0-alpha10-windows.zip
- libevent-2.0.22-stable.tar.gz - libevent-2.0.22-stable.tar.gz
- lua-5.2.4.tar.gz - lua-5.2.4.tar.gz
- sqlite-amalgamation-3150200.zip - sqlite-amalgamation-3200000.zip
...@@ -15,10 +15,8 @@ solution "ygo" ...@@ -15,10 +15,8 @@ solution "ygo"
configuration "macosx" configuration "macosx"
defines { "LUA_USE_MACOSX" } defines { "LUA_USE_MACOSX" }
includedirs { "/usr/local/include/*" } includedirs { "/opt/local/include" }
libdirs { "/usr/local/lib", "/usr/X11/lib" } libdirs { "/opt/local/lib" }
buildoptions { "-stdlib=libc++" }
links {"OpenGL.framework","Cocoa.framework","IOKit.framework"}
configuration "linux" configuration "linux"
defines { "LUA_USE_LINUX" } defines { "LUA_USE_LINUX" }
...@@ -47,7 +45,7 @@ solution "ygo" ...@@ -47,7 +45,7 @@ solution "ygo"
defines { "_ITERATOR_DEBUG_LEVEL=0" } defines { "_ITERATOR_DEBUG_LEVEL=0" }
configuration "Release" configuration "Release"
--flags { "OptimizeSpeed" } flags { "OptimizeSpeed" }
targetdir "bin/release" targetdir "bin/release"
include "ocgcore" include "ocgcore"
......
...@@ -8,18 +8,6 @@ solution "ygo" ...@@ -8,18 +8,6 @@ solution "ygo"
configuration "windows" configuration "windows"
defines { "WIN32", "_WIN32" } defines { "WIN32", "_WIN32" }
configuration "bsd"
defines { "LUA_USE_POSIX" }
includedirs { "/usr/local/include" }
libdirs { "/usr/local/lib" }
configuration "macosx"
defines { "LUA_USE_MACOSX" }
includedirs { "/usr/local/include/*" }
libdirs { "/usr/local/lib", "/usr/X11/lib" }
buildoptions { "-stdlib=libc++" }
links {"OpenGL.framework","Cocoa.framework","IOKit.framework"}
configuration "linux" configuration "linux"
defines { "LUA_USE_LINUX" } defines { "LUA_USE_LINUX" }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment