Skip to content

Commit 1aa7497

Browse files
committed
Update build, update static libraries
1 parent 7dcceda commit 1aa7497

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+35
-44525
lines changed

.github/workflows/ci-build-libs.yml

+35-32
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
name: Build dependencies
1+
name: Manual build static libraries
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- feature/update-external-libraries-experiment
8+
- main
29

3-
on: [ push ]
410

511
jobs:
612
build-libxml2-linux:
@@ -107,8 +113,8 @@ jobs:
107113
- name: Download source
108114
run: |
109115
cd libs/freetype
110-
wget -O source.tar.xz https://sourceforge.net/projects/freetype/files/latest/download
111-
unzip source.tar.xz
116+
wget -O source.tar.gz https://sourceforge.net/projects/freetype/files/freetype2/2.13.3/freetype-2.13.3.tar.gz/download
117+
tar -zxf source.tar.gz
112118
mv freetype-* src
113119
114120
- name: Build source
@@ -148,7 +154,7 @@ jobs:
148154
- name: Download source
149155
run: |
150156
cd libs/freetype
151-
wget -O source.tar.gz https://sourceforge.net/projects/freetype/files/latest/download
157+
wget -O source.tar.gz https://sourceforge.net/projects/freetype/files/freetype2/2.13.3/freetype-2.13.3.tar.gz/download
152158
ls -l
153159
pwd
154160
tar -xzf source.tar.gz
@@ -192,16 +198,16 @@ jobs:
192198
- name: Download source
193199
run: |
194200
cd libs/image/png
195-
wget -O source.tar.xz https://sourceforge.net/projects/libpng/files/latest/download
196-
unzip source.tar.xz
197-
mv lpng* src
201+
wget -O source.tar.gz https://sourceforge.net/projects/libpng/files/libpng16/1.6.46/libpng-1.6.46.tar.gz/download
202+
tar -zxf source.tar.gz
203+
mv libpng* src
198204
199205
- name: Build source
200206
run: |
201207
cd libs/image/png/src
202208
mkdir build
203209
cd build
204-
cmake ..
210+
cmake .. -DBUILD_SHARED_LIBS=OFF
205211
make
206212
cd ..
207213
mkdir -p output
@@ -232,19 +238,17 @@ jobs:
232238
233239
- name: Download source
234240
run: |
235-
cd libs/image/png/src
236-
wget -O source.tar.gz https://sourceforge.net/projects/libpng/files/latest/download
237-
ls -l
238-
pwd
241+
cd libs/image/png
242+
wget -O source.tar.gz https://sourceforge.net/projects/libpng/files/libpng16/1.6.46/libpng-1.6.46.tar.gz/download
239243
tar -xzf source.tar.gz
240-
mv lpng* src
244+
mv libpng* src
241245
242246
- name: Build source
243247
run: |
244248
cd libs/image/png/src
245249
mkdir build
246250
cd build
247-
cmake ..
251+
cmake .. -DBUILD_SHARED_LIBS=OFF
248252
make
249253
cd ..
250254
mkdir -p output
@@ -286,18 +290,17 @@ jobs:
286290
cd libs/image/zlib/src
287291
mkdir build
288292
cd build
289-
cmake ..
293+
cmake .. -DBUILD_SHARED_LIBS=OFF
290294
make
291295
cd ..
292-
mkdir -p output
293-
cp build/libzlib.a output/
296+
mkdir -p zlib/linux/${{ matrix.os == 'ubuntu-24.04' && '64' || 'arm64' }}
297+
cp build/libz.a zlib/linux/${{ matrix.os == 'ubuntu-24.04' && '64' || 'arm64' }}
294298
295299
- name: Save specific file
296300
uses: actions/upload-artifact@v4
297301
with:
298302
name: ${{ matrix.os == 'ubuntu-24.04' && 'libzlib-linux-64' || 'libzlib-linux-arm64' }}
299-
path: libs/image/png/zlib/output/libzlib.a
300-
303+
path: libs/image/zlib/src/zlib
301304

302305
build-zlib-macos:
303306
strategy:
@@ -328,17 +331,17 @@ jobs:
328331
cd libs/image/zlib/src
329332
mkdir build
330333
cd build
331-
cmake ..
334+
cmake .. -DBUILD_SHARED_LIBS=OFF
332335
make
333336
cd ..
334-
mkdir -p output
335-
cp build/libzlib.a output/
337+
mkdir -p zlib/macos/arm64
338+
cp build/libz.a zlib/macos/arm64
336339
337340
- name: Save specific file
338341
uses: actions/upload-artifact@v4
339342
with:
340343
name: libzlib-macos-arm64
341-
path: libs/image/zlib/src/output/libzlib.a
344+
path: libs/image/zlib/src/zlib
342345

