Clean up finding of dependent packages

- Rewrite FindYAJL.cmake to use FindPackageHandleStandardArgs.cmake
  instead of LibFindMacros.cmake .
- Use pkg_check_modules() to find libpcre.
- Remove test for local copy of libpcre.
- Remove unused Find*.cmake files and LibFindMacros.cmake .

Open-webOS-DCO-1.0-Signed-off-by: Herb Kuta <herb.kuta@palm.com>
Change-Id: I5802ae9455837129573f94b414829c9673d943d6
Convert to use cmake-modules-webos

- Don't convert WITH_DOCS to WEBOS_CONFIG_BUILD_DOCS (yet).
- Follow the cmake-modules-webos conventions for Doxygen-generated
  documentation:
  - Name the make target for documentation"docs"
  - Assume that Doxygen is available and in the path (i.e., don't
    invoke find_package() for it).
  - Output the generated documentation to Documentation/pbnjson/html/* .
  - Don't generate man pages.
- Add license blocks to CMakeLists.txt-s that are missing it.
- Remove generation of the "deb" make target.

Open-webOS-DCO-1.0-Signed-off-by: Herb Kuta <herb.kuta@palm.com>
Change-Id: I403573ce078ac03d48f90612a132c534177e660d
Add pkgconfig files

- Supply one for each library: pbnjson_c.pc and pbnjson_cpp.pc .
- Set component version to 1.2.0 .

Open-webOS-DCO-1.0-Signed-off-by: Herb Kuta <herb.kuta@palm.com>
Change-Id: I35cdf0dcd1529315dee804340b5f213fbba94b6e
Correct copyright year range in license blocks

Also add license blocks to files without them (except to JSON files, to
which they can't be added).

Open-webOS-DCO-1.0-Signed-off-by: Herb Kuta <herb.kuta@palm.com>
Change-Id: I2b9a36192dca2d09793b676d7cce71661ed52fef
Use the standard cmake-modules-webos .gitignore

Open-webOS-DCO-1.0-Signed-off-by: Herb Kuta <herb.kuta@palm.com>
Change-Id: I2e002f1c6777d9bfe301b31abd86532948f8a17a
Update style used in various CMakeLists.txt-s

All CMakeLists.txt-s should follow the cmake-modules-webos style
guidelines.

Open-webOS-DCO-1.0-Signed-off-by: Herb Kuta <herb.kuta@palm.com>
Change-Id: I67cd1e6586b2004500b9aa212b5dda14859dac73
Remove setting to build the unused static C libary

Note that libpbnjson_c_s was never staged.

Open-webOS-DCO-1.0-Signed-off-by: Herb Kuta <herb.kuta@palm.com>
Change-Id: I9fb5e42504e63a2c2349eb6f0f943d755a7206b8
Require libpcre when WITH_PCRE is TRUE

Open-webOS-DCO-1.0-Signed-off-by: Herb Kuta <herb.kuta@palm.com>
Change-Id: I4bde3258950ff98f70074c73da9d57040509ce73
Change logging identifier to match library name

- Use PBNJSON instead of PJSON.
- Update the fullpath removal code for the new source directory name.

Open-webOS-DCO-1.0-Signed-off-by: Herb Kuta <herb.kuta@palm.com>
Change-Id: If6f34d2fafa669b6246846c5ed3ce798824520bf
Fix Ubuntu standalone desktop build

- Remove use of an extension routine not found in the upstream YAJL.
- Now that it's possible to build under Ubuntu, provide build
  instructions in README.md .
- Set version to 1.3.0 .

Open-webOS-DCO-1.0-Signed-off-by: Herb Kuta <herb.kuta@palm.com>
Change-Id: Ia9d78386bf844080a57a70024f7f4a23fe35a20e
Change default WITH_PCRE to be FALSE

webOS 3.0.5 shipped with WITH_PCRE disabled => that should be the
default for Open webOS 1.0 .

Open-webOS-DCO-1.0-Signed-off-by: Herb Kuta <herb.kuta@palm.com>
Change-Id: Ibed69f36b7ae24cefa25e1fe51f11f08de3eedde
Improve language in description section of README.md

Open-webOS-DCO-1.0-signed-off-by: Keith Derrick <keith.derrick@palm.com>

Change-Id: I7d90a21ea2e1fbfa685703d69555cefbf1207834
Clarify supported YAJL versions

Open webOS 1.0 targets the versions of upstream components supplied by
Ubuntu 12.04 or Yocto 1.2, whichever is earlier. In the case of yajl,
the earliest version is the one supplied by Ubuntu 12.04: 1.0.12 .

Note that yajl 2.0.x introduces an API breakage that prevents libpbnjson
from compiling successfully against it.

Open-webOS-DCO-1.0-signed-off-by: Keith Derrick <keith.derrick@palm.com>
Change-Id: Ia495390d902cdb393e1b5ee85a8343bd9ec06576
Add #include <unistd.h> to headers that reference ssize_t

Apparently it gets included implicitly when compiling with gcc 4.6.3 x86
but not when cross-compiling for ARM.

Open-webOS-DCO-1.0-Signed-off-by: Herb Kuta <herb.kuta@palm.com>
Change-Id: I5f010fb8f7583dd75299b0216e662b09622ee48f
Add libpbnjson_c to libraries for libpbnjson_cpp

Open-webOS-DCO-1.0-signed-off-by: Keith Derrick <keith.derrick@palm.com>

Change-Id: I818f86e639843abe7159152535791e99fdcf1fbb
resolve conflict for merge from openwebos