Add API to create new containers
[platform/core/security/vasum.git] / server / configs / CMakeLists.txt
1 # Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
2 #
3 #    Licensed under the Apache License, Version 2.0 (the "License");
4 #    you may not use this file except in compliance with the License.
5 #    You may obtain a copy of the License at
6 #
7 #        http://www.apache.org/licenses/LICENSE-2.0
8 #
9 #    Unless required by applicable law or agreed to in writing, software
10 #    distributed under the License is distributed on an "AS IS" BASIS,
11 #    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #    See the License for the specific language governing permissions and
13 #    limitations under the License.
14 #
15 #
16 # @file   CMakeLists.txt
17 # @author Lukasz Pawelczyk (l.pawelczyk@partner.samsung.com)
18 #
19
20 MESSAGE(STATUS "Installing configs to " ${SC_CONFIG_INSTALL_DIR})
21
22 FILE(GLOB container_CONF     containers/*.conf)
23 FILE(GLOB admin_CONF         libvirt-config/*.xml)
24 FILE(GLOB template_CONF      templates/*.conf templates/*.xml)
25
26 ## Generate ####################################################################
27 CONFIGURE_FILE(systemd/security-containers.service.in
28                ${CMAKE_BINARY_DIR}/systemd/security-containers.service)
29
30
31 ## Install #####################################################################
32 INSTALL(FILES       daemon.conf
33         DESTINATION ${SC_CONFIG_INSTALL_DIR})
34
35 # preprocess d-bus configs
36 CONFIGURE_FILE(dbus-1/system.d/org.tizen.containers.host.conf.in
37                ${CMAKE_BINARY_DIR}/dbus-1/system.d/org.tizen.containers.host.conf)
38
39 INSTALL(FILES       ${CMAKE_BINARY_DIR}/dbus-1/system.d/org.tizen.containers.host.conf
40         DESTINATION ${SYSCONF_INSTALL_DIR}/dbus-1/system.d/)
41
42 INSTALL(FILES       ${container_CONF}
43         DESTINATION ${SC_CONFIG_INSTALL_DIR}/containers)
44
45 INSTALL(FILES       ${admin_CONF}
46         DESTINATION ${SC_CONFIG_INSTALL_DIR}/libvirt-config)
47
48 INSTALL(FILES       ${template_CONF}
49         DESTINATION ${SC_CONFIG_INSTALL_DIR}/templates)
50
51 INSTALL(FILES       ${CMAKE_BINARY_DIR}/systemd/security-containers.service
52         DESTINATION ${SYSTEMD_UNIT_DIR})