1#!/bin/sh 2# Copyright 2018 Google, LLC 3# 4# Use of this source code is governed by a BSD-style license that can be 5# found in the LICENSE file. 6 7 8set +e 9 10mkdir -p /skia/out/with-swift-shader 11 12echo ' 13cc = "clang" 14cxx = "clang++" 15skia_use_egl = true 16is_debug = false 17skia_use_system_freetype2 = false 18extra_cflags = [ 19 "-I/tmp/swiftshader/include", 20 "-DGR_EGL_TRY_GLES3_THEN_GLES2", 21 "-g0", 22] 23extra_ldflags = [ 24 "-L/usr/local/lib", 25 "-Wl,-rpath", 26 "-Wl,/usr/local/lib" 27] ' > /skia/out/with-swift-shader/args.gn 28 29# /skia is where the host Skia checkout is linked to in the container 30cd /skia 31if [ "sync-deps" = "$1" ]; then 32 python tools/git-sync-deps 33fi 34./bin/fetch-gn 35./bin/gn gen out/with-swift-shader 36/tmp/depot_tools/ninja -C out/with-swift-shader 37