Remove unused directories and files in video_in_hal
[staging/basesystem.git] / nsframework / framework_unified / client / NativeServices / cfg / analysis.mk
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 # QCC arm COMPILER SETTINGS
18 #  Standard form of tool.mk file configured for PosixBasedOS001 vmware
19
20 #Add PosixBasedOS001 binary tools to path
21 PATH := $(PosixBasedOS001_HOME)/usr/bin/;$(PATH)
22
23 # include the compiler definitions in which we are linting against
24 include $(PRJ_ROOT)/cfg/PosixBasedOS001_armv7.mk
25
26 # Tools and Options
27 CODE_COUNT = surveyor
28 LINT = lint-nt
29 CC_IFLAG = -i
30
31 CC_DEFS = -D__LANGUAGE_C -D_LANGUAGE_C -D__PosixBasedOS001__ -D__PosixBasedOS001__ \
32         -D__GNUC__=4 -D__GNUC_MINOR__=4 -D__GNUC_PATCHLEVEL__=2 \
33         -D__unix__ -D__unix -D__ELF__ -D__ARM__ -D__arm__ \
34         -D__ARM_ARCH_4__ -D__APCS_32__ -D__LITTLEENDIAN__ -D__ARMEL__ -D_MUDFLAPTH
35
36 CPP_DEFS = -D__cplusplus -D__PosixBasedOS001__ -D__PosixBasedOS001__ \
37         -D__GNUC__=4 -D__GNUC_MINOR__=4 -D__GNUC_PATCHLEVEL__=2 \
38         -D__NO_INLINE__ -D__DEPRECATED -D__EXCEPTIONS \
39         -D__unix__ -D__unix -D__ELF__ -D__ARM__ -D__arm__ \
40         -D__ARM_ARCH_4__ -D__APCS_32__ -D__LITTLEENDIAN__ -D__ARMEL__ -D_MUDFLAPTH
41
42 LINT_C_INCLUDES = \
43         $(CC_IFLAG)C:/lint.PosixBasedOS001 \
44         $(CC_IFLAG)$(PosixBasedOS001_TARGET)/usr/include \
45
46 LINT_CPP_INCLUDES = \
47         $(CC_IFLAG)C:/lint.PosixBasedOS001 \
48         $(CC_IFLAG)$(PosixBasedOS001_TARGET)/usr/include \
49         $(CC_IFLAG)$(PosixBasedOS001_HOST)/usr/lib/gcc/arm-unknown-nto-PosixBasedOS001.5.0/4.4.2/include \
50         $(CC_IFLAG)$(PosixBasedOS001_TARGET)/usr/include/cpp/c \
51         $(CC_IFLAG)$(PosixBasedOS001_TARGET)/usr/include/cpp \
52
53 LINT_SOURCES := $(shell find .. -iname "*.c" -or -iname "*.cc" -or -iname "*.cpp")
54 LINT_IMPLIED_DIRS := $(addprefix $(CC_IFLAG), $(sort $(dir $(shell find .. -iname "*.c" -or -iname "*.cc" -or -iname "*.cpp"))))
55
56 # Metric Rule
57 metrics:
58         @echo --------------------
59         @echo Start metrics on $(COMPONENT_NAME)
60         @echo --------------------
61         -@mkdir -p $(PRJ_ROOT)/ana/metrics
62         -@$(CODE_COUNT) -detailed -progress -out $(PRJ_ROOT)/ana/metrics/metrics_$(COMPONENT_NAME).csv ..
63
64 # Static Analysis Rule
65 lint:
66         @echo --------------------
67         @echo Performing Lint on $(COMPONENT_NAME)
68         @echo --------------------
69         @echo  includes the following files:
70         @echo $(LINT_SOURCES)
71         @echo --------------------
72         -@c:/lint/$(LINT) $(PRJ_ROOT)cfg/options.lnt C:/lint.PosixBasedOS001/co-gcc.lnt $(CC_DEFS) $(LINT_C_INCLUDES) $(INCLUDES) $(LINT_IMPLIED_DIRS) $(filter %.c ,$(LINT_SOURCES))
73         -@c:/lint/$(LINT) $(PRJ_ROOT)cfg/options.lnt C:/lint.PosixBasedOS001/co-gcc.lnt $(CPP_DEFS) $(LINT_CPP_INCLUDES) $(INCLUDES) $(LINT_IMPLIED_DIRS) $(filter %.cpp %.cc %.cxx,$(LINT_SOURCES) )