Init basesystem source codes.
[staging/basesystem.git] / video_in_hal / nsframework / notification_persistent_service / server / 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 program #############
18 INST_PROGS = NS_NPPService
19
20 ######### add source path #############
21 VPATH += ./src
22 VPATH += ./include/$(COMPONENT_NAME)
23
24 ######### installed library(*.a) #############
25 #INST_LIBS =
26
27 ######### installed shared library(*.so) #############
28 #INST_SHLIBS =
29
30 ######### install headers(*.h)  #############
31 INST_HEADERS = notification_persistent_service.h
32
33 ######### compiled sources  #############
34 NS_NPPService_SRCS = app_states.cpp \
35                      ns_npp.cpp \
36                      ns_npp_archive.cpp \
37                      ns_npp_binary_accesser.cpp \
38                      ns_npp_copy_worker.cpp \
39                      ns_npp_fs_directory.cpp \
40                      ns_npp_handlelist.cpp \
41                      ns_npp_nor_persistence_worker_thread.cpp \
42                      ns_npp_notification.cpp \
43                      ns_npp_notification_manager.cpp \
44                      ns_npp_notification_receiver.cpp \
45                      ns_npp_persist_file.cpp \
46                      ns_npp_persist_folder.cpp \
47                      ns_npp_persistence.cpp \
48                      ns_npp_persistence_manager.cpp \
49                      ns_npp_persistent_data.cpp \
50                      ns_npp_personalization_manager.cpp \
51                      ns_npp_registry_entry.cpp \
52                      ns_npp_regular_notification.cpp \
53                      ns_npp_state_nor_persistence_notification.cpp \
54                      ns_npp_state_notification.cpp \
55                      ns_npp_state_persistence_notification.cpp \
56                      ns_npp_state_persistence_user_notification.cpp \
57                      notificationpersistentservice_application.cpp \
58                      notificationpersistentservice_main.cpp
59
60 ######### add include path #############
61 CPPFLAGS += -I./include
62 CPPFLAGS += -Wl,--no-undefined
63 CPPFLAGS += -Werror=implicit-function-declaration
64 CPPFLAGS += -Werror=format-security
65
66 CPPFLAGS += -Wconversion
67 CPPFLAGS += -Wint-to-pointer-cast
68 CPPFLAGS += -Wpointer-arith
69 CPPFLAGS += -Wformat
70 ######### add compile option #############
71 ENABLE_PARA_INST += install-prog # PARALLEL MAKE
72 CPPFLAGS += -DIMPL_AGL_APPLICATION_CALLBACKS_PRE_BACKGROUND
73
74 ######### linked library #############
75
76 ######### linked library (dynamic) #############
77 LDFLAGS += -Wl,--no-as-needed
78 LDLIBS += -Wl,-Bdynamic -lNS_FrameworkUnified
79 LDLIBS += -Wl,-Bdynamic -ltar
80 LDLIBS += -Wl,-Bdynamic -lz
81 LDLIBS += -Wl,-Bdynamic -lPosixBasedOS001legacy #-lPosixBasedOS001ClockCycleApi -lPosixBasedOS001MsgApi -lPosixBasedOS001GetPrioApi -lPosixBasedOS001TimeApi -lPosixBasedOS001SlogApi
82
83 LINK_CXX=Y
84
85 ######### add library path #############
86
87 include ../../native_service.mk