blob: 5daaae3a75c58216e15b9174f0a5ee7a871abf09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#######
# SPDX license identifier: MPL-2.0
#
# Copyright (C) 2015, ADIT GmbH
#
# This file is part of GENIVI Project DLT - Diagnostic Log and Trace.
#
# This Source Code Form is subject to the terms of the
# Mozilla Public License (MPL), v. 2.0.
# If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
#
# For further information see http://www.genivi.org/.
#######
add_definitions(-Werror)
set(dlt-logstorage-ctrl_SRCS
dlt-logstorage-ctrl.c
dlt-logstorage-common.c
dlt-logstorage-list.c)
if(WITH_DLT_LOGSTORAGE_CTRL_UDEV)
set(dlt-logstorage-ctrl_SRCS
${dlt-logstorage-ctrl_SRCS}
dlt-logstorage-udev.c)
set(LOGSTORAGE_LIBRARY udev)
endif()
if(WITH_SYSTEMD)
set(dlt-logstorage-ctrl_SRCS
${dlt-logstorage-ctrl_SRCS}
${PROJECT_SOURCE_DIR}/systemd/3rdparty/sd-daemon.c)
endif()
add_executable(dlt-logstorage-ctrl
${dlt-logstorage-ctrl_SRCS}
${dlt_control_common_SRCS})
target_link_libraries(dlt-logstorage-ctrl dlt ${LOGSTORAGE_LIBRARY})
set_target_properties(dlt-logstorage-ctrl PROPERTIES LINKER_LANGUAGE C)
install(TARGETS dlt-logstorage-ctrl
RUNTIME DESTINATION bin
COMPONENT base)
|