Skip to content

Commit fc6e51d

Browse files
committed
.builds: fix apple builder
Signed-off-by: Elias Naur <[email protected]>
1 parent 5fa94ff commit fc6e51d

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.builds/apple.yml

+16-6
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,21 @@ packages:
88
- libxml2-dev
99
- libssl-dev
1010
- libz-dev
11-
- llvm-dev # for cctools
12-
- uuid-dev ## for cctools
11+
- llvm-dev # cctools
12+
- uuid-dev # cctools
13+
- ninja-build # cctools
14+
- systemtap-sdt-dev # cctools
15+
- libbsd-dev # cctools
16+
- linux-libc-dev # cctools
1317
- libplist-utils # for gogio
1418
sources:
1519
- https://git.sr.ht/~eliasnaur/applesdks
1620
- https://git.sr.ht/~eliasnaur/gio
1721
- https://git.sr.ht/~eliasnaur/giouiorg
18-
- https://github.com/tpoechtrager/cctools-port.git
19-
- https://github.com/tpoechtrager/apple-libtapi.git
20-
- https://github.com/mackyle/xar.git
22+
- https://github.com/tpoechtrager/cctools-port
23+
- https://github.com/tpoechtrager/apple-libtapi
24+
- https://github.com/tpoechtrager/apple-libdispatch
25+
- https://github.com/mackyle/xar
2126
environment:
2227
APPLE_TOOLCHAIN_ROOT: /home/build/appletools
2328
PATH: /home/build/sdk/go/bin:/home/build/go/bin:/usr/bin
@@ -42,6 +47,11 @@ tasks:
4247
- install_appletoolchain: |
4348
cd giouiorg
4449
go build -o $APPLE_TOOLCHAIN_ROOT/tools ./cmd/appletoolchain
50+
- build_libdispatch: |
51+
cd apple-libdispatch
52+
cmake -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_INSTALL_PREFIX=$APPLE_TOOLCHAIN_ROOT/libdispatch .
53+
ninja
54+
ninja install
4555
- build_xar: |
4656
cd xar/xar
4757
ac_cv_lib_crypto_OpenSSL_add_all_ciphers=yes CC=clang ./autogen.sh --prefix=/usr
@@ -53,7 +63,7 @@ tasks:
5363
./install.sh
5464
- build_cctools: |
5565
cd cctools-port/cctools
56-
./configure --prefix $APPLE_TOOLCHAIN_ROOT/toolchain --with-libtapi=$APPLE_TOOLCHAIN_ROOT/libtapi --target=x86_64-apple-darwin19
66+
./configure --target=x86_64-apple-darwin19 --prefix $APPLE_TOOLCHAIN_ROOT/toolchain --with-libtapi=$APPLE_TOOLCHAIN_ROOT/libtapi --with-libdispatch=$APPLE_TOOLCHAIN_ROOT/libdispatch --with-libblocksruntime=$APPLE_TOOLCHAIN_ROOT/libdispatch
5767
make install
5868
- test_macos: |
5969
cd gio

0 commit comments

Comments
 (0)