-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update embedded jsoncpp from unk version to 0.10.6 + move libs to lib/ instead of src/ #5473
Conversation
0.10.6 is last release without c++11
@SmallJoker can you test it on VS ? |
The amalgamated version was generated cloning https://github.com/open-source-parsers/jsoncpp/tree/0.10.6, running amalgamate.py , and i fixed some integration problems we have (one macro to define, include fix, and removal usage of a gcc 6 feature which is unk to gcc 6.1...) |
Jsoncpp cpp file should be upper, make the library like it does in amalgamate
Compiled and tested on MSVC 2010. Works as before, no noticeable changes. |
@SmallJoker is this an approval ? |
@nerzhul Not yet an approval.
There are also checks needed if issue #1793 is still a thing. (as linked in |
for the folder structure i will propose a second PR to move our libs in a dedicated lib/ directory instead of being in the source folder tree |
You already moved |
@SmallJoker i moved the libs to lib/ folder as discussed on IRC yesterday, can you test it on VS (don't forget to use flags to use embedded libs for jsoncpp, lua and gmp) |
Successfully compiled in debug mode, using bundled Lua, gmp and Json. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also forgot to update util/travis/script.sh
and build/android/jni/Android.mk
cmake/Modules/FindGMP.cmake
Outdated
set(GMP_LIBRARY gmp) | ||
add_subdirectory(gmp) | ||
add_subdirectory(${PROJECT_SOURCE_DIR}/../lib/gmp ${PROJECT_BINARY_DIR}/../lib/gmp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you adding two paths here?
If the reason is that it doesn't work otherwise, then: no, sorry this is way too hacky.
cmake/Modules/FindJson.cmake
Outdated
set(JSON_LIBRARY jsoncpp) | ||
add_subdirectory(jsoncpp/json) | ||
add_subdirectory(${PROJECT_SOURCE_DIR}/../lib/jsoncpp ${CMAKE_BINARY_DIR}/lib/jsoncpp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
src/CMakeLists.txt
Outdated
set(LUA_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/lua/src") | ||
add_subdirectory(lua) | ||
set(LUA_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/../lib/lua/src") | ||
add_subdirectory(../lib/lua ${CMAKE_BINARY_DIR}/lib/lua) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
I'm working on a better implementation using lib/CMakeLists.txt |
Fixed points you mention, please re-review
0.10.6 is last release without c++11
It seems we are using a 2010 update to a 2016 version.
Also properly integrate jsoncpp static library using same architecture as amalgamate.py generate in jsoncpp repo
Also reorganize our repository to a more standard way by moving external libraries to lib/ instead of our source tree src/