build: clean up settings of compiler flags

Compiler flags are set in main CMakeLists.txt. This part of the file looks
like a template inherited from other projects and requires some clean up:
- drop C flags, there are no C source files.
- move fortify flags to spec, they are specific to Tizen build system.
- use Cmake built-in features for detection of compiler support for C++11

Change-Id: I40cb76934334c31d7ac59328eed217e08902b187
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
Fix inclusion of libunwind when not building for debug

Conditional inclusion of libunwind.h didn't properly depend on definition
of BUILD_TYPE_DEBUG. But only debug build checks for libunwind dependency.

Change-Id: I2158d09ae2880e9869246d75049aa1f23b8c4bcc
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
Add credential and session helper libraries

This change introduces libraries with following functionalities:
a) simple session id generation
b) user_id and client_id retrieval

This patch adds libraries to build and packaging files.
There is no code yet - libraries are empty.

Change-Id: I4c5c8b75eb5ea4867ba111d936bacbcd41fc5098
Implement cynara-session library

Change-Id: I929408dc59db5f4ab115567fd4839258bd086418
Add new error codes needed by credential helpers

Added codes are:
    CYNARA_API_METHOD_NOT_SUPPORTED
    CYNARA_API_UNKNOWN_ERROR

Change-Id: I604ce30b37bdfe4ecba637bcf423e6fea0b2610c
Add enums for credentials acquire methods

Change-Id: I5719a7622a78ae6d1ca86a7dcce986c69abb3e23
Implement cynara-creds-socket library

Change-Id: Ifa27c49c3361547c75d50aa7cbf72e4bd3648201
Prepare libcynara-creds-dbus for implementation

Change-Id: Ibdecf8790b7d296e35c063c52202a4a672ad9e9a
Add mockuped versions of default credential methods helpers

Change-Id: I762a435b4a2fcf81239e7d91b454cd8c785095cb
Implement cynara-creds-dbus library

Signed-off-by: Radoslaw Bartosiak <r.bartosiak@samsung.com>
Signed-off-by: Aleksander Zdyb <a.zdyb@partner.samsung.com>

Change-Id: Iccf9cb0acb1016746d8af7a4ee85714e74f4664e
Synchronize RPM and pkg-config versions

This change also introduces CYNARA_VERSION cmake variable which will need
to be kept in sync with rpm package version.
We cannot rely on passing version from RPM spec since we want to be able
to build Cynara independently of the Tizen build system.

Change-Id: I1bdd3a603a486d386f261e8330a9635923945569
Signed-off-by: Jacek Bukarewicz <j.bukarewicz@samsung.com>
Add documentation to cynara-creds-commons.h

Signed-off-by: Radoslaw Bartosiak <r.bartosiak@samsung.com>

Change-Id: I717b1cc988c5fc6780d42774c75a4596a522c3e2
Fix creds dependencies

Change-Id: I3d5dd7bdfad9a58b99e754d5acb9dcb20a18b0e8
build: configure default installation directories in cmake

Set the default installation paths in main CMakeLists.txt. On Tizen these
settings will be overridden by variables passed to cmake by rpmbuild.
But having them defined makes the standalone build possible, outside of
Tizen.

Change-Id: Idf84ff5a5e15fd99912b53e0970198d031bbbee5
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
build: unbreak out-of-tree build of pkgconfig files

Fix regression introduced recently in 21175a33. "Make install" fails on
pkgconfig files when building out-of-tree.

Change-Id: Ib544993ae4daa784ca93d9e115eeba9830957ecc
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
build: allow conditional building of cynara-tests, turn it on in spec

Change cmake to build cynara-tests only when enabled and enable it in spec
file. This will enable cynara build outside of Tizen (without tests).
Current setup for cynara-tests build depends on Tizen-specific packaging of
gmock package. This dependency cannot be met outside of Tizen, which would
break the whole build.
It is not easy to apply a proper fix to have cynara-tests built outside of
Tizen. Gmock is not meant to be used as dependency in such way.
Most certainly we will have to handle gmock dependency differently in
upstream and in Tizen.

Change-Id: Id9fc8142979d1a2061c1c72c610520479d9e61a2
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
Add changelog for keeping release history

Changelog filled with historical data.

Change-Id: Idf35e1024d19ac2e66699b2aea6555a5a37ae323
Release 0.3.0

Change-Id: I5e2b5d39b1a14dca7575dcfd8812087f401dc82a
external gmock