-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathmake_dependency.sh
executable file
·69 lines (62 loc) · 1.51 KB
/
make_dependency.sh
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/sh
# Requires depot_tools and git:
# https://skia.org/user/download
# Build notes:
# https://skia.org/user/build
ARCH="arm64"
BUILD_DIR="build_device"
while getopts ":s" opt; do
case $opt in
s)
echo "Build for Simulator." >&2
ARCH="x64" # Build for simulator.
BUILD_DIR="build_simulator"
;;
\?)
echo "invalid option: -$OPTARG" >&2
exit 1
;;
esac
done
cd FlareSkia/Skia/src
python tools/git-sync-deps
./bin/gn gen $BUILD_DIR \
--args="extra_cflags_cc=[\"-frtti\", \"-fembed-bitcode\"] \
is_official_build=true \
target_os=\"ios\" \
skia_use_bitcode=true \
skia_use_angle=false \
skia_use_dng_sdk=false \
skia_use_egl=false \
skia_use_expat=false \
skia_use_fontconfig=false \
skia_use_freetype=true \
skia_use_system_freetype2=false \
skia_use_icu=false \
skia_use_libheif=false \
skia_use_libjpeg_turbo=false \
skia_use_libpng=true \
skia_use_system_libpng=false \
skia_use_libwebp=false \
skia_use_lua=false \
skia_use_piex=false \
skia_use_vulkan=false \
skia_use_metal=true \
skia_use_zlib=true \
skia_use_system_zlib=false \
skia_enable_ccpr=false \
skia_enable_skottie=false \
skia_enable_skshaper=false \
skia_enable_gpu=true \
skia_enable_fontmgr_empty=false \
skia_enable_spirv_validation=false \
skia_enable_pdf=false
\
is_debug=false \
skia_enable_flutter_defines=true \
skia_gl_standard=\"gles\"
skia_use_sfntly=false \
skia_use_wuffs=true \
skia_use_x11=false \
target_cpu=\"$ARCH\""
ninja -C $BUILD_DIR