2 # @copyright Copyright (c) 2017-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 ######### libraries to be installed(*.so)#############
18 INST_SHLIBS := libns_backup
20 ######### headers to be installed(*.h) #############
21 INST_HEADERS := backup_manager.h ns_backup.h
23 ######### sources to be compiled #############
24 libns_backup_SRCS := bkup_api.cpp
26 ######### search paths #############
27 VPATH += ./src ./include/$(COMPONENT_NAME) ../server/include
29 ######### include paths #############
30 CPPFLAGS += -I./include
31 CPPFLAGS += -I../server/include
33 ######### frameworkunifiedlog options #############
34 CPPFLAGS += -DFRAMEWORKUNIFIEDLOGOPTIONS=0x08 -DFRAMEWORKUNIFIEDLOGAPPZONES=31,30,29,28,27,26,9,8,3
36 LDFLAGS += -Wl,--no-as-needed
37 LDFLAGS += -Wl,--no-undefined
39 ######### libraries to be linked(dynamic)#############
40 LDLIBS += -Wl,-Bdynamic -lNS_FrameworkUnified
42 ######### other unit specific options #############
45 CPPFLAGS += -Werror=implicit-function-declaration
46 CPPFLAGS += -Werror=format-security
48 CPPFLAGS += -Wconversion
49 CPPFLAGS += -Wint-to-pointer-cast
50 CPPFLAGS += -Wpointer-arith
53 include ../../native_service.mk