Yet Another JSON Library - A Portable JSON parsing and serialization library in ANSI C
C CMake Shell
Pull request Compare This branch is 40 commits ahead, 11 commits behind lloyd:master.
Latest commit 5f8685d Apr 25, 2015 @likema Fix libyajl2-dbg.
Failed to load latest commit information.
debian
example
include/yajl
perf
reformatter
src
test
verify
.gitignore
CMakeLists.txt
COPYING
ChangeLog
README.md Write README.md instead of the old ones. Jan 28, 2013
TODO
YAJLDoc.cmake
yajl.spec

README.md

YAJL 2

This is a fork of YAJL 2 (https://github.com/lloyd/yajl). It maily aims at better platform building support.

Building

The following are cmake building options:

  • DISABLE_DOCS: Disable building docs
  • DISABLE_TESTS: Disable building tests and examples
  • DISABLE_TOOLS: Disable building tools
  • DISABLE_STATIC: Disable building static
  • DISABLE_SHARED: Disable building shared
  • DISABLE_SO_VERSION: Disable so version

You can also get them by

cd yajl
cmake -LH

Ubuntu/Debian

sudo apt-get install -y cmake
cd yajl
cmake -G"Unix Makefiles"
make

Fedora/Red Hat/CentOS

sudo yum install -y cmake
cd yajl
cmake -G"Unix Makefiles"
make

AIX

Please get CMake RPM (http://www.perzl.org/aix/index.php?n=Main.Cmake)

cd yajl
cmake -G"Unix Makefiles"
make

Windows

Please get CMake (http://www.cmake.org)

cmake -G"NMake Makefiles"
nmake

or

cmake -G"Visual Studio 10"

Packaging

Ubuntu/Debian

sudo apt-get install -y build-essential cmake doxygen
cd yajl
dpkg-buildpackage -us -uc -rfakeroot

Fedora/Red Hat/CentOS

sudo yum install -y cmake doxygen
cd yajl
git archive --prefix=yajl-2.0.5/ | bzip2 -9 > `rpm -E %{_topdir}`/yajl-2.0.5.tar.bz2
rpmbuild -ba yajl.spec

Additionally, you can build YAJL i686 rpm on x86_64 platform as

CC="gcc -m32" rpmbuild -ba --target=i686 yajl.spec

AIX

Please get CMake RPM (http://www.perzl.org/aix/index.php?n=Main.Cmake)

cd yajl
git archive --prefix=yajl-2.0.5/ | bzip2 -9 > `rpm -E %{_topdir}`/yajl-2.0.5.tar.bz2
rpmbuild -ba yajl.spec

Additionally, you can build YAJL ppc64 rpm as

CC="gcc -maix64" rpmbuild -ba --target=ppc64 yajl.spec