Skip to content

Commit

Permalink
update build
Browse files Browse the repository at this point in the history
  • Loading branch information
basdp committed Oct 9, 2024
1 parent 49317ff commit 143c244
Show file tree
Hide file tree
Showing 436 changed files with 13 additions and 70,218 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/build-mingw.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Build with MinGW GCC
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
name: Build Zig package
on: [push]

jobs:
mingw64-x64:
name: Build Skia with MinGW GCC
name: Build Skia with MinGW Clang

runs-on: windows-latest

Expand All @@ -21,11 +20,11 @@ jobs:
install: mingw-w64-x86_64-clang mingw-w64-x86_64-lld

- name: "Clone skia"
run: git clone --depth 1 https://github.com/mono/skia.git
run: git clone --depth 1 https://github.com/mono/skia.git skia_repo
- name: "Build skia"
run: |
"${{ steps.msys2.outputs.msys2-location }}/mingw64/bin/clang" --version
cd skia
cd skia_repo
python3 tools/git-sync-deps
python3 bin/fetch-ninja
bin/gn gen out/lib --args='
Expand Down Expand Up @@ -55,12 +54,15 @@ jobs:
cxx="${{ steps.msys2.outputs.msys2-location }}/mingw64/bin/clang++"
'
third_party/ninja/ninja -C out/lib skia
mkdir -p ../lib/skia/win-x64/lib
mkdir -p ../skia/lib/win-x64
cp --recursive include ../lib/skia/win-x64/include
cp --recursive out/lib/*.lib ../lib/skia/win-x64/lib
ls out/lib
cp --recursive out/lib/*.lib ../skia/lib/win-x64/
cd ..
rm -rf skia_repo
rm -rf .*
- name: Archive the build
uses: actions/upload-artifact@v4
with:
name: windows-mingw64-x64
path: lib
name: skia-zig
path: .
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub fn build(b: *std.Build) !void {
const target = b.standardTargetOptions(.{});

if (target.result.os.tag == .windows and target.result.abi != .msvc) {
std.debug.print("Error: Skia requires the `msvc` abi on Windows. Please specify the abi using the build command (e.g. `zig build -Dtarget=x86_64-windows-msvc`) or force it by overwriting the abi in build.zig: `target.query.abi = .msvc;`.", .{});
std.debug.print("Error: Skia requires the `msvc` abi on Windows. Please specify the abi using the build command (e.g. `zig build -Dtarget=x86_64-windows-msvc`) or force it by requesting it in the default_target of b.standardTargetOptions.", .{});
return error.SkiaRequiresMSVConWin;
}

Expand Down
102 changes: 0 additions & 102 deletions skia/include/BUILD.bazel

This file was deleted.

15 changes: 0 additions & 15 deletions skia/include/OWNERS

This file was deleted.

24 changes: 0 additions & 24 deletions skia/include/android/BUILD.bazel

This file was deleted.

89 changes: 0 additions & 89 deletions skia/include/android/SkAndroidFrameworkUtils.h

This file was deleted.

Loading

0 comments on commit 143c244

Please sign in to comment.