343346
build-icu-linux:
344347
strategy:
@@ -371,15 +374,15 @@ jobs:
371374
./runConfigureICU Linux --enable-static --disable-shared
372375
make -j8
373376
cd ../../
374-
mkdir -p output
375-
cp icu4c/source/lib/libicudata.a output/
376-
cp icu4c/source/lib/libicuuc.a output/
377+
mkdir -p icu/linux/${{ matrix.os == 'ubuntu-24.04' && '64' || 'arm64' }}
378+
cp icu4c/source/lib/libicudata.a icu/linux/${{ matrix.os == 'ubuntu-24.04' && '64' || 'arm64' }}
379+
cp icu4c/source/lib/libicuuc.a icu/linux/${{ matrix.os == 'ubuntu-24.04' && '64' || 'arm64' }}
377380
378381
- name: Save specific file
379382
uses: actions/upload-artifact@v4
380383
with:
381384
name: ${{ matrix.os == 'ubuntu-24.04' && 'icu-linux-64' || 'icu-linux-arm64' }}
382-
path: libs/icu/src/output/libicu*.a
385+
path: libs/icu/src/icu
383386

384387

385388
build-icu-macos:
@@ -415,12 +418,12 @@ jobs:
415418
./runConfigureICU macOS --enable-static --disable-shared
416419
make -j8
417420
cd ../../
418-
mkdir -p output
419-
cp icu4c/source/lib/libicudata.a output/
420-
cp icu4c/source/lib/libicuuc.a output/
421+
mkdir -p icu/mac/arm64
422+
cp icu4c/source/lib/libicudata.a icu/mac/arm64
423+
cp icu4c/source/lib/libicuuc.a icu/mac/arm64
421424
422425
- name: Save specific file
423426
uses: actions/upload-artifact@v4
424427
with:
425428
name: icu-macos-arm64
426-
path: libs/icu/src/output/libicu*.a
429+
path: libs/icu/src/icu

libs/freetype/linux/32/libfreetype.a

-1.02 MB
Binary file not shown.

libs/freetype/linux/64/libfreetype.a

66.2 KB
Binary file not shown.
1.37 MB
Binary file not shown.

libs/freetype/mac/64/libfreetype.a

-1.2 MB
Binary file not shown.

libs/freetype/mac/arm64/libfreetype.a

110 KB
Binary file not shown.
-939 KB
Binary file not shown.
-1.06 MB
Binary file not shown.

libs/icu/linux/32/libicuuc.a

-3.98 MB
Binary file not shown.

libs/icu/linux/64/libicudata.a

4.78 MB
Binary file not shown.

libs/icu/linux/64/libicuuc.a

595 KB
Binary file not shown.
Binary file not shown.

libs/icu/linux/arm64/libicuuc.a

5.61 MB
Binary file not shown.

libs/icu/mac/64/libicudata.a

-25.6 MB
Binary file not shown.

libs/icu/mac/64/libicuuc.a

-2.52 MB
Binary file not shown.

libs/icu/mac/arm64/libicudata.a

-444 KB
Binary file not shown.

libs/icu/mac/arm64/libicui18n.a

-5.6 MB
Binary file not shown.

libs/icu/mac/arm64/libicuio.a

-67.1 KB
Binary file not shown.

libs/icu/mac/arm64/libicutu.a

-277 KB
Binary file not shown.

libs/icu/mac/arm64/libicuuc.a

-19.6 KB
Binary file not shown.

libs/icu/windows/32/libicudata.a

-25.6 MB
Binary file not shown.

libs/icu/windows/32/libicuuc.a

-3.23 MB
Binary file not shown.

libs/icu/windows/64/libicudata.a

-25.6 MB
Binary file not shown.

libs/icu/windows/64/libicuuc.a

-3.41 MB
Binary file not shown.

libs/image/png/linux/32/libpng.a

-246 KB
Binary file not shown.

libs/image/png/linux/64/libpng.a

103 KB
Binary file not shown.

libs/image/png/linux/arm64/libpng.a

455 KB
Binary file not shown.

libs/image/png/mac/64/libpng.a

-275 KB
Binary file not shown.

libs/image/png/mac/arm64/libpng.a

125 KB
Binary file not shown.

libs/image/png/src/CMakeLists.txt

-33
This file was deleted.

0 commit comments

Comments
 (0)