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 program #############
18 INST_PROGS = NS_NPPService
20 ######### add source path #############
22 VPATH += ./include/$(COMPONENT_NAME)
24 ######### installed library(*.a) #############
27 ######### installed shared library(*.so) #############
30 ######### install headers(*.h) #############
31 INST_HEADERS = notification_persistent_service.h
33 ######### compiled sources #############
34 NS_NPPService_SRCS = app_states.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
60 ######### add include path #############
61 CPPFLAGS += -I./include
62 CPPFLAGS += -Wl,--no-undefined
63 CPPFLAGS += -Werror=implicit-function-declaration
64 CPPFLAGS += -Werror=format-security
66 CPPFLAGS += -Wconversion
67 CPPFLAGS += -Wint-to-pointer-cast
68 CPPFLAGS += -Wpointer-arith
70 ######### add compile option #############
71 ENABLE_PARA_INST += install-prog # PARALLEL MAKE
72 CPPFLAGS += -DIMPL_AGL_APPLICATION_CALLBACKS_PRE_BACKGROUND
74 ######### linked library #############
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
86 install -d 755 $(DESTDIR)/var/local/lib/basesystem/nv/BS/ns/npp/rwdata
87 install -m 644 ./version.txt $(DESTDIR)/var/local/lib/basesystem/nv/BS/ns/npp/rwdata
89 ######### add library path #############
91 include ../../native_service.mk