Init basesystem source codes.
[staging/basesystem.git] / video_in_hal / nsframework / framework_unified / client / NativeServices / cfg / depends.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 #
18 # Standard Dependency Makefile Version 2.0
19 #
20 # Dependency file dictates not only what other modules the project is dependent on, but
21 # also where to get that dependent element which logically includes versioning or
22 # baselining information
23
24
25 # Begin User Build Location Definition
26 #  This is the prefixing information which dictates the versioning of dependant projects
27 #  Typically path statements will include some set of versioning information.
28
29 # The Repository Root is the base location of where a build is put in context
30 #  By default this is up a directory from the project root.  This is based on
31 #  the default local build where a component where a project is started to build is
32 #  on the same level as other components in the repository.  Otherwise a value can
33 #  be forced by setting the value before operating on the configuration file.
34 #
35 #  Example would be to setting the Repository Root to a baseline label name
36 #  where the contents of the baseline lable are exported to the filesystem.
37 ifndef REPOSITORY_ROOT
38 export REPOSITORY_ROOT = $(PRJ_ROOT)../
39 endif
40
41 # The Team Root is akin to the Repository Root.  It sets the location of
42 #  the root for other components in the same stream.  It is very rare to
43 #  modify the value of the team root.  However it is entirely possible that
44 #  the repository root and the team root are pointed to the same location.
45 # By default the Team Root is set to the workspace location of your project
46 ifndef TEAM_ROOT
47 export TEAM_ROOT = $(PRJ_ROOT)../
48 endif
49
50 # Setup the include paths for project functional dependencies by component.
51 # This is a list of include paths that should be done with relative locations
52 # that are relative to the repository root for all elements external to the
53 # component.  All Dependency includes should be based on the $(REPOSITORY_ROOT)
54 # all local (team/local) dependencies should be handled in the main makefile.
55 # Note: Internal include locations should be simply in the makefile directly using
56 # the './' as the notation for referencing location.
57 # EXCEPTION:  The first include is a TEAM_ROOT for the locally "globally" visible
58 # module(s) of the Domain.  (When doing the product release this is overridden)
59 DEPENDS_INCLUDES = \
60         $(CC_IFLAG)$(TEAM_ROOT)NativeServices/inc \
61         $(CC_IFLAG)$(TEAM_ROOT)NativeServices/inc/framework \
62         $(CC_IFLAG)$(TEAM_ROOT)NativeServices/inc/_CWORD77_ \
63         $(CC_IFLAG)$(TEAM_ROOT)NativeServices/inc/services \
64         $(CC_IFLAG)$(TEAM_ROOT)NativeServices/inc/utility \
65         $(CC_IFLAG)$(TEAM_ROOT)NativeServices/inc/native \
66         $(CC_IFLAG)$(TEAM_ROOT)NativeServices/inc/framework/statemachine \
67         $(CC_IFLAG)$(TEAM_ROOT)SystemServices/inc \
68         $(CC_IFLAG)$(TEAM_ROOT)NativeServices/inc/testautomationframework \
69         $(CC_IFLAG)$(REPOSITORY_ROOT)OpenSource/inc \
70
71 DEPENDS_LIB_PATHS = \
72         $(TEAM_ROOT)NativeServices/lib/$(TARGET)$(BUILD_CFG)/ \
73         $(TEAM_ROOT)NativeServices/dll/$(TARGET)$(BUILD_CFG)/
74
75 # BSP is required for PastModel002 because of mq (libmqS.a)
76 ifneq ($(TARGET),x86)
77         ifeq ($(PRODUCT_NAME),PastModel004)
78                 ifdef TARGET_BSP
79                         ifndef BSP
80                                 BSP = $(TARGET_BSP)
81                         endif
82                 endif
83                 ifndef BSP
84                         ifneq ($(findstring all,$(MAKECMDGOALS)),)
85 $(error \
86 $(\n) \
87 $(\n)***************************************************************************************** \
88 $(\n)!!!ERROR!!! BSP not defined.  Please, define TARGET_BSP variable in your make environment \
89 $(\n)***************************************************************************************** \
90 $(\n))
91                     endif
92                 else
93                         DEPENDS_LIB_PATHS += $(REPOSITORY_ROOT)/$(BSP)/prebuilt/armle-v7/usr/lib
94                 endif
95     endif
96 endif
97
98
99 #       $(REPOSITORY_ROOT)SystemServices/lib/$(TARGET)$(BUILD_CFG)/ \
100
101 # Setup library definintions.  Same rules
102 include $(TEAM_ROOT)NativeServices/cfg/nativeserviceslibraries.mk
103
104 # Setup the include location for the tools configuration.  This sets the
105 # standard tool definition locations.  By default these are local, but
106 # long term will be a standard component for a project to include.  This
107 # definition is inherited in cases that this is a recursive call.
108
109 # Set tools location
110 ifndef TOOLS_CFG
111 TOOLS_CFG = $(TEAM_ROOT)NativeServices/cfg/
112 endif
113
114 # Include the configuration
115 include $(TOOLS_CFG)config.mk