blob: cabd931948fdb5e58cc19526939984de4dc9ab68 (
plain)
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
|
#!/bin/sh
# Copyright 2018 Google, LLC
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set +e
mkdir -p /skia/out/with-swift-shader
echo '
cc = "clang"
cxx = "clang++"
skia_use_egl = true
is_debug = false
skia_use_system_freetype2 = false
extra_cflags = [
"-I/tmp/swiftshader/include",
"-DGR_EGL_TRY_GLES3_THEN_GLES2",
"-g0",
]
extra_ldflags = [
"-L/usr/local/lib",
"-Wl,-rpath",
"-Wl,/usr/local/lib"
] ' > /skia/out/with-swift-shader/args.gn
# /skia is where the host Skia checkout is linked to in the container
cd /skia
if [ "sync-deps" = "$1" ]; then
python tools/git-sync-deps
fi
./bin/fetch-gn
./bin/gn gen out/with-swift-shader
/tmp/depot_tools/ninja -C out/with-swift-shader
|