-
Notifications
You must be signed in to change notification settings - Fork 25
/
generate4.xml
2231 lines (2058 loc) · 107 KB
/
generate4.xml
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
<?xml version = "1.0" ?>
<!-- Copyright (c) 2014-2023 libbitcoin developers (see COPYING). -->
<generate language="en-us" >
<repository name="libbitcoin-system" version="4.0.0" email="[email protected]" >
<package library="bitcoin-system" description="Bitcoin Cross-Platform C++ Development Toolkit" url="https://github.com/libbitcoin/libbitcoin-system" >
<flag value="@icu@" />
<flag value="@avx2@" />
<flag value="@avx512@" />
<flag value="@shani@" />
<flag value="@sse41@" />
</package>
<configure>
<option type="with" name="pkgconfigdir" default="${libdir}/pkgconfig" example="=DIR" unprefixed="true" substitute="true" description="Path to pkgconfig directory." data_type="path" />
<option type="with" name="tests" default="yes" conditional="true" description="Compile with unit tests." />
<option type="with" name="examples" default="yes" conditional="true" description="Compile with examples." />
<option type="with" name="icu" default="no" define="BOOST_HAS_ICU" substitute="true" value="-DWITH_ICU" description="Compile with International Components for Unicode." />
<option type="enable" name="avx2" default="no" description="Compile with avx2 intrinsics (specifically -mavx -mavx2)." />
<option type="enable" name="avx512" default="no" description="Compile with avx512 intrinsics (specifically -mavx512bw -mavx512f)." />
<option type="enable" name="sse41" default="no" description="Compile with sse4.1 intrinsics (specifically -msse4.1)." />
<option type="enable" name="shani" default="no" description="Compile with sha native intrinsics (specifically -msse4 -msha)" />
<option type="enable" name="ndebug" default="yes" define="NDEBUG" description="Compile without debug assertions." />
<option type="enable" name="shared" default="yes" define="BOOST_ALL_DYN_LINK" inherited="true" description="Required for dynamically linking boost test." />
<!-- Boost bugs we need to avoid. -->
<!-- https://trac.macports.org/ticket/42282 [clang, 1.55] -->
<!-- https://svn.boost.org/trac/boost/ticket/8973 [gcc, 1.54] -->
<!-- https://svn.boost.org/trac/boost/ticket/6851 [gcc, 1.50-1.53] -->
<!-- [log rotation derivation for customization] [???? 1.56] -->
<!-- [compiler failure] [vc120 1.62-1.72] -->
<dependency name="boost" version="1.76.0" />
<!-- boost atomic is header-only for lock-free cases. -->
<!-- www.boost.org/doc/libs/1_78_0/doc/html/atomic/interface.html
<dependency name="boost_atomic" m4="none" />
-->
<dependency name="boost_chrono" />
<dependency name="boost_container" m4="none" />
<!-- <dependency name="boost_date_time" /> -->
<!-- <dependency name="boost_filesystem" /> -->
<dependency name="boost_iostreams" />
<!-- boost json is not used in the header-only configuration. -->
<dependency name="boost_json" />
<dependency name="boost_locale" />
<dependency name="boost_program_options" />
<!-- <dependency name="boost_regex" /> -->
<dependency name="boost_system" />
<dependency name="boost_thread" />
<dependency name="boost_unit_test_framework" option="tests" />
<dependency name="pthread" system_exclude="android" />
<dependency name="rt" function="clock_gettime" system="linux" system_exclude="android" />
<dependency name="icu-i18n" version="55.2" unprefixed="true" option="icu" />
<!-- TODO: verify this with more recent ICU. -->
<!-- -ldl is missing from icu package config. -->
<dependency name="dl" function="dlopen" system="linux" optionXXX="icu" />
<!-- This custom version prevents inadvertent use of breaking changes in the origin repo. -->
<dependency name="secp256k1" version="0.1.0.20" />
<!-- General flags -->
<flag name="std=c++20" comment="Require c++20 for all c++ products." context="c++" />
<flag name="Wall" comment="Warn on all stuff." context="c" />
<flag name="Wall" comment="Warn on all stuff." context="c++" />
<flag name="Wextra" comment="Warn on extra stuff." context="c" />
<flag name="Wextra" comment="Warn on extra stuff." context="c++" />
<!-- <flag name="Wpedantic" alternate="pedantic" comment="Be really annoying." context="c" /> -->
<!-- <flag name="Wpedantic" alternate="pedantic" comment="Be really annoying." context="c++" /> -->
<flag name="Wno-reorder" comment="Disallow warning on style order of declarations." context="c++" />
<flag name="Wno-missing-field-initializers" comment="Suppress warning for incomplete field initialization." context="c++" />
<flag name="Wno-missing-braces" comment="Conform to style." context="c++" />
<flag name="Wno-comment" comment="Ignore comments within comments or commenting of backslash extended lines." context="c++" />
<flag name="Wno-deprecated-copy" comment="Suppress warning for copy of implicitly generated copy constructor." context="c++" />
<flag name="Wno-ignored-attributes" comment="Suppress warning for ignored attributes (arising on template arguments)." context="c++" />
<flag name="Wno-mismatched-tags" compiler="clang" comment="Conflict in stdlib under clang." context="c++" />
<!-- This varies by dependency build, such as boost. So we do not enforce. -->
<!-- <flag name="fvisibility=hidden" compiler="gcc" comment="Hide internal functions from external libs." context="c++" /> -->
<!-- <flag name="DBOOST_EXCEPTION_DISABLE" comment="Disable ENABLE_CURRENT_EXCEPTION and ENABLE_ERROR_INFO integration in throw." context="c" /> -->
<flag name="no_fixup_chains" comment="Address -undefined dynamic_lookup MacOS error." context="link" />
<flag name="fstack-protector" comment="Protect stack." context="link" />
<flag name="fstack-protector-all" comment="Protect stack comprehensively." context="link" />
<!-- Project specific flags -->
<flag name="Wno-long-long" comment="Allow use of C99 'long long' type." context="c" />
<flag name="fno-var-tracking-assignments" compiler="gcc" comment="Limit delays and warnings." context="c++" />
<!-- compound flags -->
<!--
<compound name="xgetbv" type="have" comment="Require avx intrinsics.">
<flag name="mavx" />
<program>
<include header="stdio.h" />
<include header="cstdint" />
<include header="immintrin.h" />
<loc>unsigned int index=16;</loc>
<loc>long long int value = _xgetbv(index);</loc>
<loc>return value;</loc>
</program>
</compound> -->
<compound name="avx2" type="with" option="avx2" comment="Conditionally require avx2 intrinsics.">
<flag name="mavx" />
<flag name="mavx2" />
<program>
<include header="stdint.h" />
<include header="immintrin.h" />
<loc>__m256i a = _mm256_set_epi32(8, 7, 6, 5, 4, 3, 2, 1);</loc>
<loc>return _mm256_extract_epi32(_mm256_slli_epi64(a, 2), 5);</loc>
</program>
</compound>
<compound name="avx512" type="with" option="avx512" comment="Conditionally require avx512 intrinsics.">
<flag name="mavx512f" />
<flag name="mavx512bw" />
<program>
<include header="stdint.h" />
<include header="immintrin.h" />
<loc>__m512i a = _mm512_set_epi32(16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1);</loc>
<loc>return _mm_extract_epi32(_mm512_extracti32x4_epi32(_mm512_slli_epi64(a, 2), 2), 1);</loc>
</program>
</compound>
<compound name="shani" type="with" option="shani" comment="Conditionally require sha native intrincis.">
<flag name="msse4" />
<flag name="msha" />
<program>
<include header="stdint.h" />
<include header="immintrin.h" />
<loc>__m128i a = _mm_set1_epi32(0);</loc>
<loc>__m128i b = _mm_set1_epi32(15);</loc>
<loc>__m128i k = _mm_set1_epi32(31);</loc>
<loc>return _mm_extract_epi32(_mm_sha256msg2_epu32(_mm_sha256msg1_epu32(_mm_sha256rnds2_epu32(a, b, k), b), a), 2);</loc>
</program>
</compound>
<compound name="sse41" type="with" option="sse41" comment="Conditionally require sse4.1 intrinsics.">
<flag name="msse4.1" />
<program>
<include header="stdint.h" />
<include header="immintrin.h" />
<loc>__m128i a = _mm_set1_epi32(0);</loc>
<loc>__m128i b = _mm_set1_epi32(15);</loc>
<loc>return _mm_extract_epi32(_mm_add_epi64(a, b), 2);</loc>
</program>
</compound>
</configure>
<make>
<product prefix="pkgconfig" >
<file path="libbitcoin-system.pc" />
</product>
<product prefix="doc" >
<file path="AUTHORS" />
<file path="COPYING" />
<file path="ChangeLog" />
<file path="INSTALL" />
<file path="NEWS" />
<file path="README" />
</product>
<product prefix="lib" path="src" uuid="39f60708-ff48-4c22-952d-43470866f684" >
<flag substitute="icu" />
<library name="boost" />
<library name="boost_chrono" />
<!-- <library name="boost_date_time" /> -->
<!-- <library name="boost_filesystem" /> -->
<library name="boost_iostreams" />
<library name="boost_json" />
<library name="boost_locale" />
<library name="boost_program_options" />
<!-- <library name="boost_regex" /> -->
<library name="boost_system" />
<library name="boost_thread" />
<library name="pthread" />
<library name="rt" />
<library name="icu-i18n" />
<!-- TODO: verify this with more recent ICU. -->
<!-- -ldl is missing from icu package config. -->
<library name="dl" />
<library name="secp256k1" />
<headers path="include" />
<sources path="src" />
</product>
<product prefix="bin" path="examples" install="false" option="examples" uuid="b726df7d-6d1d-48fb-ac02-34eb45f9145e" >
<flag substitute="icu" />
<library name="bitcoin-system" />
<headers path="include" />
<sources path="examples" />
</product>
<product prefix="bin" path="test" target_name="libbitcoin-system-test" test="true" option="tests" uuid="51a424a9-2c12-4211-8d40-e49d1534c541" >
<runner/>
<flag substitute="icu" />
<library name="bitcoin-system" />
<library name="boost_unit_test_framework" />
<headers path="include" />
<sources path="test" />
</product>
<product prefix="include" container="bitcoin" >
<files path="include/bitcoin" />
</product>
</make>
<install>
<!-- Building with our minimum (c++11 only) version of ICU. -->
<build name="icu" version="55.2" parallel="true" >
<flag value="-w" />
<!-- TODO: verify this with more recent ICU. -->
<!-- Bug in ICU 55.2 build requires -enable-draft. -->
<option value="--enable-draft" />
<option value="--enable-rpath" />
<option value="--enable-tools" />
<option value="--disable-extras" />
<option value="--disable-icuio" />
<option value="--disable-layout" />
<option value="--disable-layoutex" />
<option value="--disable-tests" />
<option value="--disable-samples" />
</build>
<build name="boost" version="1.78.0" parallel="true" nuget="true" prebuild="true" >
<flag value="-Wno-enum-constexpr-conversion" />
<option value="--with-chrono" />
<option value="--with-iostreams" />
<option value="--with-json" />
<option value="--with-locale" />
<option value="--with-program_options" />
<option value="--with-system" />
<option value="--with-thread" />
<option value="--with-test" />
</build>
<build name="secp256k1" github="bitcoin-core" repository="secp256k1" branch="v0.5.1" parallel="true" nuget="true" >
<flag value="-w" />
<option value="--disable-tests" />
<option value="--enable-experimental" />
<option value="--enable-module-recovery" />
<option value="--enable-module-schnorrsig" />
</build>
<build name="bitcoin-system" github="libbitcoin" repository="libbitcoin-system" branch="master" parallel="true" >
<option value="${with_boost}" />
<option value="${with_pkgconfigdir}" />
</build>
</install>
<presets>
<mapping name="bitcoin-system" type="base" />
<configuration name="nix-base" />
<configuration name="gnu-debug" />
<configuration name="gnu-release" />
<configuration name="static" />
<configuration name="shared" />
<configuration name="nix-gnu-debug-static" />
<configuration name="nix-gnu-debug-shared" />
<configuration name="nix-gnu-release-static" />
<configuration name="nix-gnu-release-shared" />
</presets>
<ci>
<axis name="boost" build="true" />
<axis name="icu" build="true" with="true" buildwith="true" recognized="true" />
<coverage>
<exclude path="src/wallet/addresses/qrencode/*" />
</coverage>
<!-- image="xcode12.2" equivalent? -->
<!-- prefix variance? -->
<job build="all"
system="osx"
assert="ndebug" link="dynamic" optimization="size">
<axis name="boost" value="build" />
<!-- <axis name="icu" value="with" /> -->
<option autotools="--enable-isystem" />
</job>
<job build="all"
system="osx"
assert="ndebug" link="static" optimization="size">
<axis name="boost" value="build" />
<!-- <axis name="icu" value="build" /> -->
<option autotools="--enable-isystem" />
</job>
<job build="all"
system="linux" image="ubuntu-22.04"
compiler="clang" version="15"
assert="debug" link="dynamic" optimization="debug"
preset="nix-gnu-debug-shared">
<axis name="boost" value="build" />
<!-- axis name="icu" /> -->
<option autotools="--enable-isystem" />
<option autotools="--enable-avx2" cmake="-Denable-avx2=on" />
<option autotools="--enable-sse4" cmake="-Denable-sse4=on" />
</job>
<job build="all"
system="linux" image="ubuntu-22.04"
compiler="clang" version="15"
assert="ndebug" link="static" optimization="size"
preset="nix-gnu-release-static">
<axis name="boost" value="build" />
<axis name="icu" value="build" />
<option autotools="--enable-isystem" />
<option autotools="--enable-avx2" cmake="-Denable-avx2=on" />
</job>
<job build="all"
system="linux" image="ubuntu-22.04"
compiler="gcc" version="11"
assert="ndebug" link="dynamic" optimization="size"
preset="nix-gnu-release-shared">
<axis name="boost" value="build" />
<!-- <axis name="icu" /> -->
<option autotools="--enable-isystem" />
<option autotools="--enable-sse4" cmake="-Denable-sse4=on" />
</job>
<job build="autotools"
system="linux" image="ubuntu-22.04"
compiler="gcc" version="11"
assert="ndebug" link="static" optimization="size"
coverage="true">
<axis name="boost" value="build" />
<axis name="icu" value="build" />
<option autotools="--enable-isystem" />
<!-- <option autotools="-\-enable-avx512" cmake="-Denable-avx512=on" /> -->
</job>
<job build="cmake"
system="linux" image="ubuntu-22.04"
compiler="gcc" version="11"
assert="ndebug" link="static" optimization="size">
<axis name="boost" value="build" />
<axis name="icu" value="build" />
<!-- <option autotools="-\-enable-avx512" cmake="-Denable-avx512=on" /> -->
</job>
<job system="windows" compiler="x64" assert="debug" link="static" />
<job system="windows" compiler="x64" assert="ndebug" link="static" />
<job system="windows" compiler="Win32" assert="debug" link="static" />
<job system="windows" compiler="Win32" assert="ndebug" link="static" />
</ci>
</repository>
<repository name="libbitcoin-network" version="4.0.0" email="[email protected]" >
<package library="bitcoin-network" description="Bitcoin P2P Network Library" url="https://github.com/libbitcoin/libbitcoin-network" />
<configure>
<option type="with" name="pkgconfigdir" default="${libdir}/pkgconfig" example="=DIR" unprefixed="true" substitute="true" description="Path to pkgconfig directory." data_type="path" />
<option type="with" name="tests" default="yes" conditional="true" description="Compile with unit tests." />
<option type="enable" name="ndebug" default="yes" define="NDEBUG" description="Compile without debug assertions." />
<option type="enable" name="shared" default="yes" define="BOOST_ALL_DYN_LINK" inherited="true" description="Required for dynamically linking boost test." />
<dependency name="boost" version="1.76.0" />
<dependency name="boost_regex" />
<dependency name="boost_unit_test_framework" option="tests" />
<dependency name="bitcoin-system" version="4.0.0" />
<!-- General flags -->
<flag name="std=c++20" comment="Require c++20 for all c++ products." context="c++" />
<flag name="Wall" comment="Warn on all stuff." context="c" />
<flag name="Wall" comment="Warn on all stuff." context="c++" />
<flag name="Wextra" comment="Warn on extra stuff." context="c" />
<flag name="Wextra" comment="Warn on extra stuff." context="c++" />
<!-- <flag name="Wpedantic" alternate="pedantic" comment="Be really annoying." context="c" /> -->
<!-- <flag name="Wpedantic" alternate="pedantic" comment="Be really annoying." context="c++" /> -->
<flag name="Wno-reorder" comment="Disallow warning on style order of declarations." context="c++" />
<flag name="Wno-missing-field-initializers" comment="Suppress warning for incomplete field initialization." context="c++" />
<flag name="Wno-missing-braces" comment="Conform to style." context="c++" />
<flag name="Wno-comment" comment="Ignore comments within comments or commenting of backslash extended lines." context="c++" />
<flag name="Wno-deprecated-copy" comment="Suppress warning for copy of implicitly generated copy constructor." context="c++" />
<flag name="Wno-mismatched-tags" compiler="clang" comment="Conflict in stdlib under clang." context="c++" />
<!-- This varies by dependency build, such as boost. So we do not enforce. -->
<!-- <flag name="fvisibility=hidden" compiler="gcc" comment="Hide internal functions from external libs." context="c++" /> -->
<!-- <flag name="DBOOST_EXCEPTION_DISABLE" comment="Disable ENABLE_CURRENT_EXCEPTION and ENABLE_ERROR_INFO integration in throw." context="c" /> -->
<flag name="no_fixup_chains" comment="Address -undefined dynamic_lookup MacOS error." context="link" />
<flag name="fstack-protector" comment="Protect stack." context="link" />
<flag name="fstack-protector-all" comment="Protect stack comprehensively." context="link" />
</configure>
<make>
<product prefix="pkgconfig" >
<file path="libbitcoin-network.pc" />
</product>
<product prefix="doc" >
<file path="AUTHORS" />
<file path="COPYING" />
<file path="ChangeLog" />
<file path="INSTALL" />
<file path="NEWS" />
<file path="README" />
</product>
<product prefix="lib" path="src" uuid="564eb540-d6b6-425c-b8db-b0bee8970c18" >
<library name="boost_regex" />
<library name="bitcoin-system" />
<headers path="include" />
<sources path="src" />
</product>
<product prefix="bin" path="test" target_name="libbitcoin-network-test" test="true" option="tests" uuid="d28fc18a-8b81-4247-92ee-6967feefeeff" >
<runner>
<!--<run test="empty_tests" />-->
<!--<run test="p2p_tests" />-->
</runner>
<library name="bitcoin-network" />
<library name="boost_unit_test_framework" />
<headers path="include" />
<sources path="test" />
</product>
<product prefix="include" container="bitcoin" >
<files path="include/bitcoin" />
</product>
</make>
<install>
<!-- Building with our minimum (c++11 only) version of ICU. -->
<build name="icu" version="55.2" parallel="true" >
<flag value="-w" />
<!-- TODO: verify this with more recent ICU. -->
<!-- Bug in ICU 55.2 build requires enable-draft. -->
<option value="--enable-draft" />
<option value="--enable-rpath" />
<option value="--enable-tools" />
<option value="--disable-extras" />
<option value="--disable-icuio" />
<option value="--disable-layout" />
<option value="--disable-layoutex" />
<option value="--disable-tests" />
<option value="--disable-samples" />
</build>
<build name="boost" version="1.78.0" parallel="true" nuget="true" prebuild="true" >
<flag value="-Wno-enum-constexpr-conversion" />
<option value="--with-chrono" />
<option value="--with-iostreams" />
<option value="--with-json" />
<option value="--with-locale" />
<option value="--with-program_options" />
<option value="--with-regex" />
<option value="--with-system" />
<option value="--with-thread" />
<option value="--with-test" />
</build>
<build name="bitcoin-system" github="libbitcoin" repository="libbitcoin-system" branch="master" parallel="true" >
<option value="--without-tests" cmake="-Dwith-tests=no" />
<option value="--without-examples" cmake="-Dwith-examples=no" />
<option value="${with_boost}" />
<option value="${with_pkgconfigdir}" />
</build>
<build name="bitcoin-network" github="libbitcoin" repository="libbitcoin-network" branch="master" parallel="true" >
<option value="${with_boost}" />
<option value="${with_pkgconfigdir}" />
</build>
</install>
<presets>
<mapping name="bitcoin-network" type="base" />
<mapping name="bitcoin-system" type="base" />
<configuration name="nix-base" />
<configuration name="gnu-debug" />
<configuration name="gnu-release" />
<configuration name="static" />
<configuration name="shared" />
<configuration name="nix-gnu-debug-static" />
<configuration name="nix-gnu-debug-shared" />
<configuration name="nix-gnu-release-static" />
<configuration name="nix-gnu-release-shared" />
</presets>
<ci>
<axis name="boost" build="true" />
<axis name="icu" build="true" with="true" buildwith="true" recognized="true" />
<!-- image="xcode12.2" equivalent? -->
<!-- prefix variance? -->
<!-- boost version from 'brew' incompatible (1.72/1.76 break in asio?) -->
<!-- boost error from asio if from brew -->
<job build="all"
system="osx"
assert="ndebug" link="dynamic" optimization="size">
<axis name="boost" value="build" />
<!-- <axis name="icu" value="with" /> -->
<option autotools="--enable-isystem" />
</job>
<job build="all"
system="osx"
assert="ndebug" link="static" optimization="size">
<axis name="boost" value="build" />
<!-- <axis name="icu" value="build" /> -->
<option autotools="--enable-isystem" />
</job>
<job build="all"
system="linux" image="ubuntu-22.04"
compiler="clang" version="15"
assert="debug" link="dynamic" optimization="debug"
preset="nix-gnu-debug-shared">
<axis name="boost" value="build" />
<!-- <axis name="icu" /> -->
<option autotools="--enable-isystem" />
</job>
<job build="all"
system="linux" image="ubuntu-22.04"
compiler="clang" version="15"
assert="ndebug" link="static" optimization="size"
preset="nix-gnu-release-static">
<axis name="boost" value="build" />
<axis name="icu" value="build" />
<option autotools="--enable-isystem" />
</job>
<job build="all"
system="linux" image="ubuntu-22.04"
compiler="gcc" version="11"
assert="ndebug" link="dynamic" optimization="size"
preset="nix-gnu-release-shared">
<axis name="boost" value="build" />
<!-- <axis name="icu" /> -->
<option autotools="--enable-isystem" />
</job>
<job build="autotools"
system="linux" image="ubuntu-22.04"
compiler="gcc" version="11"
assert="ndebug" link="static" optimization="size"
coverage="true">
<axis name="boost" value="build" />
<axis name="icu" value="build" />
<option autotools="--enable-isystem" />
</job>
<job build="cmake"
system="linux" image="ubuntu-22.04"
compiler="gcc" version="11"
assert="ndebug" link="static" optimization="size">
<axis name="boost" value="build" />
<axis name="icu" value="build" />
</job>
<job system="windows" compiler="x64" assert="debug" link="static" />
<job system="windows" compiler="x64" assert="ndebug" link="static" />
<job system="windows" compiler="Win32" assert="debug" link="static" />
<job system="windows" compiler="Win32" assert="ndebug" link="static" />
</ci>
</repository>
<repository name="libbitcoin-protocol" version="4.0.0" email="[email protected]" >
<package library="bitcoin-protocol" description="Bitcoin Blockchain Query Protocol" url="https://github.com/libbitcoin/libbitcoin-protocol" />
<configure>
<option type="with" name="pkgconfigdir" default="${libdir}/pkgconfig" example="=DIR" unprefixed="true" substitute="true" description="Path to pkgconfig directory." data_type="path" />
<option type="with" name="tests" default="yes" conditional="true" description="Compile with unit tests." />
<option type="enable" name="ndebug" default="yes" define="NDEBUG" description="Compile without debug assertions." />
<option type="enable" name="shared" default="yes" define="BOOST_ALL_DYN_LINK" inherited="true" description="Required for dynamically linking boost test." />
<dependency name="boost" version="1.76.0" />
<dependency name="boost_unit_test_framework" option="tests" />
<!-- We specify zmq explicitly to require a version with tweetnacl. -->
<dependency name="zmq" version="4.3.5" />
<dependency name="bitcoin-system" version="4.0.0" />
<!-- General flags -->
<flag name="std=c++20" comment="Require c++20 for all c++ products." context="c++" />
<flag name="Wall" comment="Warn on all stuff." context="c" />
<flag name="Wall" comment="Warn on all stuff." context="c++" />
<flag name="Wextra" comment="Warn on extra stuff." context="c" />
<flag name="Wextra" comment="Warn on extra stuff." context="c++" />
<!-- <flag name="Wpedantic" alternate="pedantic" comment="Be really annoying." context="c" /> -->
<!-- <flag name="Wpedantic" alternate="pedantic" comment="Be really annoying." context="c++" /> -->
<flag name="Wno-reorder" comment="Disallow warning on style order of declarations." context="c++" />
<flag name="Wno-missing-field-initializers" comment="Suppress warning for incomplete field initialization." context="c++" />
<flag name="Wno-missing-braces" comment="Conform to style." context="c++" />
<flag name="Wno-comment" comment="Ignore comments within comments or commenting of backslash extended lines." context="c++" />
<flag name="Wno-deprecated-copy" comment="Suppress warning for copy of implicitly generated copy constructor." context="c++" />
<flag name="Wno-mismatched-tags" compiler="clang" comment="Conflict in stdlib under clang." context="c++" />
<!-- This varies by dependency build, such as boost. So we do not enforce. -->
<!-- <flag name="fvisibility=hidden" compiler="gcc" comment="Hide internal functions from external libs." context="c++" /> -->
<!-- <flag name="DBOOST_EXCEPTION_DISABLE" comment="Disable ENABLE_CURRENT_EXCEPTION and ENABLE_ERROR_INFO integration in throw." context="c" /> -->
<flag name="no_fixup_chains" comment="Address -undefined dynamic_lookup MacOS error." context="link" />
<flag name="fstack-protector" comment="Protect stack." context="link" />
<flag name="fstack-protector-all" comment="Protect stack comprehensively." context="link" />
</configure>
<make>
<product prefix="pkgconfig" >
<file path="libbitcoin-protocol.pc" />
</product>
<product prefix="doc" >
<file path="AUTHORS" />
<file path="COPYING" />
<file path="ChangeLog" />
<file path="INSTALL" />
<file path="NEWS" />
<file path="README" />
</product>
<product prefix="lib" path="src" uuid="6b94e2a5-c054-4790-963d-a7be493259b0" >
<library name="zmq" />
<library name="bitcoin-system" />
<headers path="include" />
<sources path="src" />
</product>
<product prefix="bin" path="test" target_name="libbitcoin-protocol-test" test="true" option="tests" uuid="c42be17b-063d-44f1-a5bb-9f8295144b70" >
<runner>
<!--
<run test="authenticator_tests" />
<run test="certificate_tests" />
<run test="context_tests" />
<run test="frame_tests" />
<run test="identifiers_tests" />
<run test="message_tests" />
<run test="poller_tests" />
<run test="socket_tests" />
<run test="worker_tests" />
-->
</runner>
<library name="bitcoin-protocol" />
<library name="boost_unit_test_framework" />
<headers path="include" />
<sources path="test" />
</product>
<product prefix="include" container="bitcoin" >
<files path="include/bitcoin" />
</product>
</make>
<install>
<build name="zmq" version="4.3.5" parallel="true" nuget="true" >
<flag value="-w" />
<option value="--disable-Werror" />
</build>
<build name="bitcoin-system" github="libbitcoin" repository="libbitcoin-system" branch="master" parallel="true" >
<option value="--without-tests" cmake="-Dwith-tests=no" />
<option value="--without-examples" cmake="-Dwith-examples=no" />
<option value="${with_boost}" />
<option value="${with_pkgconfigdir}" />
</build>
<build name="bitcoin-protocol" github="libbitcoin" repository="libbitcoin-protocol" branch="master" parallel="true" >
<option value="--without-tests" cmake="-Dwith-tests=no" />
<option value="${with_boost}" />
<option value="${with_pkgconfigdir}" />
</build>
</install>
<presets>
<mapping name="bitcoin-protocol" type="base" />
<mapping name="bitcoin-system" type="base" />
<configuration name="nix-base" />
<configuration name="gnu-debug" />
<configuration name="gnu-release" />
<configuration name="static" />
<configuration name="shared" />
<configuration name="nix-gnu-debug-static" />
<configuration name="nix-gnu-debug-shared" />
<configuration name="nix-gnu-release-static" />
<configuration name="nix-gnu-release-shared" />
</presets>
<ci>
<axis name="boost" build="true" />
<axis name="icu" build="true" with="true" buildwith="true" recognized="true" />
<axis name="zmq" build="true" />
<!-- image="xcode12.2" equivalent? -->
<!-- prefix variance? -->
<job build="all"
system="osx"
assert="ndebug" link="dynamic" optimization="size">
<axis name="boost" value="build" />
<!-- <axis name="icu" value="with" /> -->
<axis name="zmq" value="build" />
<option autotools="--enable-isystem" />
</job>
<job build="all"
system="osx"
assert="ndebug" link="static" optimization="size">
<axis name="boost" value="build" />
<!-- <axis name="icu" value="build" /> -->
<axis name="zmq" value="build" />
<option autotools="--enable-isystem" />
</job>
<job build="all"
system="linux" image="ubuntu-22.04"
compiler="clang" version="15"
assert="debug" link="dynamic" optimization="debug"
preset="nix-gnu-debug-shared">
<axis name="boost" value="build" />
<!-- axis name="icu" /> -->
<axis name="zmq" value="build" />
<option autotools="--enable-isystem" />
</job>
<job build="all"
system="linux" image="ubuntu-22.04"
compiler="clang" version="15"
assert="ndebug" link="static" optimization="size"
preset="nix-gnu-release-static">
<axis name="boost" value="build" />
<axis name="icu" value="build" />
<axis name="zmq" value="build" />
<option autotools="--enable-isystem" />
</job>
<job build="all"
system="linux" image="ubuntu-22.04"
compiler="gcc" version="11"
assert="ndebug" link="dynamic" optimization="size"
preset="nix-gnu-release-shared">
<axis name="boost" value="build" />
<!-- <axis name="icu" /> -->
<axis name="zmq" value="build" />
<option autotools="--enable-isystem" />
</job>
<job build="autotools"
system="linux" image="ubuntu-22.04"
compiler="gcc" version="11"
assert="ndebug" link="static" optimization="size">
<!-- coverage="true" -->
<axis name="boost" value="build" />
<axis name="icu" value="build" />
<axis name="zmq" value="build" />
<option autotools="--enable-isystem" />
</job>
<job build="cmake"
system="linux" image="ubuntu-22.04"
compiler="gcc" version="11"
assert="ndebug" link="static" optimization="size">
<axis name="boost" value="build" />
<axis name="icu" value="build" />
<axis name="zmq" value="build" />
</job>
<job system="windows" compiler="x64" assert="debug" link="static" />
<job system="windows" compiler="x64" assert="ndebug" link="static" />
<job system="windows" compiler="Win32" assert="debug" link="static" />
<job system="windows" compiler="Win32" assert="ndebug" link="static" />
</ci>
</repository>
<repository name="libbitcoin-client" version="4.0.0" email="[email protected]" >
<package library="bitcoin-client" description="Bitcoin Client Query Library" url="https://github.com/libbitcoin/libbitcoin-client" />
<configure>
<option type="with" name="pkgconfigdir" default="${libdir}/pkgconfig" example="=DIR" unprefixed="true" substitute="true" description="Path to pkgconfig directory." data_type="path" />
<option type="with" name="tests" default="yes" conditional="true" description="Compile with unit tests." />
<option type="with" name="examples" default="yes" conditional="true" description="Compile with examples." />
<option type="enable" name="ndebug" default="yes" define="NDEBUG" description="Compile without debug assertions." />
<option type="enable" name="shared" default="yes" define="BOOST_ALL_DYN_LINK" inherited="true" description="Required for dynamically linking boost test." />
<dependency name="boost" version="1.76.0" />
<dependency name="boost_unit_test_framework" option="tests" />
<dependency name="bitcoin-system" version="4.0.0" />
<dependency name="bitcoin-protocol" version="4.0.0" />
<!-- General flags -->
<flag name="std=c++20" comment="Require c++20 for all c++ products." context="c++" />
<flag name="Wall" comment="Warn on all stuff." context="c" />
<flag name="Wall" comment="Warn on all stuff." context="c++" />
<flag name="Wextra" comment="Warn on extra stuff." context="c" />
<flag name="Wextra" comment="Warn on extra stuff." context="c++" />
<!-- <flag name="Wpedantic" alternate="pedantic" comment="Be really annoying." context="c" /> -->
<!-- <flag name="Wpedantic" alternate="pedantic" comment="Be really annoying." context="c++" /> -->
<flag name="Wno-reorder" comment="Disallow warning on style order of declarations." context="c++" />
<flag name="Wno-missing-field-initializers" comment="Suppress warning for incomplete field initialization." context="c++" />
<flag name="Wno-missing-braces" comment="Conform to style." context="c++" />
<flag name="Wno-comment" comment="Ignore comments within comments or commenting of backslash extended lines." context="c++" />
<flag name="Wno-deprecated-copy" comment="Suppress warning for copy of implicitly generated copy constructor." context="c++" />
<flag name="Wno-mismatched-tags" compiler="clang" comment="Conflict in stdlib under clang." context="c++" />
<!-- This varies by dependency build, such as boost. So we do not enforce. -->
<!-- <flag name="fvisibility=hidden" compiler="gcc" comment="Hide internal functions from external libs." context="c++" /> -->
<!-- <flag name="DBOOST_EXCEPTION_DISABLE" comment="Disable ENABLE_CURRENT_EXCEPTION and ENABLE_ERROR_INFO integration in throw." context="c" /> -->
<flag name="no_fixup_chains" comment="Address -undefined dynamic_lookup MacOS error." context="link" />
<flag name="fstack-protector" comment="Protect stack." context="link" />
<flag name="fstack-protector-all" comment="Protect stack comprehensively." context="link" />
</configure>
<make>
<product prefix="pkgconfig" >
<file path="libbitcoin-client.pc" />
</product>
<product prefix="doc" >
<file path="AUTHORS" />
<file path="COPYING" />
<file path="ChangeLog" />
<file path="INSTALL" />
<file path="NEWS" />
<file path="README" />
</product>
<product prefix="lib" path="src" uuid="475e189d-f147-4122-b5fe-5bcf1153696e" >
<library name="bitcoin-system" />
<library name="bitcoin-protocol" />
<headers path="include" />
<sources path="src" />
</product>
<product prefix="bin" path="test" target_name="libbitcoin-client-test" test="true" option="tests" uuid="a56a00c6-669b-4535-9dc2-772a931b04c2" >
<runner/>
<library name="bitcoin-client" />
<library name="boost_unit_test_framework" />
<headers path="include" />
<sources path="test" />
</product>
<product prefix="bin" path="examples/console" target_name="console" install="false" option="examples" >
<library name="bitcoin-client" />
<headers path="include" />
<sources path="examples/console" />
</product>
<product prefix="bin" path="examples/get_height" project_name="libbitcoin-client-examples" target_name="get_height" install="false" option="examples" uuid="fbcc58ad-93a1-4247-b660-b32c61aca680" >
<library name="bitcoin-client" />
<headers path="include" />
<sources path="examples/get_height" />
</product>
<product prefix="include" container="bitcoin" >
<files path="include/bitcoin" />
</product>
</make>
<install>
<build name="zmq" version="4.3.5" parallel="true" nuget="true" >
<flag value="-w" />
<option value="--disable-Werror" />
</build>
<build name="bitcoin-protocol" github="libbitcoin" repository="libbitcoin-protocol" branch="master" parallel="true" >
<option value="--without-tests" cmake="-Dwith-tests=no" />
<option value="--without-examples" cmake="-Dwith-examples=no" />
<option value="${with_boost}" />
<option value="${with_pkgconfigdir}" />
</build>
<build name="bitcoin-client" github="libbitcoin" repository="libbitcoin-client" branch="master" parallel="true" >
<option value="${with_boost}" />
<option value="${with_pkgconfigdir}" />
</build>
</install>
<presets>
<mapping name="bitcoin-client" type="base" />
<mapping name="bitcoin-protocol" type="base" />
<mapping name="bitcoin-system" type="base" />
<configuration name="nix-base" />
<configuration name="gnu-debug" />
<configuration name="gnu-release" />
<configuration name="static" />
<configuration name="shared" />
<configuration name="nix-gnu-debug-static" />
<configuration name="nix-gnu-debug-shared" />
<configuration name="nix-gnu-release-static" />
<configuration name="nix-gnu-release-shared" />
</presets>
<matrix>
<job system="osx" image="xcode12.2" compiler="clang" link="dynamic" >
<get name="boost" />
<option value="--disable-static" />
<option value="--build-zmq" />
</job>
<job system="osx" compiler="clang" link="static" >
<option value="--disable-shared" />
<option value="--build-boost" />
<option value="--build-zmq" />
<option value="--prefix=$TRAVIS_BUILD_DIR/my-prefix" />
</job>
<job system="linux" compiler="clang" link="dynamic" sudo="false" >
<option value="--build-boost" />
<option value="--build-zmq" />
<option value="--disable-ndebug" />
<option value="--disable-static" />
<option value="--prefix=$TRAVIS_BUILD_DIR/my-prefix" />
<option value="CFLAGS='-Os'" />
<option value="CXXFLAGS='-Os'" />
</job>
<job system="linux" compiler="clang" link="static" version="5.0" >
<option value="--disable-shared" />
<option value="--build-boost" />
<option value="--build-zmq" />
<option value="--prefix=$TRAVIS_BUILD_DIR/my-prefix" />
<option value="CFLAGS='-Os'" />
<option value="CXXFLAGS='-Os'" />
</job>
<job system="linux" compiler="gcc" link="dynamic" version="4.8" sudo="false" >
<option value="--disable-static" />
<option value="--build-boost" />
<option value="--build-zmq" />
<option value="--prefix=$TRAVIS_BUILD_DIR/my-prefix" />
<option value="CFLAGS='-Os -s'" />
<option value="CXXFLAGS='-Os -s'" />
</job>
<job system="linux" compiler="gcc" link="static" coverage="true" >
<option value="--build-boost" />
<option value="--build-zmq" />
<option value="--disable-shared" />
<option value="--build-dir=my-build" />
<option value="--prefix=$TRAVIS_BUILD_DIR/my-prefix" />
<option value="CFLAGS='-Og -g --coverage'" />
<option value="CXXFLAGS='-Og -g --coverage'" />
</job>
<job system="windows" compiler="x64" link="static">
<option value="--disable-ndebug" />
</job>
<job system="windows" compiler="x64" link="static" />
<job system="windows" compiler="Win32" link="static">
<option value="--disable-ndebug" />
</job>
<job system="windows" compiler="Win32" link="static" />
</matrix>
</repository>
<repository name="libbitcoin-explorer" version="4.0.0" email="[email protected]" >
<package library="bitcoin-explorer" description="Bitcoin Command Line Tool" url="https://github.com/libbitcoin/libbitcoin-explorer" />
<configure>
<option type="with" name="bash-completiondir" default="no" example="[=DIR]" unprefixed="true" substitute="true" conditional="true" description="Install bash completion support, optionally specifying the directory. This option may require elevated permissions." />
<option type="with" name="pkgconfigdir" default="${libdir}/pkgconfig" example="=DIR" unprefixed="true" substitute="true" description="Path to pkgconfig directory." data_type="path" />
<option type="with" name="tests" default="yes" conditional="true" description="Compile with unit tests." />
<option type="with" name="console" default="yes" conditional="true" description="Compile console application." />
<option type="enable" name="ndebug" default="yes" define="NDEBUG" description="Compile without debug assertions." />
<option type="enable" name="shared" default="yes" define="BOOST_ALL_DYN_LINK" inherited="true" description="Required for dynamically linking boost test." />
<dependency name="boost" version="1.76.0" />
<dependency name="boost_unit_test_framework" option="tests" />
<dependency name="bash-completion" version="2.0.0" option="bash-completiondir" unprefixed="true" extract="completionsdir" default="${datadir}/bash-completion/completions" />
<dependency name="bitcoin-client" version="4.0.0" />
<dependency name="bitcoin-network" version="4.0.0" />
<!-- TODO: verify this with more recent ICU. -->
<!-- -ldl is missing from icu package config and ends up out of order from libbitcoin inclusion. -->
<dependency name="dl" function="dlopen" system="linux" optionXXX="icu" />
<!-- General flags -->
<flag name="std=c++20" comment="Require c++20 for all c++ products." context="c++" />
<flag name="Wall" comment="Warn on all stuff." context="c" />
<flag name="Wall" comment="Warn on all stuff." context="c++" />
<flag name="Wextra" comment="Warn on extra stuff." context="c" />
<flag name="Wextra" comment="Warn on extra stuff." context="c++" />
<!-- <flag name="Wpedantic" alternate="pedantic" comment="Be really annoying." context="c" /> -->
<!-- <flag name="Wpedantic" alternate="pedantic" comment="Be really annoying." context="c++" /> -->
<flag name="Wno-reorder" comment="Disallow warning on style order of declarations." context="c++" />
<flag name="Wno-missing-field-initializers" comment="Suppress warning for incomplete field initialization." context="c++" />
<flag name="Wno-missing-braces" comment="Conform to style." context="c++" />
<flag name="Wno-comment" comment="Ignore comments within comments or commenting of backslash extended lines." context="c++" />
<flag name="Wno-deprecated-copy" comment="Suppress warning for copy of implicitly generated copy constructor." context="c++" />
<flag name="Wno-mismatched-tags" compiler="clang" comment="Conflict in stdlib under clang." context="c++" />
<!-- This varies by dependency build, such as boost. So we do not enforce. -->
<!-- <flag name="fvisibility=hidden" compiler="gcc" comment="Hide internal functions from external libs." context="c++" /> -->
<!-- <flag name="DBOOST_EXCEPTION_DISABLE" comment="Disable ENABLE_CURRENT_EXCEPTION and ENABLE_ERROR_INFO integration in throw." context="c" /> -->
<flag name="no_fixup_chains" comment="Address -undefined dynamic_lookup MacOS error." context="link" />
<flag name="fstack-protector" comment="Protect stack." context="link" />
<flag name="fstack-protector-all" comment="Protect stack comprehensively." context="link" />
<!-- Project specific flags -->
<flag name="Wno-unused-parameter" comment="Clean up bx generated code." context="c++" />
</configure>
<make>
<product prefix="pkgconfig" >
<file path="libbitcoin-explorer.pc" />
</product>
<product prefix="doc" >
<file path="AUTHORS" />
<file path="COPYING" />
<file path="ChangeLog" />
<file path="INSTALL" />
<file path="NEWS" />
<file path="README" />
</product>
<product prefix="lib" path="src" uuid="4a1d71d5-3dee-47f0-a189-21c301e2808f" >
<flag define="sysconfdir" />
<library name="bitcoin-client" />
<library name="bitcoin-network" />
<!-- TODO: verify this with more recent ICU. -->
<!-- -ldl is missing from icu package config and ends up out of order from libbitcoin inclusion. -->
<library name="dl" />
<headers path="include" />
<sources path="src" />
</product>
<product prefix="bin" path="console" target_name="bx" option="console" uuid="098a91f3-291c-4a0d-ae5a-bc5f9f5693ed" >
<flag define="sysconfdir" />
<library name="bitcoin-explorer" />
<headers path="include" />