2 # @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
17 # installed shared library(.so)
18 INST_SHLIBS := libSS_SystemIfUnified
21 libSS_SystemIfUnified_SRCS := ss_framework_if.cpp \
22 ss_heartbeat_client.cpp \
25 ss_system_process.cpp \
28 libSS_SystemIfUnified_SRCS += ss_devicedetection_service_ifc.cpp
29 libSS_SystemIfUnified_SRCS += ss_logger_service_ifc.cpp
30 libSS_SystemIfUnified_SRCS += ss_power_client.cpp \
33 # additional source path
35 VPATH += ./include/$(COMPONENT_NAME)
38 INST_HEADERS = interface_unified.h
39 INST_HEADERS += interfaceunified_system_application.h \
40 interfaceunified_system_types.h \
42 ss_devicedetection_service.h \
43 ss_devicedetection_service_ifc.h \
44 ss_devicedetection_service_notifications.h \
45 ss_devicedetection_service_protocol.h \
46 ss_devicedetection_service_types.h \
47 ss_error_event_common.h \
50 ss_heartbeat_notifications.h \
51 ss_heartbeat_service_protocol.h \
53 ss_logger_service_ifc.h \
54 ss_logger_service_notifications.h \
55 ss_logger_service_protocol.h \
56 ss_power_service_if.h \
57 ss_power_service_notifications.h \
58 ss_power_service_protocol.h \
62 ss_sys_boot_area_map.h \
63 ss_sm_thread_names.h \
66 ss_system_manager_if.h \
67 ss_system_manager_notifications.h \
68 ss_system_manager_protocol.h \
77 INST_HEADERS += ss_logger_store_logs.h
78 INST_HEADERS += ss_devicedetection_service_local.h \
79 ss_devicedetection_service_protocol_local.h \
80 ss_devicedetection_service_types_local.h \
81 ss_error_event_common_local.h \
82 ss_sm_client_if_local.h \
83 ss_sm_thread_names_local.h \
84 ss_system_manager_if_local.h \
85 ss_system_manager_notifications_local.h \
86 ss_system_manager_protocol_local.h \
87 ss_logger_service_local.h \
88 ss_power_service_local.h \
89 ss_power_service_notifications_local.h
93 # additional include path
94 CPPFLAGS += -I./include/
95 CPPFLAGS += -I../../rom_access_library/library/include/
97 # additional compile option
98 CPPFLAGS += -DLINUX -fdata-sections -ffunction-sections
99 CPPFLAGS += -DFRAMEWORKUNIFIEDLOGOPTIONS=0x08 -DFRAMEWORKUNIFIEDLOGAPPZONES=31,30,29,28,27,26,9,8,3
101 CPPFLAGS_ss_devicedetection_service_ifc.os = -fno-exceptions
102 CPPFLAGS_ss_logger_service_ifc.os = -fno-exceptions
103 CPPFLAGS_ss_system_timer.os = -fno-exceptions
104 CPPFLAGS_ss_string_maps.os = -fno-exceptions
105 CPPFLAGS_ss_client_session.os = -fno-exceptions
106 CPPFLAGS_ss_framework_if.os = -fno-exceptions
107 CPPFLAGS_ss_ss_heartbeat_client.os = -fno-exceptions
108 CPPFLAGS_ss_parameter.os = -fno-exceptions
109 CPPFLAGS_ss_parameter_map.os = -fno-exceptions
110 CPPFLAGS_ss_str_stream.os = -fno-exceptions
111 CPPFLAGS_ss_system_config_reader.os = -fno-exceptions
112 CPPFLAGS_ss_system_shared_memory.os = -fno-exceptions
113 CPPFLAGS_ss_plm_if.os = -fno-exceptions
114 CPPFLAGS_ss_power_client.os = -fno-exceptions
115 CPPFLAGS_ss_pwrsvc_if.os = -fno-exceptions
117 LDFLAGS += -Wl,--no-as-needed
120 LDLIBS += -Wl,-Bdynamic
121 LDLIBS += -Wl,-Bdynamic
122 LDLIBS += -Wl,-Bdynamic -lstdc++
124 LDFLAGS += -g -Wl,--gc-sections -shared
127 include ../../system_service.mk