Rework configuration of installation and run-time paths 77/38877/7
authorRafal Krypa <r.krypa@samsung.com>
Mon, 4 May 2015 13:02:54 +0000 (15:02 +0200)
committerLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Fri, 8 May 2015 06:15:50 +0000 (23:15 -0700)
commit7ded9d8ca95fd2a91501aee79e41cf0f04ca8a9c
treea9fd0644e8af312e8e1cb55bfb422e32e4292e04
parent77cac6d9d8faf3e658ca21c484de57b02e32f6e4
Rework configuration of installation and run-time paths

- Don't rely on values defined in Tizen spec
- Define all used paths in top-level CMake
- Use same definitions for installation and run-time paths
- Pass paths definitions from CMake to compiler
- Unify naming, use "dir" instead of mixed "dir" and "path"
- Use names and descriptions similar to those in autotools
- Handle all paths in single source file - PathConfig.cpp
- Fix default statePath (/var/lib/cynara => /var/cynara)
- Properly use %{_bindir} and %{_unitdir} in spec
- Fix hard-coded /var/cynara path in cynara-db-migration

Change-Id: Ie28d9291bc396f89214e3555606846c4a9b7bcbc
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
48 files changed:
CMakeLists.txt
migration/CMakeLists.txt
migration/cynara-db-migration.in [moved from migration/cynara-db-migration with 97% similarity]
packaging/cynara.spec
pkgconfig/cynara-admin/CMakeLists.txt
pkgconfig/cynara-admin/cynara-admin.pc.in
pkgconfig/cynara-agent/CMakeLists.txt
pkgconfig/cynara-agent/cynara-agent.pc.in
pkgconfig/cynara-client-async/CMakeLists.txt
pkgconfig/cynara-client-async/cynara-client-async.pc.in
pkgconfig/cynara-client/CMakeLists.txt
pkgconfig/cynara-client/cynara-client.pc.in
pkgconfig/cynara-creds-commons/CMakeLists.txt
pkgconfig/cynara-creds-commons/cynara-creds-commons.pc.in
pkgconfig/cynara-creds-dbus/CMakeLists.txt
pkgconfig/cynara-creds-dbus/cynara-creds-dbus.pc.in
pkgconfig/cynara-creds-gdbus/CMakeLists.txt
pkgconfig/cynara-creds-gdbus/cynara-creds-gdbus.pc.in
pkgconfig/cynara-creds-socket/CMakeLists.txt
pkgconfig/cynara-creds-socket/cynara-creds-socket.pc.in
pkgconfig/cynara-plugin/CMakeLists.txt
pkgconfig/cynara-plugin/cynara-plugin.pc.in
pkgconfig/cynara-session/CMakeLists.txt
pkgconfig/cynara-session/cynara-session.pc.in
src/admin/CMakeLists.txt
src/agent/CMakeLists.txt
src/chsgen/CMakeLists.txt
src/client-async/CMakeLists.txt
src/client-common/CMakeLists.txt
src/client/CMakeLists.txt
src/common/CMakeLists.txt
src/common/config/PathConfig.cpp
src/common/config/PathConfig.h
src/cyad/CMakeLists.txt
src/helpers/creds-commons/CMakeLists.txt
src/helpers/creds-commons/CredsCommonsInner.cpp
src/helpers/creds-dbus/CMakeLists.txt
src/helpers/creds-gdbus/CMakeLists.txt
src/helpers/creds-socket/CMakeLists.txt
src/helpers/session/CMakeLists.txt
src/include/CMakeLists.txt
src/include/cynara-creds-commons.h
src/service/CMakeLists.txt
src/storage/CMakeLists.txt
systemd/CMakeLists.txt
test/CMakeLists.txt
test/chsgen/checksumgenerator.cpp
test/storage/inmemorystoragebackend/inmemorystoragebackend.cpp