xaya / libxayagame

MIT License
21 stars 20 forks source link

Squashed commit of the following: #22

Closed RyuMaster closed 5 years ago

RyuMaster commented 5 years ago

commit d3f72f4794989bb1a99e69b98688bae7d59c970b Author: Ryu Master assignators@gmail.com Date: Tue Nov 13 11:28:14 2018 +0200

comit ammend

commit fdfecceecd8fc154eef51c8a28c2d0f7e7957799 Merge: 988d443 420177e Author: RyuMaster assignators@gmail.com Date: Tue Nov 13 11:27:11 2018 +0200

Merge branch 'master' into main

commit 988d4432a9c49890fcb5a809fc3e6af869ee8927 Merge: fc2f15c 92dcc0c Author: Ryu Master assignators@gmail.com Date: Tue Oct 30 15:40:07 2018 +0200

Merge branch 'main' of https://github.com/xaya/libxayagame into main

Cross-compile commit

commit fc2f15c7ad710e549e04b0e4e5467cb4e928fd90 Author: Ryu Master assignators@gmail.com Date: Tue Oct 30 15:38:05 2018 +0200

Changes needed for cross-compile to windows. Compiling done with MSYS2/MINGw64
Not all libraries are present, here is the list that needs to be build manually
(at least for the time this commit is being made)

jsoncpp
cmake . -G"MSYS Makefiles" -DCMAKE_INSTALL_PREFIX=$MINGW_PREFIX -DJSONCPP_WITH_TESTS=Off -DJSONCPP_WITH_POST_BUILD_UNITTEST=Off -DBUILD_SHARED_LIBS=ON

argtabel2
cmake . -G"MSYS Makefiles" -DCMAKE_INSTALL_PREFIX=$MINGW_PREFIX
make
install

json-rpc-cpp
cmake . -G"MSYS Makefiles" -DCMAKE_INSTALL_PREFIX=$MINGW_PREFIX -DREDIS_SERVER=NO -DREDIS_CLIENT=NO  -DCOMPILE_STUBGEN=NO -DCOMPILE_EXAMPLES=NO -DCOMPILE_TESTS=NO -DBUILD_STATIC_LIBS=YES -DHUNTER_ENABLED=YES
make
install

glog
./autogen.sh
cmake . -G"MSYS Makefiles" -DCMAKE_INSTALL_PREFIX=$MINGW_PREFIX -WIN32=TRUE -DBUILD_SHARED_LIBS=True
make
install

http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-glog-0.3.5-1-any.pkg.tar.xz

manually copy file 'libglog.pc' into \msys64\mingw64\lib\pkgconfig if missing

googletest
cmake . -G"MSYS Makefiles" -DCMAKE_INSTALL_PREFIX=$MINGW_PREFIX
make
install

libxayagame
as we compiled json-rpc-cpp without stubgen, we need to manually copy files into rpc-stub generated elsewhere
also, autoconf_archive is likely needed to resolve CXX_14 macro

commit 92dcc0c492a9a8babde03e91c5910f086ae27168 Author: Daniel Kraft d@domob.eu Date: Mon Oct 8 18:19:31 2018 +0200

Add DefaultMain based on callbacks.

This includes a second DefaultMain variant, which is based on callbacks
for the game-specific logic instead of an instance of GameLogic.  This
may make it easier to implement for simple games, and may also make
interoperability with C# (writing logic in C#) easier to handle.

(Because not a class needs to be wrapped, but just functions.)

commit d7baccbc2348f138c265816e2306877bd36a2d1c Author: Daniel Kraft d@domob.eu Date: Mon Oct 8 18:19:31 2018 +0200

Add DefaultMain based on callbacks.

This includes a second DefaultMain variant, which is based on callbacks
for the game-specific logic instead of an instance of GameLogic.  This
may make it easier to implement for simple games, and may also make
interoperability with C# (writing logic in C#) easier to handle.

(Because not a class needs to be wrapped, but just functions.)