forked from minetest/minetest
Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
20 changed files
with
6,919 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Look for json, use our own if not found | ||
|
||
#FIND_PATH(JSON_INCLUDE_DIR json.h) | ||
|
||
#FIND_LIBRARY(JSON_LIBRARY NAMES json) | ||
|
||
#IF(JSON_LIBRARY AND JSON_INCLUDE_DIR) | ||
# SET( JSON_FOUND TRUE ) | ||
#ENDIF(JSON_LIBRARY AND JSON_INCLUDE_DIR) | ||
|
||
#IF(JSON_FOUND) | ||
# MESSAGE(STATUS "Found system json header file in ${JSON_INCLUDE_DIR}") | ||
# MESSAGE(STATUS "Found system json library ${JSON_LIBRARY}") | ||
#ELSE(JSON_FOUND) | ||
SET(JSON_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/json) | ||
SET(JSON_LIBRARY json) | ||
MESSAGE(STATUS "Using project json library") | ||
#ENDIF(JSON_FOUND) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
if( UNIX ) | ||
set(json_SRCS jsoncpp.cpp) | ||
set(json_platform_LIBS "") | ||
else( UNIX ) | ||
set(json_SRCS jsoncpp.cpp) | ||
set(json_platform_LIBS "") | ||
endif( UNIX ) | ||
|
||
add_library(json ${json_SRCS}) | ||
|
||
target_link_libraries( | ||
json | ||
${json_platform_LIBS} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
cd .. | ||
svn co https://jsoncpp.svn.sourceforge.net/svnroot/jsoncpp/trunk/jsoncpp jsoncpp | ||
svn up jsoncpp | ||
cd jsoncpp | ||
python amalgamate.py | ||
cp -R dist/json .. | ||
cp dist/jsoncpp.cpp ../json | ||
|
||
# maybe you need to patch: | ||
# src/json/jsoncpp.cpp: | ||
# -#include <json/json.h> | ||
# +#include "json/json.h" | ||
|
||
#svn export --force https://jsoncpp.svn.sourceforge.net/svnroot/jsoncpp/trunk/jsoncpp/src/lib_json json | ||
#svn export --force https://jsoncpp.svn.sourceforge.net/svnroot/jsoncpp/trunk/jsoncpp/include/json json |
Oops, something went wrong.