-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathReference-manual_returned_dep.html
1031 lines (992 loc) · 49.9 KB
/
Reference-manual_returned_dep.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<base href=".">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Dependency object</title>
<link rel="stylesheet" href="assets/css/dark-frontend.css" type="text/css" title="dark">
<link rel="alternate stylesheet" href="assets/css/light-frontend.css" type="text/css" title="light">
<link rel="stylesheet" href="assets/css/bootstrap-toc.min.css" type="text/css">
<link rel="stylesheet" href="assets/css/jquery.mCustomScrollbar.min.css">
<link rel="stylesheet" href="assets/js/search/enable_search.css" type="text/css">
<link rel="stylesheet" href="assets/css/notes.css" type="text/css">
<link rel="stylesheet" href="assets/css/prism-tomorrow.css" type="text/css" title="dark">
<link rel="alternate stylesheet" href="assets/css/prism.css" type="text/css" title="light">
<script src="assets/js/mustache.min.js"></script>
<script src="assets/js/jquery.js"></script>
<script src="assets/js/bootstrap.js"></script>
<script src="assets/js/scrollspy.js"></script>
<script src="assets/js/typeahead.jquery.min.js"></script>
<script src="assets/js/search.js"></script>
<script src="assets/js/compare-versions.js"></script>
<script src="assets/js/jquery.mCustomScrollbar.concat.min.js"></script>
<script src="assets/js/bootstrap-toc.min.js"></script>
<script src="assets/js/jquery.touchSwipe.min.js"></script>
<script src="assets/js/anchor.min.js"></script>
<script src="assets/js/tag_filtering.js"></script>
<script src="assets/js/language_switching.js"></script>
<script src="assets/js/styleswitcher.js"></script>
<script src="assets/js/lines_around_headings.js"></script>
<script src="assets/js/prism-core.js"></script>
<script src="assets/js/prism-autoloader.js"></script>
<script src="assets/js/prism_autoloader_path_override.js"></script>
<script src="assets/js/prism-keep-markup.js"></script>
<script src="assets/js/trie.js"></script>
<link rel="icon" type="image/png" href="assets/images/favicon.png">
<link rel="shortcut icon" href="assets/images/favicon.png">
</head>
<body class="no-script
">
<script>
$('body').removeClass('no-script');
</script>
<nav class="navbar navbar-fixed-top navbar-default" id="topnav">
<div class="container-fluid">
<div class="navbar-right">
<a id="toc-toggle">
<span class="glyphicon glyphicon-menu-right"></span>
<span class="glyphicon glyphicon-menu-left"></span>
</a>
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-wrapper" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span title="light mode switch" class="glyphicon glyphicon-sunglasses pull-right" id="lightmode-icon"></span>
<form class="navbar-form pull-right" id="navbar-search-form">
<div class="form-group has-feedback">
<input type="text" class="form-control input-sm" name="search" id="sidenav-lookup-field" placeholder="search" disabled>
<span class="glyphicon glyphicon-search form-control-feedback" id="search-mgn-glass"></span>
</div>
</form>
</div>
<div class="navbar-header">
<a id="sidenav-toggle">
<span class="glyphicon glyphicon-menu-right"></span>
<span class="glyphicon glyphicon-menu-left"></span>
</a>
<a id="home-link" href="index.html" class="hotdoc-navbar-brand">
<img src="assets/images/meson_logo.png" alt="Home">
</a>
</div>
<div class="navbar-collapse collapse" id="navbar-wrapper">
<ul class="nav navbar-nav" id="menu">
<li class="dropdown">
<a class="dropdown-toggle" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Modules <span class="caret"></span>
</a>
<ul class="dropdown-menu" id="modules-menu">
<li>
<a href="CMake-module.html">CMake</a>
</li>
<li>
<a href="Cuda-module.html">CUDA</a>
</li>
<li>
<a href="Dlang-module.html">Dlang</a>
</li>
<li>
<a href="External-Project-module.html">External Project</a>
</li>
<li>
<a href="Fs-module.html">Filesystem</a>
</li>
<li>
<a href="Gnome-module.html">GNOME</a>
</li>
<li>
<a href="Hotdoc-module.html">Hotdoc</a>
</li>
<li>
<a href="i18n-module.html">i18n</a>
</li>
<li>
<a href="Icestorm-module.html">Icestorm</a>
</li>
<li>
<a href="Java-module.html">Java</a>
</li>
<li>
<a href="Keyval-module.html">Keyval</a>
</li>
<li>
<a href="Pkgconfig-module.html">Pkgconfig</a>
</li>
<li>
<a href="Python-3-module.html">Python 3</a>
</li>
<li>
<a href="Python-module.html">Python</a>
</li>
<li>
<a href="Qt4-module.html">Qt4</a>
</li>
<li>
<a href="Qt5-module.html">Qt5</a>
</li>
<li>
<a href="Qt6-module.html">Qt6</a>
</li>
<li>
<a href="Rust-module.html">Rust</a>
</li>
<li>
<a href="Simd-module.html">Simd</a>
</li>
<li>
<a href="SourceSet-module.html">SourceSet</a>
</li>
<li>
<a href="Wayland-module.html">Wayland</a>
</li>
<li>
<a href="Windows-module.html">Windows</a>
</li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Quick References <span class="caret"></span>
</a>
<ul class="dropdown-menu" id="quick-refs-menu">
<li>
<a href="Reference-manual.html">Functions</a>
</li>
<li>
<a href="Build-options.html">Options</a>
</li>
<li>
<a href="Configuration.html">Configuration</a>
</li>
<li>
<a href="Dependencies.html">Dependencies</a>
</li>
<li>
<a href="Unit-tests.html">Tests</a>
</li>
<li>
<a href="Syntax.html">Syntax</a>
</li>
</ul>
</li>
</ul>
<div class="hidden-xs hidden-sm navbar-text navbar-center">
<p><b>The Meson Build System</b></p>
</div>
</div>
</div>
</nav>
<main>
<div data-extension="core" data-hotdoc-in-toplevel="True" data-hotdoc-project="Meson-documentation" data-hotdoc-ref="Reference-manual_returned_dep.html" class="page_container" id="page-wrapper">
<script src="assets/js/utils.js"></script>
<div class="panel panel-collapse oc-collapsed" id="sidenav" data-hotdoc-role="navigation">
<script src="assets/js/full-width.js"></script>
<div id="sitenav-wrapper">
<iframe src="hotdoc-sitemap.html" id="sitenav-frame"></iframe>
</div>
</div>
<div id="body">
<div id="main">
<div id="page-description" data-hotdoc-role="main">
<h1 id="dependency-object-dep">Dependency object (<code>dep</code>)</h1>
<p>Abstract representation of a dependency</p>
<h2 id="returned-by">Returned by</h2>
<p>Dependency object objects are returned by the following functions and methods:</p>
<ul>
<li><a href="Reference-manual_functions.html#declare_dependency"><ins><code>declare_dependency()</code></ins></a></li>
<li><a href="Reference-manual_functions.html#dependency"><ins><code>dependency()</code></ins></a></li>
<li><a href="Reference-manual_returned_compiler.html#compilerfind_library"><ins><code>compiler.find_library()</code></ins></a></li>
<li><a href="Reference-manual_returned_dep.html#depas_link_whole"><ins><code>dep.as_link_whole()</code></ins></a></li>
<li><a href="Reference-manual_returned_dep.html#depas_shared"><ins><code>dep.as_shared()</code></ins></a></li>
<li><a href="Reference-manual_returned_dep.html#depas_static"><ins><code>dep.as_static()</code></ins></a></li>
<li><a href="Reference-manual_returned_dep.html#depas_system"><ins><code>dep.as_system()</code></ins></a></li>
<li><a href="Reference-manual_returned_dep.html#deppartial_dependency"><ins><code>dep.partial_dependency()</code></ins></a></li>
</ul>
<h2 id="dependency-object-methods">Dependency object methods</h2>
<p style="padding: 7.5px; margin: 0px;"></p>
<h3 id="depas_link_whole">dep.as_link_whole()</h3>
<p>Only dependencies created with <a href="Reference-manual_functions.html#declare_dependency"><ins><code>declare_dependency()</code></ins></a>,
returns a copy of the dependency object with all
link_with arguments changed to link_whole. This is useful for example for
fallback dependency from a subproject built with <code>default_library=static</code>.
Note that all <code>link_with</code> objects must be static libraries otherwise an error
will be raised when trying to <code>link_whole</code> a shared library.</p>
<p style="padding: 5px; margin: 0px;"></p> <!-- A bit of space because we remove the top margin below -->
<div style="display: flex;">
<h4 style="margin-top: 0px;" id="signature">Signature</h4>
<div style="flex-grow: 1;"></div>
<div>
<div style="margin: 0px; text-align: center;">
<p style="margin: 0px;"><em style="color: #5affff;">(since 0.56.0)</em></p>
</div>
</div>
</div>
<pre><code class="language-meson"><a href="Reference-manual_returned_dep.html"><ins>dep</ins></a> as_link_whole()</code></pre>
<p style="padding: 7.5px; margin: 0px;"></p>
<hr>
<p style="padding: 7.5px; margin: 0px;"></p>
<h3 id="depas_shared">dep.as_shared()</h3>
<p>Only for dependencies created with <a href="Reference-manual_functions.html#declare_dependency"><ins><code>declare_dependency()</code></ins></a>,
returns a copy of the dependency object that prefer the <code>shared</code> version
of <a href="Reference-manual_functions.html#both_libraries"><ins><code>both_libraries()</code></ins></a>.</p>
<p style="padding: 5px; margin: 0px;"></p> <!-- A bit of space because we remove the top margin below -->
<div style="display: flex;">
<h4 style="margin-top: 0px;" id="signature1">Signature</h4>
<div style="flex-grow: 1;"></div>
<div>
<div style="margin: 0px; text-align: center;">
<p style="margin: 0px;"><em style="color: #5affff;">(since 1.6.0)</em></p>
</div>
</div>
</div>
<pre><code class="language-meson"># Only for dependencies created with <a href="Reference-manual_functions.html#declare_dependency"><ins><code>declare_dependency()</code></ins></a>,
<a href="Reference-manual_returned_dep.html"><ins>dep</ins></a> as_shared(
<a href="Reference-manual_returned_dep.html#as_shared_recursive"><b>recursive</b></a> : <a href="Reference-manual_elementary_bool.html"><ins>bool</ins></a> # If true, this is recursively applied to dependencies
)</code></pre>
<p style="padding: 5px; margin: 0px;"></p> <!-- A bit more space -->
<h4 id="arguments">Arguments</h4>
<p>The method <code>dep.as_shared()</code>
accepts the following keyword arguments:</p>
<!-- Hotdoc / markdown inserts <p> around the table elements. Override the margin to make them invisible -->
<style>
.nomargin p:last-child { margin-bottom: 0px !important; }
</style>
<table>
<thead>
<tr>
<th style="white-space: nowrap; text-align: center;">Name</th>
<th style="white-space: nowrap; text-align: center;">Type</th>
<th style="width: 56%;">Description</th>
<th style="white-space: nowrap; text-align: center; width: 0px;">Tags</th>
</tr>
</thead>
<tbody class="nomargin">
<tr id="as_shared_recursive">
<td style="white-space: nowrap; text-align: center; padding: 6px;"><code class="language-meson">recursive</code></td>
<td style="white-space: revert; text-align: center; padding: 6px; word-wrap: break-word;"><a href="Reference-manual_elementary_bool.html"><ins><code>bool</code></ins></a></td>
<!-- This suboptimal formatting is required to ensure hotdoc correctly generates the HTML -->
<td style="width: 56%; padding: 6px;">
<p>If true, this is recursively applied to dependencies</p>
</td>
<td style="white-space: nowrap; text-align: center; padding: 6px; width: 0px;">
<div style="margin: 0px; text-align: center;">
</div>
</td>
</tr>
</tbody>
</table>
<p style="padding: 7.5px; margin: 0px;"></p>
<hr>
<p style="padding: 7.5px; margin: 0px;"></p>
<h3 id="depas_static">dep.as_static()</h3>
<p>Only for dependencies created with <a href="Reference-manual_functions.html#declare_dependency"><ins><code>declare_dependency()</code></ins></a>,
returns a copy of the dependency object that prefer the <code>static</code> version
of <a href="Reference-manual_functions.html#both_libraries"><ins><code>both_libraries()</code></ins></a>.</p>
<p style="padding: 5px; margin: 0px;"></p> <!-- A bit of space because we remove the top margin below -->
<div style="display: flex;">
<h4 style="margin-top: 0px;" id="signature2">Signature</h4>
<div style="flex-grow: 1;"></div>
<div>
<div style="margin: 0px; text-align: center;">
<p style="margin: 0px;"><em style="color: #5affff;">(since 1.6.0)</em></p>
</div>
</div>
</div>
<pre><code class="language-meson"># Only for dependencies created with <a href="Reference-manual_functions.html#declare_dependency"><ins><code>declare_dependency()</code></ins></a>,
<a href="Reference-manual_returned_dep.html"><ins>dep</ins></a> as_static(
<a href="Reference-manual_returned_dep.html#as_static_recursive"><b>recursive</b></a> : <a href="Reference-manual_elementary_bool.html"><ins>bool</ins></a> # If true, this is recursively applied to dependencies
)</code></pre>
<p style="padding: 5px; margin: 0px;"></p> <!-- A bit more space -->
<h4 id="arguments1">Arguments</h4>
<p>The method <code>dep.as_static()</code>
accepts the following keyword arguments:</p>
<!-- Hotdoc / markdown inserts <p> around the table elements. Override the margin to make them invisible -->
<style>
.nomargin p:last-child { margin-bottom: 0px !important; }
</style>
<table>
<thead>
<tr>
<th style="white-space: nowrap; text-align: center;">Name</th>
<th style="white-space: nowrap; text-align: center;">Type</th>
<th style="width: 56%;">Description</th>
<th style="white-space: nowrap; text-align: center; width: 0px;">Tags</th>
</tr>
</thead>
<tbody class="nomargin">
<tr id="as_static_recursive">
<td style="white-space: nowrap; text-align: center; padding: 6px;"><code class="language-meson">recursive</code></td>
<td style="white-space: revert; text-align: center; padding: 6px; word-wrap: break-word;"><a href="Reference-manual_elementary_bool.html"><ins><code>bool</code></ins></a></td>
<!-- This suboptimal formatting is required to ensure hotdoc correctly generates the HTML -->
<td style="width: 56%; padding: 6px;">
<p>If true, this is recursively applied to dependencies</p>
</td>
<td style="white-space: nowrap; text-align: center; padding: 6px; width: 0px;">
<div style="margin: 0px; text-align: center;">
</div>
</td>
</tr>
</tbody>
</table>
<p style="padding: 7.5px; margin: 0px;"></p>
<hr>
<p style="padding: 7.5px; margin: 0px;"></p>
<h3 id="depas_system">dep.as_system()</h3>
<p>Returns a copy of the dependency object, which has changed the value of <code>include_type</code>
to <code>value</code>. The <code>value</code> argument is optional and
defaults to <code>'preserve'</code>.</p>
<p style="padding: 5px; margin: 0px;"></p> <!-- A bit of space because we remove the top margin below -->
<div style="display: flex;">
<h4 style="margin-top: 0px;" id="signature3">Signature</h4>
<div style="flex-grow: 1;"></div>
<div>
<div style="margin: 0px; text-align: center;">
<p style="margin: 0px;"><em style="color: #5affff;">(since 0.52.0)</em></p>
</div>
</div>
</div>
<pre><code class="language-meson"># Returns a copy of the dependency object, which has changed the value of `include_type`
<a href="Reference-manual_returned_dep.html"><ins>dep</ins></a> as_system(
<a href="Reference-manual_elementary_str.html"><ins>str</ins></a> [<a href="Reference-manual_returned_dep.html#as_system_value"><b>value</b></a>], # The new value. See <a href="Reference-manual_functions.html#dependency"><ins><code>dependency()</code></ins></a> for supported values.
)</code></pre>
<p style="padding: 5px; margin: 0px;"></p> <!-- A bit more space -->
<h4 id="arguments2">Arguments</h4>
<p>The method <code>dep.as_system()</code> accepts the following positional arguments:</p>
<!-- Hotdoc / markdown inserts <p> around the table elements. Override the margin to make them invisible -->
<style>
.nomargin p:last-child { margin-bottom: 0px !important; }
</style>
<table>
<thead>
<tr>
<th style="white-space: nowrap; text-align: center;">Name</th>
<th style="white-space: nowrap; text-align: center;">Type</th>
<th style="width: 56%;">Description</th>
<th style="white-space: nowrap; text-align: center; width: 0px;">Tags</th>
</tr>
</thead>
<tbody class="nomargin">
<tr id="as_system_value">
<td style="white-space: nowrap; text-align: center; padding: 6px;"><code class="language-meson">value</code></td>
<td style="white-space: revert; text-align: center; padding: 6px; word-wrap: break-word;"><a href="Reference-manual_elementary_str.html"><ins><code>str</code></ins></a></td>
<!-- This suboptimal formatting is required to ensure hotdoc correctly generates the HTML -->
<td style="width: 56%; padding: 6px;">
<p>The new value. See <a href="Reference-manual_functions.html#dependency"><ins><code>dependency()</code></ins></a> for supported values.</p>
</td>
<td style="white-space: nowrap; text-align: center; padding: 6px; width: 0px;">
<div style="margin: 0px; text-align: center;">
<p style="margin: 0px;"><b>[optional]</b></p>
</div>
</td>
</tr>
</tbody>
</table>
<p style="padding: 5px; margin: 0px;"></p> <!-- Extra space -->
<p style="padding: 7.5px; margin: 0px;"></p>
<hr>
<p style="padding: 7.5px; margin: 0px;"></p>
<h3 id="depfound">dep.found()</h3>
<p>Returns whether the dependency was found.</p>
<p style="padding: 5px; margin: 0px;"></p> <!-- A bit of space because we remove the top margin below -->
<div style="display: flex;">
<h4 style="margin-top: 0px;" id="signature4">Signature</h4>
<div style="flex-grow: 1;"></div>
<div>
<div style="margin: 0px; text-align: center;">
</div>
</div>
</div>
<pre><code class="language-meson"><a href="Reference-manual_elementary_bool.html"><ins>bool</ins></a> found()</code></pre>
<p style="padding: 7.5px; margin: 0px;"></p>
<hr>
<p style="padding: 7.5px; margin: 0px;"></p>
<h3 id="depget_configtool_variable">dep.get_configtool_variable()</h3>
<p>Gets the command line argument from the config tool (with <code>--</code> prepended), or,
if invoked on a non config-tool dependency, error out.</p>
<p style="padding: 5px; margin: 0px;"></p> <!-- A bit of space because we remove the top margin below -->
<div style="display: flex;">
<h4 style="margin-top: 0px;" id="signature5">Signature</h4>
<div style="flex-grow: 1;"></div>
<div>
<div style="margin: 0px; text-align: center;">
<p style="margin: 0px;"><em style="color: #5affff;">(since 0.44.0)</em></p>
<div style="color: #ffa844">
<p style="margin: 0px;"><strong>DEPRECATED</strong></p>
<p style="margin: 0px;"><em>in 0.56.0</em></p>
</div>
</div>
</div>
</div>
<pre><code class="language-meson"># Gets the command line argument from the config tool (with `--` prepended), or,
<a href="Reference-manual_elementary_str.html"><ins>str</ins></a> get_configtool_variable(
<a href="Reference-manual_elementary_str.html"><ins>str</ins></a> <a href="Reference-manual_returned_dep.html#get_configtool_variable_var_name"><b>var_name</b></a>, # Name of the variable to query
)</code></pre>
<p style="padding: 5px; margin: 0px;"></p> <!-- A bit more space -->
<h4 id="arguments3">Arguments</h4>
<p>The method <code>dep.get_configtool_variable()</code> accepts the following positional arguments:</p>
<!-- Hotdoc / markdown inserts <p> around the table elements. Override the margin to make them invisible -->
<style>
.nomargin p:last-child { margin-bottom: 0px !important; }
</style>
<table>
<thead>
<tr>
<th style="white-space: nowrap; text-align: center;">Name</th>
<th style="white-space: nowrap; text-align: center;">Type</th>
<th style="width: 56%;">Description</th>
<th style="white-space: nowrap; text-align: center; width: 0px;">Tags</th>
</tr>
</thead>
<tbody class="nomargin">
<tr id="get_configtool_variable_var_name">
<td style="white-space: nowrap; text-align: center; padding: 6px;"><code class="language-meson">var_name</code></td>
<td style="white-space: revert; text-align: center; padding: 6px; word-wrap: break-word;"><a href="Reference-manual_elementary_str.html"><ins><code>str</code></ins></a></td>
<!-- This suboptimal formatting is required to ensure hotdoc correctly generates the HTML -->
<td style="width: 56%; padding: 6px;">
<p>Name of the variable to query</p>
</td>
<td style="white-space: nowrap; text-align: center; padding: 6px; width: 0px;">
<div style="margin: 0px; text-align: center;">
</div>
</td>
</tr>
</tbody>
</table>
<p style="padding: 5px; margin: 0px;"></p> <!-- Extra space -->
<p style="padding: 7.5px; margin: 0px;"></p>
<hr>
<p style="padding: 7.5px; margin: 0px;"></p>
<h3 id="depget_pkgconfig_variable">dep.get_pkgconfig_variable()</h3>
<p>Gets the pkg-config variable specified,
or, if invoked on a non pkg-config
dependency, error out.</p>
<p style="padding: 5px; margin: 0px;"></p> <!-- A bit of space because we remove the top margin below -->
<div style="display: flex;">
<h4 style="margin-top: 0px;" id="signature6">Signature</h4>
<div style="flex-grow: 1;"></div>
<div>
<div style="margin: 0px; text-align: center;">
<p style="margin: 0px;"><em style="color: #5affff;">(since 0.36.0)</em></p>
<div style="color: #ffa844">
<p style="margin: 0px;"><strong>DEPRECATED</strong></p>
<p style="margin: 0px;"><em>in 0.56.0</em></p>
</div>
</div>
</div>
</div>
<pre><code class="language-meson"># Gets the pkg-config variable specified,
<a href="Reference-manual_elementary_str.html"><ins>str</ins></a> get_pkgconfig_variable(
<a href="Reference-manual_elementary_str.html"><ins>str</ins></a> <a href="Reference-manual_returned_dep.html#get_pkgconfig_variable_var_name"><b>var_name</b></a>, # Name of the variable to query
# Keyword arguments:
<a href="Reference-manual_returned_dep.html#get_pkgconfig_variable_default"><b>default</b></a> : <a href="Reference-manual_elementary_str.html"><ins>str</ins></a> # The value to return if the variable was not found
<a href="Reference-manual_returned_dep.html#get_pkgconfig_variable_define_variable"><b>define_variable</b></a> : <a href="Reference-manual_elementary_list.html"><ins>list</ins></a>[<a href="Reference-manual_elementary_str.html"><ins>str</ins></a>] # You can also redefine a
)</code></pre>
<p style="padding: 5px; margin: 0px;"></p> <!-- A bit more space -->
<h4 id="arguments4">Arguments</h4>
<p>The method <code>dep.get_pkgconfig_variable()</code> accepts the following positional arguments:</p>
<!-- Hotdoc / markdown inserts <p> around the table elements. Override the margin to make them invisible -->
<style>
.nomargin p:last-child { margin-bottom: 0px !important; }
</style>
<table>
<thead>
<tr>
<th style="white-space: nowrap; text-align: center;">Name</th>
<th style="white-space: nowrap; text-align: center;">Type</th>
<th style="width: 56%;">Description</th>
<th style="white-space: nowrap; text-align: center; width: 0px;">Tags</th>
</tr>
</thead>
<tbody class="nomargin">
<tr id="get_pkgconfig_variable_var_name">
<td style="white-space: nowrap; text-align: center; padding: 6px;"><code class="language-meson">var_name</code></td>
<td style="white-space: revert; text-align: center; padding: 6px; word-wrap: break-word;"><a href="Reference-manual_elementary_str.html"><ins><code>str</code></ins></a></td>
<!-- This suboptimal formatting is required to ensure hotdoc correctly generates the HTML -->
<td style="width: 56%; padding: 6px;">
<p>Name of the variable to query</p>
</td>
<td style="white-space: nowrap; text-align: center; padding: 6px; width: 0px;">
<div style="margin: 0px; text-align: center;">
</div>
</td>
</tr>
</tbody>
</table>
<p style="padding: 5px; margin: 0px;"></p> <!-- Extra space -->
<p>Finally, <code>dep.get_pkgconfig_variable()</code>
accepts the following keyword arguments:</p>
<!-- Hotdoc / markdown inserts <p> around the table elements. Override the margin to make them invisible -->
<style>
.nomargin p:last-child { margin-bottom: 0px !important; }
</style>
<table>
<thead>
<tr>
<th style="white-space: nowrap; text-align: center;">Name</th>
<th style="white-space: nowrap; text-align: center;">Type</th>
<th style="width: 56%;">Description</th>
<th style="white-space: nowrap; text-align: center; width: 0px;">Tags</th>
</tr>
</thead>
<tbody class="nomargin">
<tr id="get_pkgconfig_variable_default">
<td style="white-space: nowrap; text-align: center; padding: 6px;"><code class="language-meson">default</code></td>
<td style="white-space: revert; text-align: center; padding: 6px; word-wrap: break-word;"><a href="Reference-manual_elementary_str.html"><ins><code>str</code></ins></a></td>
<!-- This suboptimal formatting is required to ensure hotdoc correctly generates the HTML -->
<td style="width: 56%; padding: 6px;">
<p>The value to return if the variable was not found.
A warning is issued if the variable is not defined and this kwarg is not set.</p>
</td>
<td style="white-space: nowrap; text-align: center; padding: 6px; width: 0px;">
<div style="margin: 0px; text-align: center;">
<p style="margin: 0px;"><em style="color: #5affff;">(since 0.45.0)</em></p>
</div>
</td>
</tr>
<tr id="get_pkgconfig_variable_define_variable">
<td style="white-space: nowrap; text-align: center; padding: 6px;"><code class="language-meson">define_variable</code></td>
<td style="white-space: revert; text-align: center; padding: 6px; word-wrap: break-word;">
<a href="Reference-manual_elementary_list.html"><ins><code>list</code></ins></a>[<a href="Reference-manual_elementary_str.html"><ins><code>str</code></ins></a>]</td>
<!-- This suboptimal formatting is required to ensure hotdoc correctly generates the HTML -->
<td style="width: 56%; padding: 6px;">
<p>You can also redefine a
variable by passing a list to this kwarg
that can affect the retrieved variable: <code>['prefix', '/'])</code>.</p>
<p><em>(Since 1.3.0)</em> Multiple variables can be specified in pairs.</p>
</td>
<td style="white-space: nowrap; text-align: center; padding: 6px; width: 0px;">
<div style="margin: 0px; text-align: center;">
<p style="margin: 0px;"><em style="color: #5affff;">(since 0.44.0)</em></p>
</div>
</td>
</tr>
</tbody>
</table>
<p style="padding: 7.5px; margin: 0px;"></p>
<hr>
<p style="padding: 7.5px; margin: 0px;"></p>
<h3 id="depget_variable">dep.get_variable()</h3>
<p>A generic variable getter method, which replaces the
<code>get_*type*_variable</code> methods. This allows one to get the variable
from a dependency without knowing specifically how that dependency
was found. If <code>default_value</code> is set and the value cannot be gotten
from the object then <code>default_value</code> is returned, if it is not set
then an error is raised.</p>
<p style="padding: 5px; margin: 0px;"></p> <!-- A bit of space because we remove the top margin below -->
<div style="display: flex;">
<h4 style="margin-top: 0px;" id="signature7">Signature</h4>
<div style="flex-grow: 1;"></div>
<div>
<div style="margin: 0px; text-align: center;">
<p style="margin: 0px;"><em style="color: #5affff;">(since 0.51.0)</em></p>
</div>
</div>
</div>
<pre><code class="language-meson"># A generic variable getter method, which replaces the
<a href="Reference-manual_elementary_str.html"><ins>str</ins></a> get_variable(
<a href="Reference-manual_elementary_str.html"><ins>str</ins></a> [<a href="Reference-manual_returned_dep.html#get_variable_varname"><b>varname</b></a>], # This argument is used as a default value
# Keyword arguments:
<a href="Reference-manual_returned_dep.html#get_variable_cmake"><b>cmake</b></a> : <a href="Reference-manual_elementary_str.html"><ins>str</ins></a> # The CMake variable name
<a href="Reference-manual_returned_dep.html#get_variable_configtool"><b>configtool</b></a> : <a href="Reference-manual_elementary_str.html"><ins>str</ins></a> # The configtool variable name
<a href="Reference-manual_returned_dep.html#get_variable_default_value"><b>default_value</b></a> : <a href="Reference-manual_elementary_str.html"><ins>str</ins></a> # The default value to return when the variable does not exist
<a href="Reference-manual_returned_dep.html#get_variable_internal"><b>internal</b></a> : <a href="Reference-manual_elementary_str.html"><ins>str</ins></a> # The internal variable name
<a href="Reference-manual_returned_dep.html#get_variable_pkgconfig"><b>pkgconfig</b></a> : <a href="Reference-manual_elementary_str.html"><ins>str</ins></a> # The pkgconfig variable name
<a href="Reference-manual_returned_dep.html#get_variable_pkgconfig_define"><b>pkgconfig_define</b></a> : <a href="Reference-manual_elementary_list.html"><ins>list</ins></a>[<a href="Reference-manual_elementary_str.html"><ins>str</ins></a>] # See <a href="Reference-manual_returned_dep.html#depget_pkgconfig_variable"><ins><code>dep.get_pkgconfig_variable()</code></ins></a>
<a href="Reference-manual_returned_dep.html#get_variable_system"><b>system</b></a> : <a href="Reference-manual_elementary_str.html"><ins>str</ins></a> # The system variable name
)</code></pre>
<aside class="note note-warning">
<div class="note-topbar note-topbar-warning">
<span class="glyphicon glyphicon-warning-sign"></span>
<span class="note-title">Warning:</span>
</div>
<div class="note-content">
<p>Before 1.3.0, specifying multiple pkgconfig_define pairs would silently malform the results. Only the first variable would be redefined, but its value would contain both the second variable name, as well as its value.</p>
</div>
</aside>
<p style="padding: 5px; margin: 0px;"></p> <!-- A bit more space -->
<h4 id="arguments5">Arguments</h4>
<p>The method <code>dep.get_variable()</code> accepts the following positional arguments:</p>
<!-- Hotdoc / markdown inserts <p> around the table elements. Override the margin to make them invisible -->
<style>
.nomargin p:last-child { margin-bottom: 0px !important; }
</style>
<table>
<thead>
<tr>
<th style="white-space: nowrap; text-align: center;">Name</th>
<th style="white-space: nowrap; text-align: center;">Type</th>
<th style="width: 56%;">Description</th>
<th style="white-space: nowrap; text-align: center; width: 0px;">Tags</th>
</tr>
</thead>
<tbody class="nomargin">
<tr id="get_variable_varname">
<td style="white-space: nowrap; text-align: center; padding: 6px;"><code class="language-meson">varname</code></td>
<td style="white-space: revert; text-align: center; padding: 6px; word-wrap: break-word;"><a href="Reference-manual_elementary_str.html"><ins><code>str</code></ins></a></td>
<!-- This suboptimal formatting is required to ensure hotdoc correctly generates the HTML -->
<td style="width: 56%; padding: 6px;">
<p>This argument is used as a default value
for <code>cmake</code>, <code>pkgconfig</code>, <code>configtool</code>, <code>internal</code> and <code>system</code> keyword
arguments. It is useful in the common case where <code>pkgconfig</code> and <code>internal</code>
use the same variable name, in which case it's easier to write <code>dep.get_variable('foo')</code>
instead of <code>dep.get_variable(pkgconfig: 'foo', internal: 'foo')</code>.</p>
</td>
<td style="white-space: nowrap; text-align: center; padding: 6px; width: 0px;">
<div style="margin: 0px; text-align: center;">
<p style="margin: 0px;"><em style="color: #5affff;">(since 0.58.0)</em></p>
<p style="margin: 0px;"><b>[optional]</b></p>
</div>
</td>
</tr>
</tbody>
</table>
<p style="padding: 5px; margin: 0px;"></p> <!-- Extra space -->
<p>Finally, <code>dep.get_variable()</code>
accepts the following keyword arguments:</p>
<!-- Hotdoc / markdown inserts <p> around the table elements. Override the margin to make them invisible -->
<style>
.nomargin p:last-child { margin-bottom: 0px !important; }
</style>
<table>
<thead>
<tr>
<th style="white-space: nowrap; text-align: center;">Name</th>
<th style="white-space: nowrap; text-align: center;">Type</th>
<th style="width: 56%;">Description</th>
<th style="white-space: nowrap; text-align: center; width: 0px;">Tags</th>
</tr>
</thead>
<tbody class="nomargin">
<tr id="get_variable_cmake">
<td style="white-space: nowrap; text-align: center; padding: 6px;"><code class="language-meson">cmake</code></td>
<td style="white-space: revert; text-align: center; padding: 6px; word-wrap: break-word;"><a href="Reference-manual_elementary_str.html"><ins><code>str</code></ins></a></td>
<!-- This suboptimal formatting is required to ensure hotdoc correctly generates the HTML -->
<td style="width: 56%; padding: 6px;">
<p>The CMake variable name</p>
</td>
<td style="white-space: nowrap; text-align: center; padding: 6px; width: 0px;">
<div style="margin: 0px; text-align: center;">
</div>
</td>
</tr>
<tr id="get_variable_configtool">
<td style="white-space: nowrap; text-align: center; padding: 6px;"><code class="language-meson">configtool</code></td>
<td style="white-space: revert; text-align: center; padding: 6px; word-wrap: break-word;"><a href="Reference-manual_elementary_str.html"><ins><code>str</code></ins></a></td>
<!-- This suboptimal formatting is required to ensure hotdoc correctly generates the HTML -->
<td style="width: 56%; padding: 6px;">
<p>The configtool variable name</p>
</td>
<td style="white-space: nowrap; text-align: center; padding: 6px; width: 0px;">
<div style="margin: 0px; text-align: center;">
</div>
</td>
</tr>
<tr id="get_variable_default_value">
<td style="white-space: nowrap; text-align: center; padding: 6px;"><code class="language-meson">default_value</code></td>
<td style="white-space: revert; text-align: center; padding: 6px; word-wrap: break-word;"><a href="Reference-manual_elementary_str.html"><ins><code>str</code></ins></a></td>
<!-- This suboptimal formatting is required to ensure hotdoc correctly generates the HTML -->
<td style="width: 56%; padding: 6px;">
<p>The default value to return when the variable does not exist</p>
</td>
<td style="white-space: nowrap; text-align: center; padding: 6px; width: 0px;">
<div style="margin: 0px; text-align: center;">
</div>
</td>
</tr>
<tr id="get_variable_internal">
<td style="white-space: nowrap; text-align: center; padding: 6px;"><code class="language-meson">internal</code></td>
<td style="white-space: revert; text-align: center; padding: 6px; word-wrap: break-word;"><a href="Reference-manual_elementary_str.html"><ins><code>str</code></ins></a></td>
<!-- This suboptimal formatting is required to ensure hotdoc correctly generates the HTML -->
<td style="width: 56%; padding: 6px;">
<p>The internal variable name</p>
</td>
<td style="white-space: nowrap; text-align: center; padding: 6px; width: 0px;">
<div style="margin: 0px; text-align: center;">
<p style="margin: 0px;"><em style="color: #5affff;">(since 0.54.0)</em></p>
</div>
</td>
</tr>
<tr id="get_variable_pkgconfig">
<td style="white-space: nowrap; text-align: center; padding: 6px;"><code class="language-meson">pkgconfig</code></td>
<td style="white-space: revert; text-align: center; padding: 6px; word-wrap: break-word;"><a href="Reference-manual_elementary_str.html"><ins><code>str</code></ins></a></td>
<!-- This suboptimal formatting is required to ensure hotdoc correctly generates the HTML -->
<td style="width: 56%; padding: 6px;">
<p>The pkgconfig variable name</p>
</td>
<td style="white-space: nowrap; text-align: center; padding: 6px; width: 0px;">
<div style="margin: 0px; text-align: center;">
</div>
</td>
</tr>
<tr id="get_variable_pkgconfig_define">
<td style="white-space: nowrap; text-align: center; padding: 6px;"><code class="language-meson">pkgconfig_define</code></td>
<td style="white-space: revert; text-align: center; padding: 6px; word-wrap: break-word;">
<a href="Reference-manual_elementary_list.html"><ins><code>list</code></ins></a>[<a href="Reference-manual_elementary_str.html"><ins><code>str</code></ins></a>]</td>
<!-- This suboptimal formatting is required to ensure hotdoc correctly generates the HTML -->
<td style="width: 56%; padding: 6px;">
<p>See <a href="Reference-manual_returned_dep.html#depget_pkgconfig_variable"><ins><code>dep.get_pkgconfig_variable()</code></ins></a></p>
</td>
<td style="white-space: nowrap; text-align: center; padding: 6px; width: 0px;">
<div style="margin: 0px; text-align: center;">
</div>
</td>
</tr>
<tr id="get_variable_system">
<td style="white-space: nowrap; text-align: center; padding: 6px;"><code class="language-meson">system</code></td>
<td style="white-space: revert; text-align: center; padding: 6px; word-wrap: break-word;"><a href="Reference-manual_elementary_str.html"><ins><code>str</code></ins></a></td>
<!-- This suboptimal formatting is required to ensure hotdoc correctly generates the HTML -->
<td style="width: 56%; padding: 6px;">
<p>The system variable name</p>
</td>
<td style="white-space: nowrap; text-align: center; padding: 6px; width: 0px;">
<div style="margin: 0px; text-align: center;">
<p style="margin: 0px;"><em style="color: #5affff;">(since 1.6.0)</em></p>
</div>
</td>
</tr>
</tbody>
</table>
<p style="padding: 7.5px; margin: 0px;"></p>
<hr>
<p style="padding: 7.5px; margin: 0px;"></p>
<h3 id="depinclude_type">dep.include_type()</h3>
<p>Returns the value set by the <code>include_type</code> kwarg.</p>
<p style="padding: 5px; margin: 0px;"></p> <!-- A bit of space because we remove the top margin below -->
<div style="display: flex;">
<h4 style="margin-top: 0px;" id="signature8">Signature</h4>
<div style="flex-grow: 1;"></div>
<div>
<div style="margin: 0px; text-align: center;">
<p style="margin: 0px;"><em style="color: #5affff;">(since 0.52.0)</em></p>
</div>
</div>
</div>
<pre><code class="language-meson"><a href="Reference-manual_elementary_str.html"><ins>str</ins></a> include_type()</code></pre>
<p style="padding: 7.5px; margin: 0px;"></p>
<hr>
<p style="padding: 7.5px; margin: 0px;"></p>
<h3 id="depname">dep.name()</h3>
<p>Returns the name of the dependency that was searched.
Returns <code>'internal'</code> for dependencies created with
<a href="Reference-manual_functions.html#declare_dependency"><ins><code>declare_dependency()</code></ins></a>.</p>
<p>NOTE: This was not implemented for dep objects returned by
<a href="Reference-manual_returned_compiler.html#compilerfind_library"><ins><code>compiler.find_library()</code></ins></a> until Meson 1.5.0</p>
<p style="padding: 5px; margin: 0px;"></p> <!-- A bit of space because we remove the top margin below -->
<div style="display: flex;">
<h4 style="margin-top: 0px;" id="signature9">Signature</h4>
<div style="flex-grow: 1;"></div>
<div>
<div style="margin: 0px; text-align: center;">
<p style="margin: 0px;"><em style="color: #5affff;">(since 0.48.0)</em></p>
</div>
</div>
</div>
<pre><code class="language-meson"><a href="Reference-manual_elementary_str.html"><ins>str</ins></a> name()</code></pre>
<p style="padding: 7.5px; margin: 0px;"></p>
<hr>
<p style="padding: 7.5px; margin: 0px;"></p>
<h3 id="deppartial_dependency">dep.partial_dependency()</h3>
<p>Returns a new dependency object with the same name, version, found status,
type name, and methods as the object that called it. This new
object will only inherit other attributes from its parent as
controlled by keyword arguments.</p>
<p>If the parent has any dependencies, those will be applied to the new
partial dependency with the same rules. So, given:</p>
<pre><code class="language-meson">dep1 = declare_dependency(compile_args : '-Werror=foo', link_with : 'libfoo')
dep2 = declare_dependency(compile_args : '-Werror=bar', dependencies : dep1)
dep3 = dep2.partial_dependency(compile_args : true)
</code></pre>
<p>dep3 will add <code>['-Werror=foo', '-Werror=bar']</code> to the compiler args
of any target it is added to, but libfoo will not be added to the
link_args.</p>
<p>The following arguments will add the following attributes:</p>
<ul>
<li>compile_args: any arguments passed to the compiler</li>
<li>link_args: any arguments passed to the linker</li>
<li>links: anything passed via link_with or link_whole</li>
<li>includes: any include_directories</li>
<li>sources: any compiled or static sources the dependency has</li>
</ul>
<p style="padding: 5px; margin: 0px;"></p> <!-- A bit of space because we remove the top margin below -->
<div style="display: flex;">
<h4 style="margin-top: 0px;" id="signature10">Signature</h4>
<div style="flex-grow: 1;"></div>
<div>
<div style="margin: 0px; text-align: center;">
<p style="margin: 0px;"><em style="color: #5affff;">(since 0.46.0)</em></p>
</div>
</div>
</div>
<pre><code class="language-meson"># Returns a new dependency object with the same name, version, found status,
<a href="Reference-manual_returned_dep.html"><ins>dep</ins></a> partial_dependency(
<a href="Reference-manual_returned_dep.html#partial_dependency_compile_args"><b>compile_args</b></a> : <a href="Reference-manual_elementary_bool.html"><ins>bool</ins></a> # Whether to include compile_args
<a href="Reference-manual_returned_dep.html#partial_dependency_includes"><b>includes</b></a> : <a href="Reference-manual_elementary_bool.html"><ins>bool</ins></a> # Whether to include includes
<a href="Reference-manual_returned_dep.html#partial_dependency_link_args"><b>link_args</b></a> : <a href="Reference-manual_elementary_bool.html"><ins>bool</ins></a> # Whether to include link_args
<a href="Reference-manual_returned_dep.html#partial_dependency_links"><b>links</b></a> : <a href="Reference-manual_elementary_bool.html"><ins>bool</ins></a> # Whether to include links
<a href="Reference-manual_returned_dep.html#partial_dependency_sources"><b>sources</b></a> : <a href="Reference-manual_elementary_bool.html"><ins>bool</ins></a> # Whether to include sources
)</code></pre>
<aside class="note note-warning">
<div class="note-topbar note-topbar-warning">
<span class="glyphicon glyphicon-warning-sign"></span>
<span class="note-title">Warning:</span>
</div>
<div class="note-content">
<p>A bug present until 0.50.1 results in the above behavior not working correctly.</p>
</div>
</aside>
<p style="padding: 5px; margin: 0px;"></p> <!-- A bit more space -->
<h4 id="arguments6">Arguments</h4>
<p>The method <code>dep.partial_dependency()</code>
accepts the following keyword arguments:</p>
<!-- Hotdoc / markdown inserts <p> around the table elements. Override the margin to make them invisible -->
<style>
.nomargin p:last-child { margin-bottom: 0px !important; }
</style>
<table>
<thead>
<tr>
<th style="white-space: nowrap; text-align: center;">Name</th>
<th style="white-space: nowrap; text-align: center;">Type</th>
<th style="width: 56%;">Description</th>
<th style="white-space: nowrap; text-align: center; width: 0px;">Tags</th>
</tr>
</thead>
<tbody class="nomargin">
<tr id="partial_dependency_compile_args">
<td style="white-space: nowrap; text-align: center; padding: 6px;"><code class="language-meson">compile_args</code></td>
<td style="white-space: revert; text-align: center; padding: 6px; word-wrap: break-word;"><a href="Reference-manual_elementary_bool.html"><ins><code>bool</code></ins></a></td>
<!-- This suboptimal formatting is required to ensure hotdoc correctly generates the HTML -->
<td style="width: 56%; padding: 6px;">
<p>Whether to include compile_args</p>
</td>
<td style="white-space: nowrap; text-align: center; padding: 6px; width: 0px;">
<div style="margin: 0px; text-align: center;">
<p style="margin: 0px;"><code class="language-meson">default =
false</code></p>
</div>
</td>
</tr>
<tr id="partial_dependency_includes">
<td style="white-space: nowrap; text-align: center; padding: 6px;"><code class="language-meson">includes</code></td>
<td style="white-space: revert; text-align: center; padding: 6px; word-wrap: break-word;"><a href="Reference-manual_elementary_bool.html"><ins><code>bool</code></ins></a></td>
<!-- This suboptimal formatting is required to ensure hotdoc correctly generates the HTML -->
<td style="width: 56%; padding: 6px;">
<p>Whether to include includes</p>
</td>
<td style="white-space: nowrap; text-align: center; padding: 6px; width: 0px;">
<div style="margin: 0px; text-align: center;">
<p style="margin: 0px;"><code class="language-meson">default =
false</code></p>
</div>
</td>
</tr>
<tr id="partial_dependency_link_args">
<td style="white-space: nowrap; text-align: center; padding: 6px;"><code class="language-meson">link_args</code></td>
<td style="white-space: revert; text-align: center; padding: 6px; word-wrap: break-word;"><a href="Reference-manual_elementary_bool.html"><ins><code>bool</code></ins></a></td>
<!-- This suboptimal formatting is required to ensure hotdoc correctly generates the HTML -->
<td style="width: 56%; padding: 6px;">
<p>Whether to include link_args</p>
</td>
<td style="white-space: nowrap; text-align: center; padding: 6px; width: 0px;">
<div style="margin: 0px; text-align: center;">
<p style="margin: 0px;"><code class="language-meson">default =
false</code></p>
</div>
</td>
</tr>
<tr id="partial_dependency_links">
<td style="white-space: nowrap; text-align: center; padding: 6px;"><code class="language-meson">links</code></td>
<td style="white-space: revert; text-align: center; padding: 6px; word-wrap: break-word;"><a href="Reference-manual_elementary_bool.html"><ins><code>bool</code></ins></a></td>
<!-- This suboptimal formatting is required to ensure hotdoc correctly generates the HTML -->
<td style="width: 56%; padding: 6px;">
<p>Whether to include links</p>
</td>
<td style="white-space: nowrap; text-align: center; padding: 6px; width: 0px;">
<div style="margin: 0px; text-align: center;">
<p style="margin: 0px;"><code class="language-meson">default =
false</code></p>
</div>
</td>
</tr>
<tr id="partial_dependency_sources">
<td style="white-space: nowrap; text-align: center; padding: 6px;"><code class="language-meson">sources</code></td>
<td style="white-space: revert; text-align: center; padding: 6px; word-wrap: break-word;"><a href="Reference-manual_elementary_bool.html"><ins><code>bool</code></ins></a></td>
<!-- This suboptimal formatting is required to ensure hotdoc correctly generates the HTML -->
<td style="width: 56%; padding: 6px;">
<p>Whether to include sources</p>
</td>
<td style="white-space: nowrap; text-align: center; padding: 6px; width: 0px;">
<div style="margin: 0px; text-align: center;">
<p style="margin: 0px;"><code class="language-meson">default =
false</code></p>
</div>
</td>
</tr>
</tbody>
</table>
<p style="padding: 7.5px; margin: 0px;"></p>
<hr>
<p style="padding: 7.5px; margin: 0px;"></p>
<h3 id="deptype_name">dep.type_name()</h3>
<p>Returns a string describing the type of the
dependency, the most common values are <code>internal</code> for deps created
with <a href="Reference-manual_functions.html#declare_dependency"><ins><code>declare_dependency()</code></ins></a> and <code>pkgconfig</code> for system dependencies
obtained with Pkg-config.</p>
<p style="padding: 5px; margin: 0px;"></p> <!-- A bit of space because we remove the top margin below -->
<div style="display: flex;">
<h4 style="margin-top: 0px;" id="signature11">Signature</h4>
<div style="flex-grow: 1;"></div>
<div>
<div style="margin: 0px; text-align: center;">
</div>
</div>
</div>
<pre><code class="language-meson"><a href="Reference-manual_elementary_str.html"><ins>str</ins></a> type_name()</code></pre>
<p style="padding: 7.5px; margin: 0px;"></p>
<hr>
<p style="padding: 7.5px; margin: 0px;"></p>
<h3 id="depversion">dep.version()</h3>
<p>the version number as a string,
for example <code>1.2.8</code>.
<code>unknown</code> if the dependency provider doesn't support determining the
version.</p>
<p style="padding: 5px; margin: 0px;"></p> <!-- A bit of space because we remove the top margin below -->
<div style="display: flex;">
<h4 style="margin-top: 0px;" id="signature12">Signature</h4>
<div style="flex-grow: 1;"></div>
<div>
<div style="margin: 0px; text-align: center;">
</div>
</div>
</div>
<pre><code class="language-meson"><a href="Reference-manual_elementary_str.html"><ins>str</ins></a> version()</code></pre>
<p style="padding: 7.5px; margin: 0px;"></p>
<hr>
</div>
</div>
<div id="search_results">
<p>The results of the search are</p>