bake-toolkit 2.28.0 → 2.28.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/documentation/_build/html/_sources/changelog.txt +3 -0
- data/documentation/_build/html/_sources/index.txt +1 -1
- data/documentation/_build/html/_static/logo_tiny_48.png +0 -0
- data/documentation/_build/html/changelog.html +1154 -1149
- data/documentation/_build/html/commandline/commandline.html +285 -285
- data/documentation/_build/html/concepts/build_hierarchy.html +204 -204
- data/documentation/_build/html/concepts/concepts.html +196 -196
- data/documentation/_build/html/concepts/inject.html +216 -216
- data/documentation/_build/html/concepts/link_order.html +245 -245
- data/documentation/_build/html/concepts/prebuild.html +205 -205
- data/documentation/_build/html/concepts/the_main_project.html +260 -260
- data/documentation/_build/html/concepts/the_project_meta_file.html +288 -288
- data/documentation/_build/html/genindex.html +152 -152
- data/documentation/_build/html/ide/eclipse/eclipse.html +186 -186
- data/documentation/_build/html/ide/eclipse/how_to_convert_existing_cdt_workspace.html +208 -208
- data/documentation/_build/html/ide/eclipse/how_to_create_a_new_project_in_eclipse.html +191 -191
- data/documentation/_build/html/ide/eclipse/how_to_create_a_workspace_in_eclipse.html +198 -198
- data/documentation/_build/html/ide/eclipse/how_to_debug_in_eclipse.html +198 -198
- data/documentation/_build/html/ide/eclipse/how_to_install_eclipse_plugin.html +196 -196
- data/documentation/_build/html/ide/eclipse/how_to_use_bake_in_eclipse.html +256 -256
- data/documentation/_build/html/ide/ide_integrations.html +185 -185
- data/documentation/_build/html/ide/vs/how_to_create_vs_projects.html +171 -171
- data/documentation/_build/html/ide/vs/how_to_debug_in_vs.html +185 -185
- data/documentation/_build/html/ide/vs/how_to_used_bake_in_vs.html +190 -190
- data/documentation/_build/html/ide/vs/vs.html +170 -170
- data/documentation/_build/html/ide/vs/vs_install.html +202 -202
- data/documentation/_build/html/index.html +246 -246
- data/documentation/_build/html/install/install_bake.html +279 -279
- data/documentation/_build/html/internal.html +217 -217
- data/documentation/_build/html/known_issues.html +173 -173
- data/documentation/_build/html/license.html +236 -236
- data/documentation/_build/html/performance/performance.html +373 -373
- data/documentation/_build/html/quickstart/quickstart.html +236 -236
- data/documentation/_build/html/search.html +174 -174
- data/documentation/_build/html/searchindex.js +1 -1
- data/documentation/_build/html/syntax/adapt_configs.html +370 -370
- data/documentation/_build/html/syntax/auto_adjustment.html +189 -189
- data/documentation/_build/html/syntax/derive_configs.html +247 -247
- data/documentation/_build/html/syntax/project_meta_syntax.html +923 -923
- data/documentation/_build/html/syntax/syntax.html +196 -196
- data/documentation/_build/html/syntax/variable_substitutions.html +365 -365
- data/documentation/_build/html/tips_and_tricks/bakeclean.html +169 -169
- data/documentation/_build/html/tips_and_tricks/dot.html +186 -186
- data/documentation/_build/html/tips_and_tricks/how_to_use_bake_with_cygwin.html +214 -214
- data/documentation/_build/html/tips_and_tricks/qac.html +297 -297
- data/documentation/_build/html/tips_and_tricks/the_bakery.html +405 -405
- data/documentation/_build/html/tips_and_tricks/the_clang.html +201 -201
- data/documentation/_build/html/tips_and_tricks/tips_and_tricks.html +198 -198
- data/documentation/_build/html/why_bake/why_bake.html +241 -241
- data/lib/bake/config/checks.rb +76 -68
- data/lib/bake/model/metamodel.rb +6 -0
- data/lib/common/version.rb +1 -1
- metadata +3 -5
- data/documentation/_build/html/_sources/tips_and_tricks/static_code_analysis.txt +0 -122
- data/documentation/_build/html/_static/logo_conformant_48.png +0 -0
- data/documentation/_build/html/tips_and_tricks/static_code_analysis.html +0 -285
@@ -1,217 +1,217 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
5
|
-
<head>
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
-
|
8
|
-
<title>Injection and inheritance of IncludeDir and Dependency — bake documentation</title>
|
9
|
-
|
10
|
-
<link rel="stylesheet" href="../_static/basic.css" type="text/css" />
|
11
|
-
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
12
|
-
<link rel="stylesheet" href="../_static/bootswatch-3.3.4/sandstone/bootstrap.min.css" type="text/css" />
|
13
|
-
<link rel="stylesheet" href="../_static/bootstrap-sphinx.css" type="text/css" />
|
14
|
-
|
15
|
-
<script type="text/javascript">
|
16
|
-
var DOCUMENTATION_OPTIONS = {
|
17
|
-
URL_ROOT: '../',
|
18
|
-
VERSION: '',
|
19
|
-
COLLAPSE_INDEX: false,
|
20
|
-
FILE_SUFFIX: '.html',
|
21
|
-
HAS_SOURCE: true
|
22
|
-
};
|
23
|
-
</script>
|
24
|
-
<script type="text/javascript" src="../_static/jquery.js"></script>
|
25
|
-
<script type="text/javascript" src="../_static/underscore.js"></script>
|
26
|
-
<script type="text/javascript" src="../_static/doctools.js"></script>
|
27
|
-
<script type="text/javascript" src="../_static/js/jquery-1.11.0.min.js"></script>
|
28
|
-
<script type="text/javascript" src="../_static/js/jquery-fix.js"></script>
|
29
|
-
<script type="text/javascript" src="../_static/bootstrap-3.3.4/js/bootstrap.min.js"></script>
|
30
|
-
<script type="text/javascript" src="../_static/bootstrap-sphinx.js"></script>
|
31
|
-
<link rel="shortcut icon" href="../_static/logo_tiny_32.ico"/>
|
32
|
-
<link rel="top" title="bake documentation" href="../index.html" />
|
33
|
-
<link rel="up" title="Concepts" href="concepts.html" />
|
34
|
-
<link rel="next" title="Syntax" href="../syntax/syntax.html" />
|
35
|
-
<link rel="prev" title="Prebuild configurations for distributions" href="prebuild.html" />
|
36
|
-
<meta charset='utf-8'>
|
37
|
-
<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
|
38
|
-
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'>
|
39
|
-
<meta name="apple-mobile-web-app-capable" content="yes">
|
40
|
-
|
41
|
-
</head>
|
42
|
-
<body role="document">
|
43
|
-
|
44
|
-
<div id="navbar" class="navbar navbar-default navbar-fixed-top">
|
45
|
-
<div class="container">
|
46
|
-
<div class="navbar-header">
|
47
|
-
<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
|
48
|
-
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
|
49
|
-
<span class="icon-bar"></span>
|
50
|
-
<span class="icon-bar"></span>
|
51
|
-
<span class="icon-bar"></span>
|
52
|
-
</button>
|
53
|
-
<a class="navbar-brand" href="../index.html"><img src="../_static/
|
54
|
-
</a>
|
55
|
-
<span class="navbar-text navbar-version pull-left"><b></b></span>
|
56
|
-
</div>
|
57
|
-
|
58
|
-
<div class="collapse navbar-collapse nav-collapse">
|
59
|
-
<ul class="nav navbar-nav">
|
60
|
-
|
61
|
-
|
62
|
-
<li class="dropdown globaltoc-container">
|
63
|
-
<a role="button"
|
64
|
-
id="dLabelGlobalToc"
|
65
|
-
data-toggle="dropdown"
|
66
|
-
data-target="#"
|
67
|
-
href="../index.html">Section <b class="caret"></b></a>
|
68
|
-
<ul class="dropdown-menu globaltoc"
|
69
|
-
role="menu"
|
70
|
-
aria-labelledby="dLabelGlobalToc"><ul class="current">
|
71
|
-
<li class="toctree-l1"><a class="reference internal" href="../why_bake/why_bake.html">Why you should use bake</a></li>
|
72
|
-
<li class="toctree-l1"><a class="reference internal" href="../install/install_bake.html">Install bake</a></li>
|
73
|
-
<li class="toctree-l1"><a class="reference internal" href="../quickstart/quickstart.html">Quickstart</a></li>
|
74
|
-
<li class="toctree-l1 current"><a class="reference internal" href="concepts.html">Concepts</a></li>
|
75
|
-
<li class="toctree-l1"><a class="reference internal" href="../syntax/syntax.html">Syntax</a></li>
|
76
|
-
<li class="toctree-l1"><a class="reference internal" href="../commandline/commandline.html">Commandline</a></li>
|
77
|
-
<li class="toctree-l1"><a class="reference internal" href="../ide/ide_integrations.html">IDE Support</a></li>
|
78
|
-
<li class="toctree-l1"><a class="reference internal" href="../tips_and_tricks/tips_and_tricks.html">Additional features</a></li>
|
79
|
-
<li class="toctree-l1"><a class="reference internal" href="../performance/performance.html">Performance</a></li>
|
80
|
-
<li class="toctree-l1"><a class="reference internal" href="../known_issues.html">Known Issues</a></li>
|
81
|
-
<li class="toctree-l1"><a class="reference internal" href="../changelog.html">Changelog</a></li>
|
82
|
-
<li class="toctree-l1"><a class="reference internal" href="../license.html">License</a></li>
|
83
|
-
</ul>
|
84
|
-
<ul>
|
85
|
-
<li class="toctree-l1"><a class="reference internal" href="../internal.html">Internal developing notes</a></li>
|
86
|
-
</ul>
|
87
|
-
</ul>
|
88
|
-
</li>
|
89
|
-
|
90
|
-
<li class="dropdown">
|
91
|
-
<a role="button"
|
92
|
-
id="dLabelLocalToc"
|
93
|
-
data-toggle="dropdown"
|
94
|
-
data-target="#"
|
95
|
-
href="#">SubSections <b class="caret"></b></a>
|
96
|
-
<ul class="dropdown-menu localtoc"
|
97
|
-
role="menu"
|
98
|
-
aria-labelledby="dLabelLocalToc"><ul>
|
99
|
-
<li><a class="reference internal" href="#">Injection and inheritance of IncludeDir and Dependency</a><ul>
|
100
|
-
<li><a class="reference internal" href="#inherit-includedir">Inherit IncludeDir</a></li>
|
101
|
-
<li><a class="reference internal" href="#inject-includedir">Inject IncludeDir</a></li>
|
102
|
-
<li><a class="reference internal" href="#inject-dependency">Inject Dependency</a></li>
|
103
|
-
</ul>
|
104
|
-
</li>
|
105
|
-
</ul>
|
106
|
-
</ul>
|
107
|
-
</li>
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
<li>
|
114
|
-
<a href="prebuild.html" title="Previous Chapter: Prebuild configurations for distributions"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm hidden-tablet">« Prebuild conf...</span>
|
115
|
-
</a>
|
116
|
-
</li>
|
117
|
-
<li>
|
118
|
-
<a href="../syntax/syntax.html" title="Next Chapter: Syntax"><span class="glyphicon glyphicon-chevron-right visible-sm"></span><span class="hidden-sm hidden-tablet">Syntax »</span>
|
119
|
-
</a>
|
120
|
-
</li>
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
</ul>
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
<form class="navbar-form navbar-right" action="../search.html" method="get">
|
131
|
-
<div class="form-group">
|
132
|
-
<input type="text" name="q" class="form-control" placeholder="Search" />
|
133
|
-
</div>
|
134
|
-
<input type="hidden" name="check_keywords" value="yes" />
|
135
|
-
<input type="hidden" name="area" value="default" />
|
136
|
-
</form>
|
137
|
-
|
138
|
-
</div>
|
139
|
-
</div>
|
140
|
-
</div>
|
141
|
-
|
142
|
-
<div class="container">
|
143
|
-
<div class="row">
|
144
|
-
<div class="col-md-12">
|
145
|
-
|
146
|
-
<div class="section" id="injection-and-inheritance-of-includedir-and-dependency">
|
147
|
-
<h1>Injection and inheritance of IncludeDir and Dependency<a class="headerlink" href="#injection-and-inheritance-of-includedir-and-dependency" title="Permalink to this headline">¶</a></h1>
|
148
|
-
<p>It is possible to inject and inherit “includes” and inject “dependencies”.</p>
|
149
|
-
<div class="section" id="inherit-includedir">
|
150
|
-
<h2>Inherit IncludeDir<a class="headerlink" href="#inherit-includedir" title="Permalink to this headline">¶</a></h2>
|
151
|
-
<div class="highlight-console"><div class="highlight"><pre><span class="go">IncludeDir include, inherit: true</span>
|
152
|
-
</pre></div>
|
153
|
-
</div>
|
154
|
-
<p>This is typically used to make include directories available to upper levels, e.g.:</p>
|
155
|
-
<div class="highlight-console"><div class="highlight"><pre><span class="gp">#</span> in MyLib/Project.meta
|
156
|
-
<span class="go">LibraryConfig Lib {</span>
|
157
|
-
<span class="go"> ...</span>
|
158
|
-
<span class="go"> IncludeDir include, inherit: true</span>
|
159
|
-
<span class="go">}</span>
|
160
|
-
|
161
|
-
<span class="gp">#</span> in main/Project.meta
|
162
|
-
<span class="go">ExecutableConfig Debug {</span>
|
163
|
-
<span class="go"> ...</span>
|
164
|
-
<span class="go"> Dependency MyLib, config: Lib</span>
|
165
|
-
<span class="go"> # IncludeDir "MyLib/include" - not needed because this IncludeDir is inherited</span>
|
166
|
-
<span class="go">}</span>
|
167
|
-
</pre></div>
|
168
|
-
</div>
|
169
|
-
</div>
|
170
|
-
<div class="section" id="inject-includedir">
|
171
|
-
<h2>Inject IncludeDir<a class="headerlink" href="#inject-includedir" title="Permalink to this headline">¶</a></h2>
|
172
|
-
<div class="highlight-console"><div class="highlight"><pre><span class="go">IncludeDir "mock/include", inject: front</span>
|
173
|
-
</pre></div>
|
174
|
-
</div>
|
175
|
-
<p>“front” is used for mocking IncludeDirs, e.g. if a library shall include a mocked class instead of the original one in UnitTest context.</p>
|
176
|
-
<div class="highlight-console"><div class="highlight"><pre><span class="go">IncludeDir include, inject: back</span>
|
177
|
-
</pre></div>
|
178
|
-
</div>
|
179
|
-
<p>“back” is used if the lower levels do not know by themselves what to include. So this has to be configured from the outside, typically in the main project.</p>
|
180
|
-
</div>
|
181
|
-
<div class="section" id="inject-dependency">
|
182
|
-
<h2>Inject Dependency<a class="headerlink" href="#inject-dependency" title="Permalink to this headline">¶</a></h2>
|
183
|
-
<div class="highlight-console"><div class="highlight"><pre><span class="go">Dependency MyLib, inject: front # or back</span>
|
184
|
-
</pre></div>
|
185
|
-
</div>
|
186
|
-
<p>This is used if a component cannot have this dependency hard coded, because it shall not know the concrete implementation or the dependency is only used for unittesting.</p>
|
187
|
-
<p>Example:</p>
|
188
|
-
<div class="highlight-console"><div class="highlight"><pre><span class="go">ExecutableConfig UnitTest {</span>
|
189
|
-
<span class="go"> ...</span>
|
190
|
-
<span class="go"> Dependency config: Lib</span>
|
191
|
-
<span class="go"> Dependency googleTest, inject: front</span>
|
192
|
-
<span class="go">}</span>
|
193
|
-
</pre></div>
|
194
|
-
</div>
|
195
|
-
<p>In this example the config Lib depends on googleTest. If googleTest inherits an IncludeDir, this would be known by Lib.</p>
|
196
|
-
</div>
|
197
|
-
</div>
|
198
|
-
|
199
|
-
|
200
|
-
</div>
|
201
|
-
|
202
|
-
</div>
|
203
|
-
</div>
|
204
|
-
<footer class="footer">
|
205
|
-
<div class="container">
|
206
|
-
<p class="pull-right">
|
207
|
-
<a href="#">Back to top</a>
|
208
|
-
|
209
|
-
</p>
|
210
|
-
<p>
|
211
|
-
© Copyright 2016, E.S.R.Labs AG.<br/>
|
212
|
-
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.1.<br/>
|
213
|
-
</p>
|
214
|
-
</div>
|
215
|
-
</footer>
|
216
|
-
</body>
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
5
|
+
<head>
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
+
|
8
|
+
<title>Injection and inheritance of IncludeDir and Dependency — bake documentation</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="../_static/basic.css" type="text/css" />
|
11
|
+
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
12
|
+
<link rel="stylesheet" href="../_static/bootswatch-3.3.4/sandstone/bootstrap.min.css" type="text/css" />
|
13
|
+
<link rel="stylesheet" href="../_static/bootstrap-sphinx.css" type="text/css" />
|
14
|
+
|
15
|
+
<script type="text/javascript">
|
16
|
+
var DOCUMENTATION_OPTIONS = {
|
17
|
+
URL_ROOT: '../',
|
18
|
+
VERSION: '',
|
19
|
+
COLLAPSE_INDEX: false,
|
20
|
+
FILE_SUFFIX: '.html',
|
21
|
+
HAS_SOURCE: true
|
22
|
+
};
|
23
|
+
</script>
|
24
|
+
<script type="text/javascript" src="../_static/jquery.js"></script>
|
25
|
+
<script type="text/javascript" src="../_static/underscore.js"></script>
|
26
|
+
<script type="text/javascript" src="../_static/doctools.js"></script>
|
27
|
+
<script type="text/javascript" src="../_static/js/jquery-1.11.0.min.js"></script>
|
28
|
+
<script type="text/javascript" src="../_static/js/jquery-fix.js"></script>
|
29
|
+
<script type="text/javascript" src="../_static/bootstrap-3.3.4/js/bootstrap.min.js"></script>
|
30
|
+
<script type="text/javascript" src="../_static/bootstrap-sphinx.js"></script>
|
31
|
+
<link rel="shortcut icon" href="../_static/logo_tiny_32.ico"/>
|
32
|
+
<link rel="top" title="bake documentation" href="../index.html" />
|
33
|
+
<link rel="up" title="Concepts" href="concepts.html" />
|
34
|
+
<link rel="next" title="Syntax" href="../syntax/syntax.html" />
|
35
|
+
<link rel="prev" title="Prebuild configurations for distributions" href="prebuild.html" />
|
36
|
+
<meta charset='utf-8'>
|
37
|
+
<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
|
38
|
+
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'>
|
39
|
+
<meta name="apple-mobile-web-app-capable" content="yes">
|
40
|
+
|
41
|
+
</head>
|
42
|
+
<body role="document">
|
43
|
+
|
44
|
+
<div id="navbar" class="navbar navbar-default navbar-fixed-top">
|
45
|
+
<div class="container">
|
46
|
+
<div class="navbar-header">
|
47
|
+
<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
|
48
|
+
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
|
49
|
+
<span class="icon-bar"></span>
|
50
|
+
<span class="icon-bar"></span>
|
51
|
+
<span class="icon-bar"></span>
|
52
|
+
</button>
|
53
|
+
<a class="navbar-brand" href="../index.html"><img src="../_static/logo_tiny_48.png">
|
54
|
+
</a>
|
55
|
+
<span class="navbar-text navbar-version pull-left"><b></b></span>
|
56
|
+
</div>
|
57
|
+
|
58
|
+
<div class="collapse navbar-collapse nav-collapse">
|
59
|
+
<ul class="nav navbar-nav">
|
60
|
+
|
61
|
+
|
62
|
+
<li class="dropdown globaltoc-container">
|
63
|
+
<a role="button"
|
64
|
+
id="dLabelGlobalToc"
|
65
|
+
data-toggle="dropdown"
|
66
|
+
data-target="#"
|
67
|
+
href="../index.html">Section <b class="caret"></b></a>
|
68
|
+
<ul class="dropdown-menu globaltoc"
|
69
|
+
role="menu"
|
70
|
+
aria-labelledby="dLabelGlobalToc"><ul class="current">
|
71
|
+
<li class="toctree-l1"><a class="reference internal" href="../why_bake/why_bake.html">Why you should use bake</a></li>
|
72
|
+
<li class="toctree-l1"><a class="reference internal" href="../install/install_bake.html">Install bake</a></li>
|
73
|
+
<li class="toctree-l1"><a class="reference internal" href="../quickstart/quickstart.html">Quickstart</a></li>
|
74
|
+
<li class="toctree-l1 current"><a class="reference internal" href="concepts.html">Concepts</a></li>
|
75
|
+
<li class="toctree-l1"><a class="reference internal" href="../syntax/syntax.html">Syntax</a></li>
|
76
|
+
<li class="toctree-l1"><a class="reference internal" href="../commandline/commandline.html">Commandline</a></li>
|
77
|
+
<li class="toctree-l1"><a class="reference internal" href="../ide/ide_integrations.html">IDE Support</a></li>
|
78
|
+
<li class="toctree-l1"><a class="reference internal" href="../tips_and_tricks/tips_and_tricks.html">Additional features</a></li>
|
79
|
+
<li class="toctree-l1"><a class="reference internal" href="../performance/performance.html">Performance</a></li>
|
80
|
+
<li class="toctree-l1"><a class="reference internal" href="../known_issues.html">Known Issues</a></li>
|
81
|
+
<li class="toctree-l1"><a class="reference internal" href="../changelog.html">Changelog</a></li>
|
82
|
+
<li class="toctree-l1"><a class="reference internal" href="../license.html">License</a></li>
|
83
|
+
</ul>
|
84
|
+
<ul>
|
85
|
+
<li class="toctree-l1"><a class="reference internal" href="../internal.html">Internal developing notes</a></li>
|
86
|
+
</ul>
|
87
|
+
</ul>
|
88
|
+
</li>
|
89
|
+
|
90
|
+
<li class="dropdown">
|
91
|
+
<a role="button"
|
92
|
+
id="dLabelLocalToc"
|
93
|
+
data-toggle="dropdown"
|
94
|
+
data-target="#"
|
95
|
+
href="#">SubSections <b class="caret"></b></a>
|
96
|
+
<ul class="dropdown-menu localtoc"
|
97
|
+
role="menu"
|
98
|
+
aria-labelledby="dLabelLocalToc"><ul>
|
99
|
+
<li><a class="reference internal" href="#">Injection and inheritance of IncludeDir and Dependency</a><ul>
|
100
|
+
<li><a class="reference internal" href="#inherit-includedir">Inherit IncludeDir</a></li>
|
101
|
+
<li><a class="reference internal" href="#inject-includedir">Inject IncludeDir</a></li>
|
102
|
+
<li><a class="reference internal" href="#inject-dependency">Inject Dependency</a></li>
|
103
|
+
</ul>
|
104
|
+
</li>
|
105
|
+
</ul>
|
106
|
+
</ul>
|
107
|
+
</li>
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
<li>
|
114
|
+
<a href="prebuild.html" title="Previous Chapter: Prebuild configurations for distributions"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm hidden-tablet">« Prebuild conf...</span>
|
115
|
+
</a>
|
116
|
+
</li>
|
117
|
+
<li>
|
118
|
+
<a href="../syntax/syntax.html" title="Next Chapter: Syntax"><span class="glyphicon glyphicon-chevron-right visible-sm"></span><span class="hidden-sm hidden-tablet">Syntax »</span>
|
119
|
+
</a>
|
120
|
+
</li>
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
</ul>
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
<form class="navbar-form navbar-right" action="../search.html" method="get">
|
131
|
+
<div class="form-group">
|
132
|
+
<input type="text" name="q" class="form-control" placeholder="Search" />
|
133
|
+
</div>
|
134
|
+
<input type="hidden" name="check_keywords" value="yes" />
|
135
|
+
<input type="hidden" name="area" value="default" />
|
136
|
+
</form>
|
137
|
+
|
138
|
+
</div>
|
139
|
+
</div>
|
140
|
+
</div>
|
141
|
+
|
142
|
+
<div class="container">
|
143
|
+
<div class="row">
|
144
|
+
<div class="col-md-12">
|
145
|
+
|
146
|
+
<div class="section" id="injection-and-inheritance-of-includedir-and-dependency">
|
147
|
+
<h1>Injection and inheritance of IncludeDir and Dependency<a class="headerlink" href="#injection-and-inheritance-of-includedir-and-dependency" title="Permalink to this headline">¶</a></h1>
|
148
|
+
<p>It is possible to inject and inherit “includes” and inject “dependencies”.</p>
|
149
|
+
<div class="section" id="inherit-includedir">
|
150
|
+
<h2>Inherit IncludeDir<a class="headerlink" href="#inherit-includedir" title="Permalink to this headline">¶</a></h2>
|
151
|
+
<div class="highlight-console"><div class="highlight"><pre><span class="go">IncludeDir include, inherit: true</span>
|
152
|
+
</pre></div>
|
153
|
+
</div>
|
154
|
+
<p>This is typically used to make include directories available to upper levels, e.g.:</p>
|
155
|
+
<div class="highlight-console"><div class="highlight"><pre><span class="gp">#</span> in MyLib/Project.meta
|
156
|
+
<span class="go">LibraryConfig Lib {</span>
|
157
|
+
<span class="go"> ...</span>
|
158
|
+
<span class="go"> IncludeDir include, inherit: true</span>
|
159
|
+
<span class="go">}</span>
|
160
|
+
|
161
|
+
<span class="gp">#</span> in main/Project.meta
|
162
|
+
<span class="go">ExecutableConfig Debug {</span>
|
163
|
+
<span class="go"> ...</span>
|
164
|
+
<span class="go"> Dependency MyLib, config: Lib</span>
|
165
|
+
<span class="go"> # IncludeDir "MyLib/include" - not needed because this IncludeDir is inherited</span>
|
166
|
+
<span class="go">}</span>
|
167
|
+
</pre></div>
|
168
|
+
</div>
|
169
|
+
</div>
|
170
|
+
<div class="section" id="inject-includedir">
|
171
|
+
<h2>Inject IncludeDir<a class="headerlink" href="#inject-includedir" title="Permalink to this headline">¶</a></h2>
|
172
|
+
<div class="highlight-console"><div class="highlight"><pre><span class="go">IncludeDir "mock/include", inject: front</span>
|
173
|
+
</pre></div>
|
174
|
+
</div>
|
175
|
+
<p>“front” is used for mocking IncludeDirs, e.g. if a library shall include a mocked class instead of the original one in UnitTest context.</p>
|
176
|
+
<div class="highlight-console"><div class="highlight"><pre><span class="go">IncludeDir include, inject: back</span>
|
177
|
+
</pre></div>
|
178
|
+
</div>
|
179
|
+
<p>“back” is used if the lower levels do not know by themselves what to include. So this has to be configured from the outside, typically in the main project.</p>
|
180
|
+
</div>
|
181
|
+
<div class="section" id="inject-dependency">
|
182
|
+
<h2>Inject Dependency<a class="headerlink" href="#inject-dependency" title="Permalink to this headline">¶</a></h2>
|
183
|
+
<div class="highlight-console"><div class="highlight"><pre><span class="go">Dependency MyLib, inject: front # or back</span>
|
184
|
+
</pre></div>
|
185
|
+
</div>
|
186
|
+
<p>This is used if a component cannot have this dependency hard coded, because it shall not know the concrete implementation or the dependency is only used for unittesting.</p>
|
187
|
+
<p>Example:</p>
|
188
|
+
<div class="highlight-console"><div class="highlight"><pre><span class="go">ExecutableConfig UnitTest {</span>
|
189
|
+
<span class="go"> ...</span>
|
190
|
+
<span class="go"> Dependency config: Lib</span>
|
191
|
+
<span class="go"> Dependency googleTest, inject: front</span>
|
192
|
+
<span class="go">}</span>
|
193
|
+
</pre></div>
|
194
|
+
</div>
|
195
|
+
<p>In this example the config Lib depends on googleTest. If googleTest inherits an IncludeDir, this would be known by Lib.</p>
|
196
|
+
</div>
|
197
|
+
</div>
|
198
|
+
|
199
|
+
|
200
|
+
</div>
|
201
|
+
|
202
|
+
</div>
|
203
|
+
</div>
|
204
|
+
<footer class="footer">
|
205
|
+
<div class="container">
|
206
|
+
<p class="pull-right">
|
207
|
+
<a href="#">Back to top</a>
|
208
|
+
|
209
|
+
</p>
|
210
|
+
<p>
|
211
|
+
© Copyright 2016, E.S.R.Labs AG.<br/>
|
212
|
+
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.1.<br/>
|
213
|
+
</p>
|
214
|
+
</div>
|
215
|
+
</footer>
|
216
|
+
</body>
|
217
217
|
</html>
|
@@ -1,246 +1,246 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
5
|
-
<head>
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
-
|
8
|
-
<title>The link order — bake documentation</title>
|
9
|
-
|
10
|
-
<link rel="stylesheet" href="../_static/basic.css" type="text/css" />
|
11
|
-
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
12
|
-
<link rel="stylesheet" href="../_static/bootswatch-3.3.4/sandstone/bootstrap.min.css" type="text/css" />
|
13
|
-
<link rel="stylesheet" href="../_static/bootstrap-sphinx.css" type="text/css" />
|
14
|
-
|
15
|
-
<script type="text/javascript">
|
16
|
-
var DOCUMENTATION_OPTIONS = {
|
17
|
-
URL_ROOT: '../',
|
18
|
-
VERSION: '',
|
19
|
-
COLLAPSE_INDEX: false,
|
20
|
-
FILE_SUFFIX: '.html',
|
21
|
-
HAS_SOURCE: true
|
22
|
-
};
|
23
|
-
</script>
|
24
|
-
<script type="text/javascript" src="../_static/jquery.js"></script>
|
25
|
-
<script type="text/javascript" src="../_static/underscore.js"></script>
|
26
|
-
<script type="text/javascript" src="../_static/doctools.js"></script>
|
27
|
-
<script type="text/javascript" src="../_static/js/jquery-1.11.0.min.js"></script>
|
28
|
-
<script type="text/javascript" src="../_static/js/jquery-fix.js"></script>
|
29
|
-
<script type="text/javascript" src="../_static/bootstrap-3.3.4/js/bootstrap.min.js"></script>
|
30
|
-
<script type="text/javascript" src="../_static/bootstrap-sphinx.js"></script>
|
31
|
-
<link rel="shortcut icon" href="../_static/logo_tiny_32.ico"/>
|
32
|
-
<link rel="top" title="bake documentation" href="../index.html" />
|
33
|
-
<link rel="up" title="Concepts" href="concepts.html" />
|
34
|
-
<link rel="next" title="Prebuild configurations for distributions" href="prebuild.html" />
|
35
|
-
<link rel="prev" title="The build hierarchy" href="build_hierarchy.html" />
|
36
|
-
<meta charset='utf-8'>
|
37
|
-
<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
|
38
|
-
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'>
|
39
|
-
<meta name="apple-mobile-web-app-capable" content="yes">
|
40
|
-
|
41
|
-
</head>
|
42
|
-
<body role="document">
|
43
|
-
|
44
|
-
<div id="navbar" class="navbar navbar-default navbar-fixed-top">
|
45
|
-
<div class="container">
|
46
|
-
<div class="navbar-header">
|
47
|
-
<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
|
48
|
-
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
|
49
|
-
<span class="icon-bar"></span>
|
50
|
-
<span class="icon-bar"></span>
|
51
|
-
<span class="icon-bar"></span>
|
52
|
-
</button>
|
53
|
-
<a class="navbar-brand" href="../index.html"><img src="../_static/
|
54
|
-
</a>
|
55
|
-
<span class="navbar-text navbar-version pull-left"><b></b></span>
|
56
|
-
</div>
|
57
|
-
|
58
|
-
<div class="collapse navbar-collapse nav-collapse">
|
59
|
-
<ul class="nav navbar-nav">
|
60
|
-
|
61
|
-
|
62
|
-
<li class="dropdown globaltoc-container">
|
63
|
-
<a role="button"
|
64
|
-
id="dLabelGlobalToc"
|
65
|
-
data-toggle="dropdown"
|
66
|
-
data-target="#"
|
67
|
-
href="../index.html">Section <b class="caret"></b></a>
|
68
|
-
<ul class="dropdown-menu globaltoc"
|
69
|
-
role="menu"
|
70
|
-
aria-labelledby="dLabelGlobalToc"><ul class="current">
|
71
|
-
<li class="toctree-l1"><a class="reference internal" href="../why_bake/why_bake.html">Why you should use bake</a></li>
|
72
|
-
<li class="toctree-l1"><a class="reference internal" href="../install/install_bake.html">Install bake</a></li>
|
73
|
-
<li class="toctree-l1"><a class="reference internal" href="../quickstart/quickstart.html">Quickstart</a></li>
|
74
|
-
<li class="toctree-l1 current"><a class="reference internal" href="concepts.html">Concepts</a></li>
|
75
|
-
<li class="toctree-l1"><a class="reference internal" href="../syntax/syntax.html">Syntax</a></li>
|
76
|
-
<li class="toctree-l1"><a class="reference internal" href="../commandline/commandline.html">Commandline</a></li>
|
77
|
-
<li class="toctree-l1"><a class="reference internal" href="../ide/ide_integrations.html">IDE Support</a></li>
|
78
|
-
<li class="toctree-l1"><a class="reference internal" href="../tips_and_tricks/tips_and_tricks.html">Additional features</a></li>
|
79
|
-
<li class="toctree-l1"><a class="reference internal" href="../performance/performance.html">Performance</a></li>
|
80
|
-
<li class="toctree-l1"><a class="reference internal" href="../known_issues.html">Known Issues</a></li>
|
81
|
-
<li class="toctree-l1"><a class="reference internal" href="../changelog.html">Changelog</a></li>
|
82
|
-
<li class="toctree-l1"><a class="reference internal" href="../license.html">License</a></li>
|
83
|
-
</ul>
|
84
|
-
<ul>
|
85
|
-
<li class="toctree-l1"><a class="reference internal" href="../internal.html">Internal developing notes</a></li>
|
86
|
-
</ul>
|
87
|
-
</ul>
|
88
|
-
</li>
|
89
|
-
|
90
|
-
<li class="dropdown">
|
91
|
-
<a role="button"
|
92
|
-
id="dLabelLocalToc"
|
93
|
-
data-toggle="dropdown"
|
94
|
-
data-target="#"
|
95
|
-
href="#">SubSections <b class="caret"></b></a>
|
96
|
-
<ul class="dropdown-menu localtoc"
|
97
|
-
role="menu"
|
98
|
-
aria-labelledby="dLabelLocalToc"><ul>
|
99
|
-
<li><a class="reference internal" href="#">The link order</a><ul>
|
100
|
-
<li><a class="reference internal" href="#example">Example:</a></li>
|
101
|
-
<li><a class="reference internal" href="#same-example-but-with-external-libraries">Same example but with external libraries:</a></li>
|
102
|
-
</ul>
|
103
|
-
</li>
|
104
|
-
</ul>
|
105
|
-
</ul>
|
106
|
-
</li>
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
<li>
|
113
|
-
<a href="build_hierarchy.html" title="Previous Chapter: The build hierarchy"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm hidden-tablet">« The build hie...</span>
|
114
|
-
</a>
|
115
|
-
</li>
|
116
|
-
<li>
|
117
|
-
<a href="prebuild.html" title="Next Chapter: Prebuild configurations for distributions"><span class="glyphicon glyphicon-chevron-right visible-sm"></span><span class="hidden-sm hidden-tablet">Prebuild conf... »</span>
|
118
|
-
</a>
|
119
|
-
</li>
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
</ul>
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
<form class="navbar-form navbar-right" action="../search.html" method="get">
|
130
|
-
<div class="form-group">
|
131
|
-
<input type="text" name="q" class="form-control" placeholder="Search" />
|
132
|
-
</div>
|
133
|
-
<input type="hidden" name="check_keywords" value="yes" />
|
134
|
-
<input type="hidden" name="area" value="default" />
|
135
|
-
</form>
|
136
|
-
|
137
|
-
</div>
|
138
|
-
</div>
|
139
|
-
</div>
|
140
|
-
|
141
|
-
<div class="container">
|
142
|
-
<div class="row">
|
143
|
-
<div class="col-md-12">
|
144
|
-
|
145
|
-
<div class="section" id="the-link-order">
|
146
|
-
<h1>The link order<a class="headerlink" href="#the-link-order" title="Permalink to this headline">¶</a></h1>
|
147
|
-
<p>The link order depends on the order of library definitions and dependencies in the Project.meta files.</p>
|
148
|
-
<p>In general, if a library X depends on a library Y, the library X must be linked before Y.</p>
|
149
|
-
<div class="section" id="example">
|
150
|
-
<h2>Example:<a class="headerlink" href="#example" title="Permalink to this headline">¶</a></h2>
|
151
|
-
<div class="highlight-console"><div class="highlight"><pre><span class="go">Project A:</span>
|
152
|
-
|
153
|
-
<span class="go">Dependency B</span>
|
154
|
-
<span class="go">Dependency C</span>
|
155
|
-
</pre></div>
|
156
|
-
</div>
|
157
|
-
<div class="highlight-console"><div class="highlight"><pre><span class="go">Project B:</span>
|
158
|
-
|
159
|
-
<span class="go">Dependency D</span>
|
160
|
-
</pre></div>
|
161
|
-
</div>
|
162
|
-
<div class="highlight-console"><div class="highlight"><pre><span class="go">Project C:</span>
|
163
|
-
|
164
|
-
<span class="go">Dependency D</span>
|
165
|
-
</pre></div>
|
166
|
-
</div>
|
167
|
-
<div class="highlight-console"><div class="highlight"><pre><span class="go">Project D:</span>
|
168
|
-
</pre></div>
|
169
|
-
</div>
|
170
|
-
<p>The link order will be</p>
|
171
|
-
<ul class="simple">
|
172
|
-
<li>Objects of A</li>
|
173
|
-
<li>B</li>
|
174
|
-
<li>C</li>
|
175
|
-
<li>D</li>
|
176
|
-
</ul>
|
177
|
-
</div>
|
178
|
-
<div class="section" id="same-example-but-with-external-libraries">
|
179
|
-
<h2>Same example but with external libraries:<a class="headerlink" href="#same-example-but-with-external-libraries" title="Permalink to this headline">¶</a></h2>
|
180
|
-
<div class="highlight-console"><div class="highlight"><pre><span class="go">Project A:</span>
|
181
|
-
|
182
|
-
<span class="go">ExternalLibrary a1</span>
|
183
|
-
<span class="go">Dependency B</span>
|
184
|
-
<span class="go">ExternalLibrary a2</span>
|
185
|
-
<span class="go">Dependency C</span>
|
186
|
-
<span class="go">ExternalLibrary a3</span>
|
187
|
-
</pre></div>
|
188
|
-
</div>
|
189
|
-
<div class="highlight-console"><div class="highlight"><pre><span class="go">Project B:</span>
|
190
|
-
|
191
|
-
<span class="go">ExternalLibrary b1</span>
|
192
|
-
<span class="go">Dependency D</span>
|
193
|
-
<span class="go">ExternalLibrary b2</span>
|
194
|
-
</pre></div>
|
195
|
-
</div>
|
196
|
-
<div class="highlight-console"><div class="highlight"><pre><span class="go">Project C:</span>
|
197
|
-
|
198
|
-
<span class="go">ExternalLibrary c1</span>
|
199
|
-
<span class="go">Dependency D</span>
|
200
|
-
<span class="go">ExternalLibrary c2</span>
|
201
|
-
</pre></div>
|
202
|
-
</div>
|
203
|
-
<div class="highlight-console"><div class="highlight"><pre><span class="go">Project D:</span>
|
204
|
-
|
205
|
-
<span class="go">ExternalLibrary d1</span>
|
206
|
-
<span class="go">ExternalLibrary d2</span>
|
207
|
-
</pre></div>
|
208
|
-
</div>
|
209
|
-
<p>The link order will be</p>
|
210
|
-
<ul class="simple">
|
211
|
-
<li>Objects of A</li>
|
212
|
-
<li>a1</li>
|
213
|
-
<li>B</li>
|
214
|
-
<li>b1</li>
|
215
|
-
<li>b2</li>
|
216
|
-
<li>a2</li>
|
217
|
-
<li>C</li>
|
218
|
-
<li>c1</li>
|
219
|
-
<li>D</li>
|
220
|
-
<li>d1</li>
|
221
|
-
<li>d2</li>
|
222
|
-
<li>c2</li>
|
223
|
-
<li>a3</li>
|
224
|
-
</ul>
|
225
|
-
</div>
|
226
|
-
</div>
|
227
|
-
|
228
|
-
|
229
|
-
</div>
|
230
|
-
|
231
|
-
</div>
|
232
|
-
</div>
|
233
|
-
<footer class="footer">
|
234
|
-
<div class="container">
|
235
|
-
<p class="pull-right">
|
236
|
-
<a href="#">Back to top</a>
|
237
|
-
|
238
|
-
</p>
|
239
|
-
<p>
|
240
|
-
© Copyright 2016, E.S.R.Labs AG.<br/>
|
241
|
-
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.1.<br/>
|
242
|
-
</p>
|
243
|
-
</div>
|
244
|
-
</footer>
|
245
|
-
</body>
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
5
|
+
<head>
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
+
|
8
|
+
<title>The link order — bake documentation</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="../_static/basic.css" type="text/css" />
|
11
|
+
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
12
|
+
<link rel="stylesheet" href="../_static/bootswatch-3.3.4/sandstone/bootstrap.min.css" type="text/css" />
|
13
|
+
<link rel="stylesheet" href="../_static/bootstrap-sphinx.css" type="text/css" />
|
14
|
+
|
15
|
+
<script type="text/javascript">
|
16
|
+
var DOCUMENTATION_OPTIONS = {
|
17
|
+
URL_ROOT: '../',
|
18
|
+
VERSION: '',
|
19
|
+
COLLAPSE_INDEX: false,
|
20
|
+
FILE_SUFFIX: '.html',
|
21
|
+
HAS_SOURCE: true
|
22
|
+
};
|
23
|
+
</script>
|
24
|
+
<script type="text/javascript" src="../_static/jquery.js"></script>
|
25
|
+
<script type="text/javascript" src="../_static/underscore.js"></script>
|
26
|
+
<script type="text/javascript" src="../_static/doctools.js"></script>
|
27
|
+
<script type="text/javascript" src="../_static/js/jquery-1.11.0.min.js"></script>
|
28
|
+
<script type="text/javascript" src="../_static/js/jquery-fix.js"></script>
|
29
|
+
<script type="text/javascript" src="../_static/bootstrap-3.3.4/js/bootstrap.min.js"></script>
|
30
|
+
<script type="text/javascript" src="../_static/bootstrap-sphinx.js"></script>
|
31
|
+
<link rel="shortcut icon" href="../_static/logo_tiny_32.ico"/>
|
32
|
+
<link rel="top" title="bake documentation" href="../index.html" />
|
33
|
+
<link rel="up" title="Concepts" href="concepts.html" />
|
34
|
+
<link rel="next" title="Prebuild configurations for distributions" href="prebuild.html" />
|
35
|
+
<link rel="prev" title="The build hierarchy" href="build_hierarchy.html" />
|
36
|
+
<meta charset='utf-8'>
|
37
|
+
<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
|
38
|
+
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'>
|
39
|
+
<meta name="apple-mobile-web-app-capable" content="yes">
|
40
|
+
|
41
|
+
</head>
|
42
|
+
<body role="document">
|
43
|
+
|
44
|
+
<div id="navbar" class="navbar navbar-default navbar-fixed-top">
|
45
|
+
<div class="container">
|
46
|
+
<div class="navbar-header">
|
47
|
+
<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
|
48
|
+
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
|
49
|
+
<span class="icon-bar"></span>
|
50
|
+
<span class="icon-bar"></span>
|
51
|
+
<span class="icon-bar"></span>
|
52
|
+
</button>
|
53
|
+
<a class="navbar-brand" href="../index.html"><img src="../_static/logo_tiny_48.png">
|
54
|
+
</a>
|
55
|
+
<span class="navbar-text navbar-version pull-left"><b></b></span>
|
56
|
+
</div>
|
57
|
+
|
58
|
+
<div class="collapse navbar-collapse nav-collapse">
|
59
|
+
<ul class="nav navbar-nav">
|
60
|
+
|
61
|
+
|
62
|
+
<li class="dropdown globaltoc-container">
|
63
|
+
<a role="button"
|
64
|
+
id="dLabelGlobalToc"
|
65
|
+
data-toggle="dropdown"
|
66
|
+
data-target="#"
|
67
|
+
href="../index.html">Section <b class="caret"></b></a>
|
68
|
+
<ul class="dropdown-menu globaltoc"
|
69
|
+
role="menu"
|
70
|
+
aria-labelledby="dLabelGlobalToc"><ul class="current">
|
71
|
+
<li class="toctree-l1"><a class="reference internal" href="../why_bake/why_bake.html">Why you should use bake</a></li>
|
72
|
+
<li class="toctree-l1"><a class="reference internal" href="../install/install_bake.html">Install bake</a></li>
|
73
|
+
<li class="toctree-l1"><a class="reference internal" href="../quickstart/quickstart.html">Quickstart</a></li>
|
74
|
+
<li class="toctree-l1 current"><a class="reference internal" href="concepts.html">Concepts</a></li>
|
75
|
+
<li class="toctree-l1"><a class="reference internal" href="../syntax/syntax.html">Syntax</a></li>
|
76
|
+
<li class="toctree-l1"><a class="reference internal" href="../commandline/commandline.html">Commandline</a></li>
|
77
|
+
<li class="toctree-l1"><a class="reference internal" href="../ide/ide_integrations.html">IDE Support</a></li>
|
78
|
+
<li class="toctree-l1"><a class="reference internal" href="../tips_and_tricks/tips_and_tricks.html">Additional features</a></li>
|
79
|
+
<li class="toctree-l1"><a class="reference internal" href="../performance/performance.html">Performance</a></li>
|
80
|
+
<li class="toctree-l1"><a class="reference internal" href="../known_issues.html">Known Issues</a></li>
|
81
|
+
<li class="toctree-l1"><a class="reference internal" href="../changelog.html">Changelog</a></li>
|
82
|
+
<li class="toctree-l1"><a class="reference internal" href="../license.html">License</a></li>
|
83
|
+
</ul>
|
84
|
+
<ul>
|
85
|
+
<li class="toctree-l1"><a class="reference internal" href="../internal.html">Internal developing notes</a></li>
|
86
|
+
</ul>
|
87
|
+
</ul>
|
88
|
+
</li>
|
89
|
+
|
90
|
+
<li class="dropdown">
|
91
|
+
<a role="button"
|
92
|
+
id="dLabelLocalToc"
|
93
|
+
data-toggle="dropdown"
|
94
|
+
data-target="#"
|
95
|
+
href="#">SubSections <b class="caret"></b></a>
|
96
|
+
<ul class="dropdown-menu localtoc"
|
97
|
+
role="menu"
|
98
|
+
aria-labelledby="dLabelLocalToc"><ul>
|
99
|
+
<li><a class="reference internal" href="#">The link order</a><ul>
|
100
|
+
<li><a class="reference internal" href="#example">Example:</a></li>
|
101
|
+
<li><a class="reference internal" href="#same-example-but-with-external-libraries">Same example but with external libraries:</a></li>
|
102
|
+
</ul>
|
103
|
+
</li>
|
104
|
+
</ul>
|
105
|
+
</ul>
|
106
|
+
</li>
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
<li>
|
113
|
+
<a href="build_hierarchy.html" title="Previous Chapter: The build hierarchy"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm hidden-tablet">« The build hie...</span>
|
114
|
+
</a>
|
115
|
+
</li>
|
116
|
+
<li>
|
117
|
+
<a href="prebuild.html" title="Next Chapter: Prebuild configurations for distributions"><span class="glyphicon glyphicon-chevron-right visible-sm"></span><span class="hidden-sm hidden-tablet">Prebuild conf... »</span>
|
118
|
+
</a>
|
119
|
+
</li>
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
</ul>
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
<form class="navbar-form navbar-right" action="../search.html" method="get">
|
130
|
+
<div class="form-group">
|
131
|
+
<input type="text" name="q" class="form-control" placeholder="Search" />
|
132
|
+
</div>
|
133
|
+
<input type="hidden" name="check_keywords" value="yes" />
|
134
|
+
<input type="hidden" name="area" value="default" />
|
135
|
+
</form>
|
136
|
+
|
137
|
+
</div>
|
138
|
+
</div>
|
139
|
+
</div>
|
140
|
+
|
141
|
+
<div class="container">
|
142
|
+
<div class="row">
|
143
|
+
<div class="col-md-12">
|
144
|
+
|
145
|
+
<div class="section" id="the-link-order">
|
146
|
+
<h1>The link order<a class="headerlink" href="#the-link-order" title="Permalink to this headline">¶</a></h1>
|
147
|
+
<p>The link order depends on the order of library definitions and dependencies in the Project.meta files.</p>
|
148
|
+
<p>In general, if a library X depends on a library Y, the library X must be linked before Y.</p>
|
149
|
+
<div class="section" id="example">
|
150
|
+
<h2>Example:<a class="headerlink" href="#example" title="Permalink to this headline">¶</a></h2>
|
151
|
+
<div class="highlight-console"><div class="highlight"><pre><span class="go">Project A:</span>
|
152
|
+
|
153
|
+
<span class="go">Dependency B</span>
|
154
|
+
<span class="go">Dependency C</span>
|
155
|
+
</pre></div>
|
156
|
+
</div>
|
157
|
+
<div class="highlight-console"><div class="highlight"><pre><span class="go">Project B:</span>
|
158
|
+
|
159
|
+
<span class="go">Dependency D</span>
|
160
|
+
</pre></div>
|
161
|
+
</div>
|
162
|
+
<div class="highlight-console"><div class="highlight"><pre><span class="go">Project C:</span>
|
163
|
+
|
164
|
+
<span class="go">Dependency D</span>
|
165
|
+
</pre></div>
|
166
|
+
</div>
|
167
|
+
<div class="highlight-console"><div class="highlight"><pre><span class="go">Project D:</span>
|
168
|
+
</pre></div>
|
169
|
+
</div>
|
170
|
+
<p>The link order will be</p>
|
171
|
+
<ul class="simple">
|
172
|
+
<li>Objects of A</li>
|
173
|
+
<li>B</li>
|
174
|
+
<li>C</li>
|
175
|
+
<li>D</li>
|
176
|
+
</ul>
|
177
|
+
</div>
|
178
|
+
<div class="section" id="same-example-but-with-external-libraries">
|
179
|
+
<h2>Same example but with external libraries:<a class="headerlink" href="#same-example-but-with-external-libraries" title="Permalink to this headline">¶</a></h2>
|
180
|
+
<div class="highlight-console"><div class="highlight"><pre><span class="go">Project A:</span>
|
181
|
+
|
182
|
+
<span class="go">ExternalLibrary a1</span>
|
183
|
+
<span class="go">Dependency B</span>
|
184
|
+
<span class="go">ExternalLibrary a2</span>
|
185
|
+
<span class="go">Dependency C</span>
|
186
|
+
<span class="go">ExternalLibrary a3</span>
|
187
|
+
</pre></div>
|
188
|
+
</div>
|
189
|
+
<div class="highlight-console"><div class="highlight"><pre><span class="go">Project B:</span>
|
190
|
+
|
191
|
+
<span class="go">ExternalLibrary b1</span>
|
192
|
+
<span class="go">Dependency D</span>
|
193
|
+
<span class="go">ExternalLibrary b2</span>
|
194
|
+
</pre></div>
|
195
|
+
</div>
|
196
|
+
<div class="highlight-console"><div class="highlight"><pre><span class="go">Project C:</span>
|
197
|
+
|
198
|
+
<span class="go">ExternalLibrary c1</span>
|
199
|
+
<span class="go">Dependency D</span>
|
200
|
+
<span class="go">ExternalLibrary c2</span>
|
201
|
+
</pre></div>
|
202
|
+
</div>
|
203
|
+
<div class="highlight-console"><div class="highlight"><pre><span class="go">Project D:</span>
|
204
|
+
|
205
|
+
<span class="go">ExternalLibrary d1</span>
|
206
|
+
<span class="go">ExternalLibrary d2</span>
|
207
|
+
</pre></div>
|
208
|
+
</div>
|
209
|
+
<p>The link order will be</p>
|
210
|
+
<ul class="simple">
|
211
|
+
<li>Objects of A</li>
|
212
|
+
<li>a1</li>
|
213
|
+
<li>B</li>
|
214
|
+
<li>b1</li>
|
215
|
+
<li>b2</li>
|
216
|
+
<li>a2</li>
|
217
|
+
<li>C</li>
|
218
|
+
<li>c1</li>
|
219
|
+
<li>D</li>
|
220
|
+
<li>d1</li>
|
221
|
+
<li>d2</li>
|
222
|
+
<li>c2</li>
|
223
|
+
<li>a3</li>
|
224
|
+
</ul>
|
225
|
+
</div>
|
226
|
+
</div>
|
227
|
+
|
228
|
+
|
229
|
+
</div>
|
230
|
+
|
231
|
+
</div>
|
232
|
+
</div>
|
233
|
+
<footer class="footer">
|
234
|
+
<div class="container">
|
235
|
+
<p class="pull-right">
|
236
|
+
<a href="#">Back to top</a>
|
237
|
+
|
238
|
+
</p>
|
239
|
+
<p>
|
240
|
+
© Copyright 2016, E.S.R.Labs AG.<br/>
|
241
|
+
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.1.<br/>
|
242
|
+
</p>
|
243
|
+
</div>
|
244
|
+
</footer>
|
245
|
+
</body>
|
246
246
|
</html>
|