FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
skia-python/scripts/build_macOS.sh at main · skia-python/skia-python · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
skia-python
/
skia-python
Public
Notifications
You must be signed in to change notification settings
Fork
52
Star
322
Code
Issues
44
Pull requests
6
Discussions
Actions
Projects
Security and quality
1
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
skia-python
/
scripts
/
build_macOS.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
47 lines (41 loc) · 1.23 KB
Breadcrumbs
skia-python
/
scripts
/
build_macOS.sh
Copy path
File metadata and controls
47 lines (41 loc) · 1.23 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#!
/usr/bin/env bash
export
PATH=
${PWD}
/depot_tools:
$PATH
#
Build skia
export
CC=clang
export
CXX=clang++
TARGET_ARCH=
${TARGET_ARCH
:-
$(uname -m)}
if
[[
${TARGET_ARCH}
==
"
arm64
"
]]
;
then
EXTRA_ARGS=
'
target_cpu="arm64"
extra_asmflags=["--target=arm64-apple-macos11",]
extra_cflags=["--target=arm64-apple-macos11",]
extra_ldflags=["--target=arm64-apple-macos11",]
'
fi
function
apply_patch
{
patch -p1
<
../patch/find_xcode_sysroot.patch
;
}
cd
skia
&&
\
patch -R -p1
<
../patch/0001-Make-SkPath-immutable-on-GN-build.patch
&&
\
patch -R -p1
<
../patch/0001-Disable-legacy-PNG-encoding-decoding-in-SkPicture.patch
&&
\
patch -p1
<
../patch/skia-m144-minimize-download.patch
&&
\
patch -p1
<
../patch/skia-m132-colrv1-freetype.diff
&&
\
python3 tools/git-sync-deps
&&
\
bin/gn gen out/Release --args=
"
is_official_build=true
skia_enable_svg=true
skia_use_freetype=true
skia_use_system_freetype2=false
skia_enable_fontmgr_custom_empty=true
skia_use_system_libjpeg_turbo=false
skia_use_system_libwebp=false
skia_use_system_libpng=false
skia_use_system_icu=false
skia_use_metal=true
skia_use_system_harfbuzz=false
skia_use_system_expat=false
extra_cflags_cc=[
\"
-frtti
\"
]
${EXTRA_ARGS}
"
&&
\
ninja -C out/Release
&&
\
cd
..
Back
|
FazBrowse Home
|
New Git URL