-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathMakefile.am
More file actions
108 lines (90 loc) · 4.21 KB
/
Makefile.am
File metadata and controls
108 lines (90 loc) · 4.21 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
##########################################################################
# If not stated otherwise in this file or this component's LICENSE
# file the following copyright and licenses apply:
#
# Copyright 2019 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
##########################################################################
SUBDIRS = utils
#add privacymode utils if the flag is enabled
if IS_PRIVACYCONTROL_ENABLED
SUBDIRS += privacycontrol
endif
SUBDIRS += ccspinterface t2parser xconf-client protocol reportgen scheduler dcautil commonlib bulkdata
if ENABLE_CCSP_SUPPORT
SUBDIRS += t2dm
endif
if WITH_GTEST_SUPPORT
SUBDIRS += test
endif
AM_CFLAGS =
AM_CFLAGS += -DCCSP_INC_no_asm_sigcontext_h
ACLOCAL_AMFLAGS = -I m4
bin_PROGRAMS = telemetry2_0
telemetry2_0_SOURCES = telemetry2_0.c
telemetry2_0_CFLAGS = -DFEATURE_SUPPORT_RDKLOG -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64
telemetry2_0_CPPFLAGS = -fPIC -I${PKG_CONFIG_SYSROOT_DIR}$(includedir)/dbus-1.0 \
-I${PKG_CONFIG_SYSROOT_DIR}$(libdir)/dbus-1.0/include \
-I${PKG_CONFIG_SYSROOT_DIR}$(includedir)/ \
-I${PKG_CONFIG_SYSROOT_DIR}$(includedir)/rbus \
-I${top_srcdir}/include \
-I${top_srcdir}/source/utils \
-I${top_srcdir}/source/bulkdata \
-I${top_srcdir}/source/ccspinterface \
-I${top_srcdir}/source/dcautil \
-I${top_srcdir}/source/protocol/http \
-I${top_srcdir}/source/protocol/rbusMethod \
-I${top_srcdir}/source/reportgen \
-I${top_srcdir}/source/scheduler \
-I${top_srcdir}/source/t2parser \
-I${top_srcdir}/source/utils \
-I${top_srcdir}/source/xconf-client
telemetry2_0_LDFLAGS = -lcjson
if RDKLOGGER_ENABLE
telemetry2_0_LDFLAGS += -lrdkloggers
telemetry2_0_CFLAGS += -DRDK_LOGGER
endif
if WEBCONFIG_FRAMEWORK_ENABLE
telemetry2_0_LDFLAGS += -lwebconfig_framework
telemetry2_0_CFLAGS += -DFEATURE_SUPPORT_WEBCONFIG
endif
if IS_LIBRDKCONFIG_ENABLED
telemetry2_0_LDFLAGS += -lrdkconfig
telemetry2_0_CFLAGS += $(LIBRDKCONFIG_FLAG)
endif
if IS_LIBRDKCERTSEL_ENABLED
telemetry2_0_LDFLAGS += -lRdkCertSelector
telemetry2_0_CFLAGS += $(LIBRDKCERTSEL_FLAG)
telemetry2_0_CFLAGS += -DENABLE_RDKB_SUPPORT
endif
if ENABLE_CCSP_SUPPORT
telemetry2_0_LDFLAGS+=-lccsp_common
telemetry2_0_SOURCES += t2ssp/ssp_main.c t2ssp/ssp_action.c t2ssp/ssp_messagebus_interface.c t2ssp/dm_pack_datamodel.c
telemetry2_0_CPPFLAGS += -I${top_srcdir}/source/t2ssp \
-I${PKG_CONFIG_SYSROOT_DIR}$(includedir)/ccsp
endif
telemetry2_0_LDADD = ${top_builddir}/source/utils/libt2utils.la ${top_builddir}/source/dcautil/libdcautil.la \
${top_builddir}/source/protocol/rbusMethod/librbusmethod.la \
${top_builddir}/source/bulkdata/libbulkdata.la ${top_builddir}/source/ccspinterface/libccspinterface.la \
${top_builddir}/source/reportgen/libreportgen.la ${top_builddir}/source/scheduler/libscheduler.la \
${top_builddir}/source/protocol/http/libhttp.la \
${top_builddir}/source/t2parser/libt2parser.la \
${top_builddir}/source/xconf-client/libxconfclient.la
#privacy control include the sub dir if the privicy mode is enabled
if IS_PRIVACYCONTROL_ENABLED
telemetry2_0_CPPFLAGS += -I${top_srcdir}/source/privacycontrol
telemetry2_0_LDADD += ${top_builddir}/source/privacycontrol/libt2thunder_privacycontrol.la
endif
gtest:
make -C test