Init basesystem source codes.
[staging/basesystem.git] / video_in_hal / systemservice / interface_unified / library / Makefile
1 #
2 # @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
3 #
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
7 #
8 #      http://www.apache.org/licenses/LICENSE-2.0
9 #
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.
15 #
16
17 # installed shared library(.so)
18 INST_SHLIBS := libSS_SystemIfUnified
19
20 # compiled sources
21 libSS_SystemIfUnified_SRCS := ss_framework_if.cpp \
22                               ss_heartbeat_client.cpp \
23                               ss_sm_client.cpp \
24                               ss_string_maps.cpp \
25                               ss_system_process.cpp \
26                               ss_system_timer.cpp \
27                               ss_last_to_order.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 \
31                               ss_pwrsvc_if.cpp
32
33 # additional source path
34 VPATH += ./src
35 VPATH += ./include/$(COMPONENT_NAME)
36
37 # installed headers
38 INST_HEADERS  = interface_unified.h
39 INST_HEADERS += interfaceunified_system_application.h \
40                 interfaceunified_system_types.h \
41                 ss_client_names.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 \
48                 ss_error_message.h \
49                 ss_heartbeat_if.h \
50                 ss_heartbeat_notifications.h \
51                 ss_heartbeat_service_protocol.h \
52                 ss_logger_service.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 \
59                 ss_power_service.h \
60                 ss_services.h \
61                 ss_sm_client_if.h \
62                 ss_sys_boot_area_map.h \
63                 ss_sm_thread_names.h \
64                 ss_string_maps.h \
65                 ss_system_if.h \
66                 ss_system_manager_if.h \
67                 ss_system_manager_notifications.h \
68                 ss_system_manager_protocol.h \
69                 ss_system_process.h \
70                 ss_system_timer.h \
71                 ss_system_types.h \
72                 ss_boot_map.h \
73                 ss_templates.h \
74                 ss_test_clients.h \
75                 ss_version.h \
76                 ss_last_to_order.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
90
91
92
93 # additional include path
94 CPPFLAGS += -I./include/
95 CPPFLAGS += -I../../rom_access_library/library/include/
96
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
100
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
116
117 LDFLAGS += -Wl,--no-as-needed
118
119 # linked libraries
120 LDLIBS += -Wl,-Bdynamic
121 LDLIBS += -Wl,-Bdynamic
122 LDLIBS += -Wl,-Bdynamic -lstdc++
123
124 LDFLAGS += -g -Wl,--gc-sections -shared
125
126
127 include ../../system_service.mk