Skip to content

Commit 376730d

Browse files
committed
wip
1 parent 23f6536 commit 376730d

File tree

2 files changed

+18
-19
lines changed

2 files changed

+18
-19
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,15 @@ jobs:
5959
shell: pwsh
6060
run: |
6161
$env:PATH = "${{ github.workspace }}\depot_tools;" + $env:PATH
62+
Set-Location depot_tools
63+
./update_depot_tools.bat
6264
Set-Location skia
63-
python tools/git-sync-deps
65+
../depot_tools/python-bin/python3.bat tools/git-sync-deps
6466
6567
- name: Build ${{ matrix.arch }}
6668
shell: pwsh
6769
run: |
68-
python scripts/build.py windows ${{ matrix.arch }}
70+
../depot_tools/python-bin/python3.bat scripts/build.py windows ${{ matrix.arch }}
6971
7072
- name: Upload artifact
7173
uses: actions/upload-artifact@v4

scripts/build.py

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,20 @@ def gen_linux(arch, self_contained, args):
145145

146146
args.update({
147147
"skia_use_vulkan": True,
148-
"skia_use_x11": False
148+
"skia_use_x11": False,
149+
"skia_use_system_freetype2": not self_contained,
150+
"cc": "clang",
151+
"cxx": "clang++",
152+
"target_os": "linux",
153+
"target_cpu": arch,
154+
"skia_use_icu": False,
155+
"skia_use_piex": True,
156+
"skia_use_system_expat": False, # consider system (ABI seems to be stable)
157+
"skia_use_system_libjpeg_turbo": False,
158+
"skia_use_system_libpng": False,
159+
"skia_use_system_libwebp": False,
160+
"skia_use_system_zlib": False, # consider system (ABI seems to be stable)
149161
})
150-
151-
152-
args["cc"] = "clang"
153-
args["cxx"] = "clang++"
154-
args["target_os"] = "linux"
155-
args["target_cpu"] = arch
156162
args["extra_cflags"].extend([
157163
"--target=" + llvm_target,
158164
"--sysroot=/sysroots/" + llvm_target
@@ -219,16 +225,7 @@ def build_target(target_os, arch, self_contained, debug):
219225
"extra_cflags_cc": [],
220226
"extra_ldflags": [],
221227
"skia_enable_skottie": True,
222-
"skia_use_harfbuzz": False,
223-
"skia_use_icu": False,
224-
"skia_use_piex": True,
225-
"skia_use_system_expat": False,
226-
"skia_use_system_freetype2": False,
227-
"skia_use_system_libjpeg_turbo": False,
228-
"skia_use_system_libpng": False,
229-
"skia_use_system_libwebp": False,
230-
"skia_use_system_zlib": False,
231-
228+
"skia_use_harfbuzz": False,
232229
}
233230

234231
if canonical_os == "linux":

0 commit comments

Comments
 (0)