-
-
Notifications
You must be signed in to change notification settings - Fork 3
2653 lines (2153 loc) · 110 KB
/
build.yml
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
name: Build
on: [push, pull_request]
env:
nasm_version: '2.16.01'
yasm_version: '1.3.0'
win_flex_bison_version: '2.5.25'
boost_version: '1.82.0'
pkgconf_version: '1.9.4'
zlib_version: '1.2.13'
openssl_version: '3.1.0'
gnutls_version: '3.8.0'
libpng_version: '1.6.39'
libjpeg_turbo_version: '2.1.5.1'
pcre2_version: '10.42'
bzip2_version: '1.0.8'
xz_version: '5.4.2'
brotli_version: '1.0.9'
pixmap_version: '0.42.2'
libxml2_version: '2.10.4'
nghttp2_version: '1.52.0'
sqlite3_version: '3410200'
libogg_version: '1.3.5'
libvorbis_version: '1.3.7'
flac_version: '1.4.2'
wavpack_version: '5.6.0'
opus_version: '1.3.1'
opusfile_version: '0.12'
speex_version: '1.2.1'
mpg123_version: '1.31.3'
lame_version: '3.100'
twolame_version: '0.4.0'
taglib_version: '1.13'
dlfcn_version: '1.3.1'
fftw_version: '3.3.5'
glib_version: '2.76.2'
glib_networking_version: '2.76.0'
libpsl_version: '0.21.2'
libsoup_version: '3.4.1'
orc_version: '0.4.33'
musepack_version: '475'
libopenmpt_version: '0.6.10'
libgme_version: '0.6.3'
fdk_aac_version: '2.0.2'
libbs2b_version: '3.1.0'
chromaprint_version: '1.5.1'
gstreamer_version: '1.22.2'
icu4c_version: '73.1'
expat_version: '2.5.0'
freetype_version: '2.13.0'
harfbuzz_version: '7.1.0'
abseil_cpp_version: '20230125.2'
protobuf_version: '22.3'
qt_version: '6.5.0'
faad2_version: '2.10.1'
max_releases: '6'
wget_options: '-t 20 --retry-connrefused'
curl_options: '-O -L --connect-timeout 15 -m 30 --retry 15 --retry-delay 10 --retry-max-time 300 --retry-all-errors'
sourceforge_mirror: 'downloads.sourceforge.net'
cmake_loglevel: 'DEBUG'
jobs:
build-windows-msvc:
name: Build Windows MSVC
runs-on: windows-2022
if: (!contains(github.event.head_commit.message, 'skip ci'))
strategy:
matrix:
arch: [ x86_64, x86 ]
buildtype: [ release, debug ]
steps:
- name: Set prefix path
shell: bash
run: |
echo "prefix_path_backslash=c:\strawberry_msvc_${{matrix.arch}}_${{matrix.buildtype}}" >> $GITHUB_ENV
echo "prefix_path_backslash2=c:\\\\strawberry_msvc_${{matrix.arch}}_${{matrix.buildtype}}" >> $GITHUB_ENV
echo "prefix_path_forwardslash=c:/strawberry_msvc_${{matrix.arch}}_${{matrix.buildtype}}" >> $GITHUB_ENV
echo "prefix_path_unix=/c/strawberry_msvc_${{matrix.arch}}_${{matrix.buildtype}}" >> $GITHUB_ENV
- name: Set arch variables (x86)
if: matrix.arch == 'x86'
shell: bash
run: |
echo "openssl_platform=VC-WIN32" >> $GITHUB_ENV
echo "msbuild_platform=win32" >> $GITHUB_ENV
echo "arch_short=x86" >> $GITHUB_ENV
echo "arch_win=win32" >> $GITHUB_ENV
echo "libdir=lib" >> $GITHUB_ENV
echo "bindir=bin" >> $GITHUB_ENV
- name: Set arch variables (x86_64)
if: matrix.arch == 'x86_64'
shell: bash
run: |
echo "openssl_platform=VC-WIN64A" >> $GITHUB_ENV
echo "msbuild_platform=x64" >> $GITHUB_ENV
echo "arch_short=x64" >> $GITHUB_ENV
echo "arch_win=win64" >> $GITHUB_ENV
echo "libdir=lib64" >> $GITHUB_ENV
echo "bindir=bin64" >> $GITHUB_ENV
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{matrix.arch}}
sdk: 10.0.20348.0
vsversion: 17
toolset: 14.3
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- name: Install python dependencies
shell: cmd
run: pip install meson ninja
- name: Install wget
shell: cmd
run: choco install wget
- name: Create sources directory
shell: cmd
run: mkdir sources
- name: Create downloads directory
shell: cmd
run: mkdir downloads
- name: Create directories
shell: bash
run: mkdir -p ${{env.prefix_path_unix}}/{bin,lib,include}
- name: Update PATH
shell: pwsh
run: echo "${{env.prefix_path_backslash}}\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Set extra version variables
shell: bash
run: |
echo "boost_version_underscore=$(echo ${{env.boost_version}} | sed 's/\./_/g')" >> $GITHUB_ENV
echo "icu4c_version_underscore=$(echo ${{env.icu4c_version}} | sed 's/\./_/g')" >> $GITHUB_ENV
echo "icu4c_version_dash=$(echo ${{env.icu4c_version}} | sed 's/\./\-/g')" >> $GITHUB_ENV
echo "glib_version_short=$(echo ${{env.glib_version}} | cut -d '.' -f 1-2)" >> $GITHUB_ENV
echo "glib_networking_version_short=$(echo ${{env.glib_networking_version}} | cut -d '.' -f 1-2)" >> $GITHUB_ENV
echo "libsoup_version_short=$(echo ${{env.libsoup_version}} | cut -d '.' -f 1-2)" >> $GITHUB_ENV
echo "qt_version_short=$(echo ${{env.qt_version}} | cut -d '.' -f 1-2)" >> $GITHUB_ENV
- name: Copy bin files
shell: bash
run: cp /c/strawberry/c/bin/{patch.exe,strip.exe,strings.exe} ${{env.prefix_path_unix}}/bin
- name: Uninstall conflicting mingw
shell: cmd
run: choco uninstall mingw -y -f
- name: Delete conflicting files
shell: bash
run: rm -rf /c/strawberry/c "/c/program files/OpenSSL" "/c/program files/postgresql"
- name: Delete conflicting icu
shell: bash
run: |
find "/c/program files (x86)/windows kits/" -name 'icu*.lib' -delete
find "/c/program files (x86)/windows kits/" -name 'icu*.h' -delete
- name: Download nasm
shell: bash
working-directory: downloads
run: curl ${{env.curl_options}} https://www.nasm.us/pub/nasm/releasebuilds/${{env.nasm_version}}/${{env.arch_win}}/nasm-${{env.nasm_version}}-installer-${{env.arch_short}}.exe
- name: Create nasm directory
shell: cmd
run: mkdir c:\nasm
- name: Extract nasm
shell: cmd
working-directory: c:/nasm
run: 7z x "${{github.workspace}}\downloads\nasm-${{env.nasm_version}}-installer-${{env.arch_short}}.exe"
- name: Copy nasm
shell: bash
run: cp /c/nasm/nasm.exe /c/nasm/nasmw.exe
- name: Add nasm to PATH
shell: pwsh
run: echo "c:\nasm" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Download win_flex_bison
shell: bash
working-directory: downloads
run: curl ${{env.curl_options}} https://github.com/lexxmark/winflexbison/releases/download/v${{env.win_flex_bison_version}}/win_flex_bison-${{env.win_flex_bison_version}}.zip
- name: Create win_flex_bison directory
shell: cmd
run: mkdir c:\win_flex_bison
- name: Extract win_flex_bison
shell: cmd
working-directory: c:\win_flex_bison
run: 7z x "${{github.workspace}}\downloads\win_flex_bison-${{env.win_flex_bison_version}}.zip"
- name: Add win_flex_bison to PATH
shell: pwsh
run: echo "c:\win_flex_bison" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Download Boost
shell: bash
working-directory: downloads
run: curl ${{env.curl_options}} https://boostorg.jfrog.io/artifactory/main/release/${{env.boost_version}}/source/boost_${{env.boost_version_underscore}}.tar.bz2
- name: Extract Boost
shell: bash
working-directory: sources
run: tar -xf ../downloads/boost_${{env.boost_version_underscore}}.tar.bz2
- name: Copy Boost
shell: bash
working-directory: sources
run: cp -r boost_${{env.boost_version_underscore}}/boost ${{env.prefix_path_unix}}/include/
- name: Download pkgconf
shell: bash
working-directory: downloads
run: curl ${{env.curl_options}} https://github.com/pkgconf/pkgconf/archive/refs/tags/pkgconf-${{env.pkgconf_version}}.tar.gz
- name: Extract pkgconf
shell: bash
working-directory: sources
run: tar -xf ../downloads/pkgconf-${{env.pkgconf_version}}.tar.gz
- name: Configure pkgconf
shell: cmd
env:
CL: "/MP"
working-directory: sources/pkgconf-pkgconf-${{env.pkgconf_version}}
run: meson --buildtype=${{matrix.buildtype}} --prefix=${{env.prefix_path_backslash}} --wrap-mode=nodownload -Dtests=disabled build
- name: Build pkgconf
shell: cmd
env:
CL: "/MP"
working-directory: sources/pkgconf-pkgconf-${{env.pkgconf_version}}/build
run: ninja
- name: Install pkgconf
shell: cmd
working-directory: sources/pkgconf-pkgconf-${{env.pkgconf_version}}/build
run: ninja install
- name: Copy pkgconf
shell: cmd
run: copy ${{env.prefix_path_backslash}}\bin\pkgconf.exe ${{env.prefix_path_backslash}}\bin\pkg-config.exe
- name: Download yasm
shell: bash
working-directory: downloads
run: curl ${{env.curl_options}} http://www.tortall.net/projects/yasm/releases/yasm-${{env.yasm_version}}.tar.gz
- name: Extract yasm
shell: bash
working-directory: sources
run: tar -xf ../downloads/yasm-${{env.yasm_version}}.tar.gz
- name: Configure yasm
shell: cmd
env:
CL: "/MP"
PKG_CONFIG_EXECUTABLE: ${{env.prefix_path_backslash}}\bin\pkgconf.exe
PKG_CONFIG_PATH: ${{env.prefix_path_backslash}}\lib\pkgconfig
working-directory: sources/yasm-${{env.yasm_version}}
run: cmake --log-level="${{env.cmake_loglevel}}" -S . -B build -G "NMake Makefiles" -DCMAKE_BUILD_TYPE="${{matrix.buildtype}}" -DCMAKE_INSTALL_PREFIX="${{env.prefix_path_backslash}}"
- name: Build yasm
shell: cmd
env:
CL: "/MP"
working-directory: sources/yasm-${{env.yasm_version}}/build
run: cmake --build .
- name: Install yasm
shell: cmd
working-directory: sources/yasm-${{env.yasm_version}}/build
run: cmake --install .
- name: Download zlib
shell: bash
working-directory: downloads
run: curl ${{env.curl_options}} https://github.com/madler/zlib/releases/download/v${{env.zlib_version}}/zlib-${{env.zlib_version}}.tar.gz
- name: Extract zlib
shell: bash
working-directory: sources
run: tar -xf ../downloads/zlib-${{env.zlib_version}}.tar.gz
- name: Configure zlib
shell: cmd
env:
CL: "/MP"
PKG_CONFIG_EXECUTABLE: ${{env.prefix_path_backslash}}\bin\pkgconf.exe
PKG_CONFIG_PATH: ${{env.prefix_path_backslash}}\lib\pkgconfig
working-directory: sources/zlib-${{env.zlib_version}}
run: cmake --log-level="${{env.cmake_loglevel}}" -S . -B build -G "NMake Makefiles" -DCMAKE_BUILD_TYPE="${{matrix.buildtype}}" -DCMAKE_INSTALL_PREFIX="${{env.prefix_path_backslash}}"
- name: Build zlib
shell: cmd
env:
CL: "/MP"
working-directory: sources/zlib-${{env.zlib_version}}/build
run: cmake --build .
- name: Install zlib
shell: cmd
working-directory: sources/zlib-${{env.zlib_version}}/build
run: cmake --install .
- name: Copy zlib (release)
if: matrix.buildtype == 'release'
shell: bash
run: cp ${{env.prefix_path_unix}}/lib/zlib.lib ${{env.prefix_path_unix}}/lib/z.lib
- name: Copy zlib (debug)
if: matrix.buildtype == 'debug'
shell: bash
run: |
cp ${{env.prefix_path_unix}}/lib/zlibd.lib ${{env.prefix_path_unix}}/lib/z.lib
cp ${{env.prefix_path_unix}}/lib/zlibd.lib ${{env.prefix_path_unix}}/lib/zd.lib
- name: Download openssl
shell: bash
working-directory: downloads
run: curl ${{env.curl_options}} https://www.openssl.org/source/openssl-${{env.openssl_version}}.tar.gz
- name: Extract openssl
shell: bash
working-directory: sources
run: tar -xf ../downloads/openssl-${{env.openssl_version}}.tar.gz
- name: Configure openssl (release)
if: matrix.buildtype == 'release'
shell: cmd
env:
CL: "/MP"
PKG_CONFIG_EXECUTABLE: ${{env.prefix_path_backslash}}\bin\pkgconf.exe
PKG_CONFIG_PATH: ${{env.prefix_path_backslash}}\lib\pkgconfig
working-directory: sources/openssl-${{env.openssl_version}}
run: perl Configure ${{env.openssl_platform}} shared zlib no-capieng no-tests --prefix=${{env.prefix_path_backslash}} --libdir=lib --openssldir=${{env.prefix_path_backslash}}\ssl --release --with-zlib-include=${{env.prefix_path_backslash}}\include --with-zlib-lib=${{env.prefix_path_backslash}}\lib\zlib.lib
- name: Configure openssl (debug)
if: matrix.buildtype == 'debug'
shell: cmd
env:
CL: "/MP"
PKG_CONFIG_EXECUTABLE: ${{env.prefix_path_backslash}}\bin\pkgconf.exe
PKG_CONFIG_PATH: ${{env.prefix_path_backslash}}\lib\pkgconfig
working-directory: sources/openssl-${{env.openssl_version}}
run: perl Configure ${{env.openssl_platform}} shared zlib no-capieng no-tests --prefix=${{env.prefix_path_backslash}} --libdir=lib --openssldir=${{env.prefix_path_backslash}}\ssl --debug --with-zlib-include=${{env.prefix_path_backslash}}\include --with-zlib-lib=${{env.prefix_path_backslash}}\lib\zlibd.lib
- name: Build openssl
shell: cmd
env:
CL: "/MP"
working-directory: sources/openssl-${{env.openssl_version}}
run: nmake
- name: Install openssl
shell: cmd
working-directory: sources/openssl-${{env.openssl_version}}
run: nmake install_sw
- name: Download GnuTLS
shell: bash
working-directory: downloads
run: curl ${{env.curl_options}} https://github.com/ShiftMediaProject/gnutls/releases/download/${{env.gnutls_version}}/libgnutls_${{env.gnutls_version}}_msvc17.zip
- name: Create GnuTLS directory
shell: cmd
working-directory: downloads
run: mkdir gnutls
- name: Extract GnuTLS
shell: cmd
working-directory: downloads/gnutls
run: 7z x "../libgnutls_${{env.gnutls_version}}_msvc17.zip"
- name: Copy GnuTLS (x86)
if: matrix.arch == 'x86'
shell: cmd
working-directory: downloads/gnutls
run: |
xcopy /s /y include\* ${{env.prefix_path_backslash}}\include\
xcopy /s /y bin\x86\*.* ${{env.prefix_path_backslash}}\bin\
xcopy /s /y lib\x86\*.* ${{env.prefix_path_backslash}}\lib\
- name: Copy GnuTLS (x86_64)
if: matrix.arch == 'x86_64'
shell: cmd
working-directory: downloads/gnutls
run: |
xcopy /s /y include\* ${{env.prefix_path_backslash}}\include\
xcopy /s /y bin\x64\*.* ${{env.prefix_path_backslash}}\bin\
xcopy /s /y lib\x64\*.* ${{env.prefix_path_backslash}}\lib\
- name: Create gnutls.pc
shell: bash
run: |
echo "prefix=${{env.prefix_path_forwardslash}}" >>${{env.prefix_path_unix}}/lib/pkgconfig/gnutls.pc
echo "exec_prefix=${{env.prefix_path_forwardslash}}" >>${{env.prefix_path_unix}}/lib/pkgconfig/gnutls.pc
echo "libdir=${{env.prefix_path_forwardslash}}/lib" >>${{env.prefix_path_unix}}/lib/pkgconfig/gnutls.pc
echo "includedir=${{env.prefix_path_forwardslash}}/include" >>${{env.prefix_path_unix}}/lib/pkgconfig/gnutls.pc
echo "" >>${{env.prefix_path_unix}}/lib/pkgconfig/gnutls.pc
echo "Name: gnutls" >>${{env.prefix_path_unix}}/lib/pkgconfig/gnutls.pc
echo "Description: gnutls" >>${{env.prefix_path_unix}}/lib/pkgconfig/gnutls.pc
echo "URL: https://www.gnutls.org/" >>${{env.prefix_path_unix}}/lib/pkgconfig/gnutls.pc
echo "Version: ${{env.gnutls_version}}" >>${{env.prefix_path_unix}}/lib/pkgconfig/gnutls.pc
echo "Libs: -L${{env.prefix_path_forwardslash}}/lib -lgnutls" >>${{env.prefix_path_unix}}/lib/pkgconfig/gnutls.pc
echo "Cflags: -I${{env.prefix_path_forwardslash}}/include" >>${{env.prefix_path_unix}}/lib/pkgconfig/gnutls.pc
- name: Download libpng
shell: bash
working-directory: downloads
run: curl ${{env.curl_options}} https://${{env.sourceforge_mirror}}/project/libpng/libpng16/${{env.libpng_version}}/libpng-${{env.libpng_version}}.tar.xz
- name: Extract libpng
shell: bash
working-directory: sources
run: tar -xf ../downloads/libpng-${{env.libpng_version}}.tar.xz
- name: Patch libpng
shell: bash
working-directory: sources/libpng-${{env.libpng_version}}
run: patch -p1 < ../../patches/libpng-pkgconf.patch
- name: Configure libpng
shell: cmd
env:
CL: "/MP"
PKG_CONFIG_EXECUTABLE: ${{env.prefix_path_backslash}}\bin\pkgconf.exe
PKG_CONFIG_PATH: ${{env.prefix_path_backslash}}\lib\pkgconfig
working-directory: sources/libpng-${{env.libpng_version}}
run: cmake --log-level="${{env.cmake_loglevel}}" -S . -B build -G "NMake Makefiles" -DCMAKE_BUILD_TYPE="${{matrix.buildtype}}" -DCMAKE_INSTALL_PREFIX="${{env.prefix_path_backslash}}"
- name: Build libpng
shell: cmd
env:
CL: "/MP"
working-directory: sources/libpng-${{env.libpng_version}}/build
run: cmake --build .
- name: Install libpng
shell: cmd
working-directory: sources/libpng-${{env.libpng_version}}/build
run: cmake --install .
- name: Download libjpeg-turbo
shell: bash
working-directory: downloads
run: curl ${{env.curl_options}} https://${{env.sourceforge_mirror}}/project/libjpeg-turbo/${{env.libjpeg_turbo_version}}/libjpeg-turbo-${{env.libjpeg_turbo_version}}.tar.gz
- name: Extract libjpeg-turbo
shell: bash
working-directory: sources
run: tar -xf ../downloads/libjpeg-turbo-${{env.libjpeg_turbo_version}}.tar.gz
- name: Configure libjpeg-turbo
shell: cmd
env:
CL: "/MP"
working-directory: sources/libjpeg-turbo-${{env.libjpeg_turbo_version}}
run: cmake --log-level="${{env.cmake_loglevel}}" -S . -B build -G Ninja -DCMAKE_BUILD_TYPE="${{matrix.buildtype}}" -DCMAKE_INSTALL_PREFIX="${{env.prefix_path_backslash}}" -DBUILD_SHARED_LIBS=ON -DENABLE_SHARED=ON
- name: Build libjpeg-turbo
shell: cmd
env:
CL: "/MP"
working-directory: sources/libjpeg-turbo-${{env.libjpeg_turbo_version}}/build
run: cmake --build .
- name: Install libjpeg-turbo
shell: cmd
working-directory: sources/libjpeg-turbo-${{env.libjpeg_turbo_version}}/build
run: cmake --install .
- name: Download pcre2
shell: bash
working-directory: downloads
run: curl ${{env.curl_options}} https://github.com/PhilipHazel/pcre2/releases/download/pcre2-${{env.pcre2_version}}/pcre2-${{env.pcre2_version}}.tar.bz2
- name: Extract pcre2
shell: bash
working-directory: sources
run: tar -xf ../downloads/pcre2-${{env.pcre2_version}}.tar.bz2
- name: Configure pcre2
shell: cmd
env:
CL: "/MP"
PKG_CONFIG_EXECUTABLE: ${{env.prefix_path_backslash}}\bin\pkgconf.exe
PKG_CONFIG_PATH: ${{env.prefix_path_backslash}}\lib\pkgconfig
working-directory: sources/pcre2-${{env.pcre2_version}}
run: cmake --log-level="${{env.cmake_loglevel}}" -S . -B build -G "NMake Makefiles" -DCMAKE_BUILD_TYPE="${{matrix.buildtype}}" -DCMAKE_INSTALL_PREFIX="${{env.prefix_path_backslash}}" -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF -DPCRE2_SUPPORT_UNICODE=ON -DPCRE2_BUILD_PCRE2_8=ON -DPCRE2_BUILD_PCRE2_16=ON -DPCRE2_BUILD_PCRE2_32=ON -DPCRE2_SUPPORT_UNICODE=ON -DPCRE2_BUILD_TESTS=OFF
- name: Build pcre2
shell: cmd
env:
CL: "/MP"
working-directory: sources/pcre2-${{env.pcre2_version}}/build
run: cmake --build .
- name: Install pcre2
shell: cmd
working-directory: sources/pcre2-${{env.pcre2_version}}/build
run: cmake --install .
- name: copy pcre2 lib (debug)
if: matrix.buildtype == 'debug'
shell: cmd
run: copy "${{env.prefix_path_backslash}}\lib\pcre2-8d.lib" "${{env.prefix_path_backslash}}\lib\pcre2-8.lib"
- name: Download bzip2
shell: bash
working-directory: downloads
run: curl ${{env.curl_options}} https://sourceware.org/pub/bzip2/bzip2-${{env.bzip2_version}}.tar.gz
- name: Extract bzip2
shell: bash
working-directory: sources
run: tar -xf ../downloads/bzip2-${{env.bzip2_version}}.tar.gz
- name: Patch bzip2
shell: bash
working-directory: sources/bzip2-${{env.bzip2_version}}
run: patch -p1 < ../../patches/bzip2-cmake.patch
- name: Configure bzip2
shell: cmd
env:
CL: "/MP"
PKG_CONFIG_EXECUTABLE: ${{env.prefix_path_backslash}}\bin\pkgconf.exe
PKG_CONFIG_PATH: ${{env.prefix_path_backslash}}\lib\pkgconfig
working-directory: sources/bzip2-${{env.bzip2_version}}
run: cmake --log-level="${{env.cmake_loglevel}}" -S . -B build -G "NMake Makefiles" -DCMAKE_BUILD_TYPE="${{matrix.buildtype}}" -DCMAKE_INSTALL_PREFIX="${{env.prefix_path_backslash}}"
- name: Build bzip2
shell: cmd
env:
CL: "/MP"
working-directory: sources/bzip2-${{env.bzip2_version}}/build
run: cmake --build .
- name: Install bzip2
shell: cmd
working-directory: sources/bzip2-${{env.bzip2_version}}/build
run: cmake --install .
- name: Download xz
shell: bash
working-directory: downloads
run: curl ${{env.curl_options}} https://${{env.sourceforge_mirror}}/project/lzmautils/xz-${{env.xz_version}}.tar.xz
- name: Extract xz
shell: bash
working-directory: sources
run: tar -xf ../downloads/xz-${{env.xz_version}}.tar.xz
- name: Upgrade xz project
shell: cmd
env:
CL: "/MP"
working-directory: sources/xz-${{env.xz_version}}/windows/vs2019
run: start /w devenv.exe xz_win.sln /upgrade
- name: Build xz
shell: cmd
env:
CL: "/MP"
working-directory: sources/xz-${{env.xz_version}}/windows/vs2019
run: msbuild xz_win.sln /property:Configuration=${{matrix.buildtype}} /p:platform=${{env.msbuild_platform}}
- name: Install xz
shell: cmd
working-directory: sources/xz-${{env.xz_version}}/windows/vs2019
run: |
copy ${{matrix.buildtype}}\${{env.msbuild_platform}}\liblzma_dll\*.lib ${{env.prefix_path_backslash}}\lib\
copy ${{matrix.buildtype}}\${{env.msbuild_platform}}\liblzma_dll\*.dll ${{env.prefix_path_backslash}}\bin\
copy ..\..\src\liblzma\api\*.h ${{env.prefix_path_backslash}}\include\
mkdir ${{env.prefix_path_backslash}}\include\lzma
copy ..\..\src\liblzma\api\lzma\*.* ${{env.prefix_path_backslash}}\include\lzma\
- name: Download brotli
shell: bash
working-directory: downloads
run: curl ${{env.curl_options}} https://github.com/google/brotli/archive/refs/tags/v${{env.brotli_version}}.tar.gz
- name: Extract brotli
shell: bash
working-directory: sources
run: tar -xf ../downloads/v${{env.brotli_version}}.tar.gz
- name: Configure brotli
shell: cmd
env:
CL: "/MP"
PKG_CONFIG_EXECUTABLE: ${{env.prefix_path_backslash}}\bin\pkgconf.exe
PKG_CONFIG_PATH: ${{env.prefix_path_backslash}}\lib\pkgconfig
working-directory: sources/brotli-${{env.brotli_version}}
run: cmake --log-level="${{env.cmake_loglevel}}" -S . -B build_dir -G "NMake Makefiles" -DCMAKE_BUILD_TYPE="${{matrix.buildtype}}" -DCMAKE_INSTALL_PREFIX="${{env.prefix_path_backslash}}" -DBUILD_TESTING=OFF
- name: Build brotli
shell: cmd
env:
CL: "/MP"
working-directory: sources/brotli-${{env.brotli_version}}/build_dir
run: cmake --build .
- name: Install brotli
shell: cmd
working-directory: sources/brotli-${{env.brotli_version}}/build_dir
run: cmake --install .
- name: Download libiconv
shell: cmd
working-directory: sources
run: git clone https://github.com/pffang/libiconv-for-Windows
- name: Build libiconv
shell: cmd
env:
CL: "/MP"
working-directory: sources/libiconv-for-Windows
run: msbuild libiconv.sln /property:Configuration=${{matrix.buildtype}}
- name: Install libiconv
shell: cmd
working-directory: sources/libiconv-for-Windows
run: |
copy include\*.h ${{env.prefix_path_backslash}}\include\
copy output\${{env.msbuild_platform}}\${{matrix.buildtype}}\*.lib ${{env.prefix_path_backslash}}\lib\
copy output\${{env.msbuild_platform}}\${{matrix.buildtype}}\*.dll ${{env.prefix_path_backslash}}\bin\
- name: Copy libiconv (debug)
if: matrix.buildtype == 'debug'
shell: bash
run: cp ${{env.prefix_path_unix}}/lib/libiconvD.lib ${{env.prefix_path_unix}}/lib/libiconv.lib
- name: Download pixman
shell: bash
working-directory: downloads
run: curl ${{env.curl_options}} https://www.cairographics.org/releases/pixman-${{env.pixmap_version}}.tar.gz
- name: Extract pixman
shell: bash
working-directory: sources
run: tar -xf ../downloads/pixman-${{env.pixmap_version}}.tar.gz
- name: Configure pixman
shell: cmd
env:
CL: "/MP"
PKG_CONFIG_EXECUTABLE: ${{env.prefix_path_backslash}}\bin\pkgconf.exe
PKG_CONFIG_PATH: ${{env.prefix_path_backslash}}\lib\pkgconfig
working-directory: sources/pixman-${{env.pixmap_version}}
run: meson --buildtype=${{matrix.buildtype}} --prefix=${{env.prefix_path_backslash}} --pkg-config-path=${{env.prefix_path_backslash}}\lib\pkgconfig --wrap-mode=nodownload -Dgtk=disabled -Dlibpng=enabled -Dtests=disabled build
- name: Build pixman
shell: cmd
env:
CL: "/MP"
working-directory: sources/pixman-${{env.pixmap_version}}/build
run: ninja
- name: Install pixman
shell: cmd
working-directory: sources/pixman-${{env.pixmap_version}}/build
run: ninja install
- name: Download libxml2
shell: bash
working-directory: downloads
run: curl ${{env.curl_options}} https://gitlab.gnome.org/GNOME/libxml2/-/archive/v${{env.libxml2_version}}/libxml2-v${{env.libxml2_version}}.tar.bz2
- name: Extract libxml2
shell: bash
working-directory: sources
run: tar -xf ../downloads/libxml2-v${{env.libxml2_version}}.tar.bz2 || true
- name: Configure libxml2
shell: cmd
env:
CL: "/MP"
PKG_CONFIG_EXECUTABLE: ${{env.prefix_path_backslash}}\bin\pkgconf.exe
PKG_CONFIG_PATH: ${{env.prefix_path_backslash}}\lib\pkgconfig
working-directory: sources/libxml2-v${{env.libxml2_version}}
run: cmake --log-level="${{env.cmake_loglevel}}" -S . -B build -G "NMake Makefiles" -DCMAKE_BUILD_TYPE="${{matrix.buildtype}}" -DCMAKE_INSTALL_PREFIX="${{env.prefix_path_backslash}}" -DBUILD_SHARED_LIBS=ON -DLIBXML2_WITH_PYTHON=OFF -DLIBXML2_WITH_ZLIB=ON
- name: Build libxml2
shell: cmd
env:
CL: "/MP"
working-directory: sources/libxml2-v${{env.libxml2_version}}/build
run: cmake --build .
- name: Install libxml2
shell: cmd
working-directory: sources/libxml2-v${{env.libxml2_version}}/build
run: cmake --install .
- name: copy libxml2 (debug)
if: matrix.buildtype == 'debug'
shell: bash
run: cp ${{env.prefix_path_unix}}/lib/libxml2d.lib ${{env.prefix_path_unix}}/lib/libxml2.lib
- name: Download nghttp2
shell: bash
working-directory: downloads
run: curl ${{env.curl_options}} https://github.com/nghttp2/nghttp2/releases/download/v${{env.nghttp2_version}}/nghttp2-${{env.nghttp2_version}}.tar.xz
- name: Extract nghttp2
shell: bash
working-directory: sources
run: tar -xf ../downloads/nghttp2-${{env.nghttp2_version}}.tar.xz
- name: Configure nghttp2
shell: cmd
env:
CL: "/MP"
PKG_CONFIG_EXECUTABLE: ${{env.prefix_path_backslash}}\bin\pkgconf.exe
PKG_CONFIG_PATH: ${{env.prefix_path_backslash}}\lib\pkgconfig
working-directory: sources/nghttp2-${{env.nghttp2_version}}
run: cmake --log-level="${{env.cmake_loglevel}}" -S . -B build -G "NMake Makefiles" -DCMAKE_BUILD_TYPE="${{matrix.buildtype}}" -DCMAKE_INSTALL_PREFIX="${{env.prefix_path_backslash}}" -DENABLE_SHARED_LIB=ON
- name: Build nghttp2
shell: cmd
env:
CL: "/MP"
working-directory: sources/nghttp2-${{env.nghttp2_version}}/build
run: cmake --build .
- name: Install nghttp2
shell: cmd
working-directory: sources/nghttp2-${{env.nghttp2_version}}/build
run: cmake --install .
- name: Download SQLite
shell: bash
working-directory: downloads
run: curl ${{env.curl_options}} https://sqlite.org/2023/sqlite-autoconf-${{env.sqlite3_version}}.tar.gz
- name: Extract SQLite
shell: bash
working-directory: sources
run: tar -xf ../downloads/sqlite-autoconf-${{env.sqlite3_version}}.tar.gz
- name: Build SQlite
shell: cmd
env:
CL: "/MP"
working-directory: sources/sqlite-autoconf-${{env.sqlite3_version}}
run: |
cl -DSQLITE_API="__declspec(dllexport)" -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_COLUMN_METADATA sqlite3.c -link -dll -out:sqlite3.dll
cl shell.c sqlite3.c -Fe:sqlite3.exe
- name: Install SQLite
shell: cmd
working-directory: sources/sqlite-autoconf-${{env.sqlite3_version}}
run: |
copy *.h ${{env.prefix_path_backslash}}\include\
copy *.lib ${{env.prefix_path_backslash}}\lib\
copy *.dll ${{env.prefix_path_backslash}}\bin\
copy *.exe ${{env.prefix_path_backslash}}\bin\
- name: Create sqlite3.pc
shell: bash
run: |
echo "prefix=${{env.prefix_path_forwardslash}}" >>${{env.prefix_path_unix}}/lib/pkgconfig/sqlite3.pc
echo "exec_prefix=${{env.prefix_path_forwardslash}}" >>${{env.prefix_path_unix}}/lib/pkgconfig/sqlite3.pc
echo "libdir=${{env.prefix_path_forwardslash}}/lib" >>${{env.prefix_path_unix}}/lib/pkgconfig/sqlite3.pc
echo "includedir=${{env.prefix_path_forwardslash}}/include" >>${{env.prefix_path_unix}}/lib/pkgconfig/sqlite3.pc
echo "" >>${{env.prefix_path_unix}}/lib/pkgconfig/sqlite3.pc
echo "Name: SQLite" >>${{env.prefix_path_unix}}/lib/pkgconfig/sqlite3.pc
echo "Description: SQL database engine" >>${{env.prefix_path_unix}}/lib/pkgconfig/sqlite3.pc
echo "URL: https://www.sqlite.org/" >>${{env.prefix_path_unix}}/lib/pkgconfig/sqlite3.pc
echo "Version: 3.38.1" >>${{env.prefix_path_unix}}/lib/pkgconfig/sqlite3.pc
echo "Libs: -L${{env.prefix_path_forwardslash}}/lib -lsqlite3" >>${{env.prefix_path_unix}}/lib/pkgconfig/sqlite3.pc
echo "Libs.private: -lz -ldl" >>${{env.prefix_path_unix}}/lib/pkgconfig/sqlite3.pc
echo "Cflags: -I${{env.prefix_path_forwardslash}}/include" >>${{env.prefix_path_unix}}/lib/pkgconfig/sqlite3.pc
- name: Download libogg
shell: bash
working-directory: downloads
run: curl ${{env.curl_options}} https://downloads.xiph.org/releases/ogg/libogg-${{env.libogg_version}}.tar.xz
- name: Extract libogg
shell: bash
working-directory: sources
run: tar -xf ../downloads/libogg-${{env.libogg_version}}.tar.xz
- name: Configure libogg
shell: cmd
env:
CL: "/MP"
PKG_CONFIG_EXECUTABLE: ${{env.prefix_path_backslash}}\bin\pkgconf.exe
PKG_CONFIG_PATH: ${{env.prefix_path_backslash}}\lib\pkgconfig
working-directory: sources/libogg-${{env.libogg_version}}
run: cmake --log-level="${{env.cmake_loglevel}}" -S . -B build -G "NMake Makefiles" -DCMAKE_BUILD_TYPE="${{matrix.buildtype}}" -DCMAKE_INSTALL_PREFIX="${{env.prefix_path_backslash}}" -DBUILD_SHARED_LIBS=ON -DINSTALL_DOCS=OFF
- name: Build libogg
shell: cmd
env:
CL: "/MP"
working-directory: sources/libogg-${{env.libogg_version}}/build
run: cmake --build .
- name: Install libogg
shell: cmd
working-directory: sources/libogg-${{env.libogg_version}}/build
run: cmake --install .
- name: Download libvorbis
shell: bash
working-directory: downloads
run: curl ${{env.curl_options}} https://downloads.xiph.org/releases/vorbis/libvorbis-${{env.libvorbis_version}}.tar.xz
- name: Extract libvorbis
shell: bash
working-directory: sources
run: tar -xf ../downloads/libvorbis-${{env.libvorbis_version}}.tar.xz
- name: Configure libvorbis
shell: cmd
env:
CL: "/MP"
PKG_CONFIG_EXECUTABLE: ${{env.prefix_path_backslash}}\bin\pkgconf.exe
PKG_CONFIG_PATH: ${{env.prefix_path_backslash}}\lib\pkgconfig
working-directory: sources/libvorbis-${{env.libvorbis_version}}
run: cmake --log-level="${{env.cmake_loglevel}}" -S . -B build -G "NMake Makefiles" -DCMAKE_BUILD_TYPE="${{matrix.buildtype}}" -DCMAKE_INSTALL_PREFIX="${{env.prefix_path_backslash}}" -DBUILD_SHARED_LIBS=ON
- name: Build libvorbis
shell: cmd
env:
CL: "/MP"
working-directory: sources/libvorbis-${{env.libvorbis_version}}/build
run: cmake --build .
- name: Install libvorbis
shell: cmd
working-directory: sources/libvorbis-${{env.libvorbis_version}}/build
run: cmake --install .
- name: Download flac
shell: bash
working-directory: downloads
run: curl ${{env.curl_options}} https://github.com/xiph/flac/releases/download/${{env.flac_version}}/flac-${{env.flac_version}}.tar.xz
- name: Extract flac
shell: bash
working-directory: sources
run: tar -xf ../downloads/flac-${{env.flac_version}}.tar.xz
- name: Rename nasm.exe
shell: bash
run: mv /c/nasm/nasm.exe /c/nasm/nasm.exe_
- name: Configure flac
shell: cmd
env:
CL: "/MP"
PKG_CONFIG_EXECUTABLE: ${{env.prefix_path_backslash}}\bin\pkgconf.exe
PKG_CONFIG_PATH: ${{env.prefix_path_backslash}}\lib\pkgconfig
working-directory: sources/flac-${{env.flac_version}}
run: cmake --log-level="${{env.cmake_loglevel}}" -S . -B build -G "NMake Makefiles" -DCMAKE_BUILD_TYPE="${{matrix.buildtype}}" -DCMAKE_INSTALL_PREFIX="${{env.prefix_path_backslash}}" -DBUILD_SHARED_LIBS=ON -DBUILD_DOCS=OFF -DBUILD_EXAMPLES=OFF -DINSTALL_MANPAGES=OFF -DBUILD_TESTING=OFF -DBUILD_PROGRAMS=OFF
- name: Build flac
shell: cmd
env:
CL: "/MP"
working-directory: sources/flac-${{env.flac_version}}/build
run: cmake --build .
- name: Install flac
shell: cmd
working-directory: sources/flac-${{env.flac_version}}/build
run: cmake --install .
- name: Rename nasm.exe
shell: bash
run: mv /c/nasm/nasm.exe_ /c/nasm/nasm.exe
- name: Download wavpack
shell: bash
working-directory: downloads
run: curl ${{env.curl_options}} https://www.wavpack.com/wavpack-${{env.wavpack_version}}.tar.bz2
- name: Extract wavpack
shell: bash
working-directory: sources
run: tar -xf ../downloads/wavpack-${{env.wavpack_version}}.tar.bz2
- name: patch wavpack
shell: bash
working-directory: sources/wavpack-${{env.wavpack_version}}
run: sed -i '/wavpackdll.rc/d' CMakeLists.txt
- name: Configure wavpack
shell: cmd
env:
CL: "/MP"
PKG_CONFIG_EXECUTABLE: ${{env.prefix_path_backslash}}\bin\pkgconf.exe
PKG_CONFIG_PATH: ${{env.prefix_path_backslash}}\lib\pkgconfig
working-directory: sources/wavpack-${{env.wavpack_version}}
run: cmake --log-level="${{env.cmake_loglevel}}" -S . -B build -G "NMake Makefiles" -DCMAKE_BUILD_TYPE="${{matrix.buildtype}}" -DCMAKE_INSTALL_PREFIX="${{env.prefix_path_backslash}}" -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF -DWAVPACK_BUILD_DOCS=OFF -DWAVPACK_BUILD_PROGRAMS=OFF -DWAVPACK_ENABLE_ASM=OFF -DWAVPACK_ENABLE_LEGACY=OFF -DWAVPACK_BUILD_WINAMP_PLUGIN=OFF -DWAVPACK_BUILD_COOLEDIT_PLUGIN=OFF
- name: Build wavpack
shell: cmd
env:
CL: "/MP"
working-directory: sources/wavpack-${{env.wavpack_version}}/build