Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Side by Side Diff: tools/fiddle/fiddle_test

Issue 2138153002: tools/fiddle: remove unused fiddler.go (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | tools/fiddle/fiddler.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 # Copyright 2015 Google Inc. 2 # Copyright 2015 Google Inc.
3 # 3 #
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # Script for building Fiddle build bots. 7 # Script for building Fiddle build bots.
8 8
9 set -e 9 set -e
10 set -x 10 set -x
11 11
12 cd "$(dirname "$0")" 12 cd "$(dirname "$0")"
13 fiddle_dir="$PWD" 13 fiddle_dir="$PWD"
14 cd "../.." 14 cd "../.."
15 skia_dir="$PWD" 15 skia_dir="$PWD"
16 16
17 if ! command -v cmake > /dev/null 2>&1 ; then 17 if ! command -v cmake > /dev/null 2>&1 ; then
18 cores=32 18 cores=32
19 echo "Bootstrapping CMake" 19 echo "Bootstrapping CMake"
20 cmake_dir="${skia_dir}/third_party/externals/cmake" 20 cmake_dir="${skia_dir}/third_party/externals/cmake"
21 cd "$cmake_dir" 21 (
22 ./bootstrap --parallel=$cores 22 cd "$cmake_dir"
23 make -j $cores cmake 23 ./bootstrap --parallel=$cores
24 make -j $cores cmake
25 )
24 export PATH="${cmake_dir}/bin:${PATH}" 26 export PATH="${cmake_dir}/bin:${PATH}"
25 fi 27 fi
26 28
27 echo "Building Skia and Fiddle" 29 echo "Building Skia and Fiddle"
30 (
31 cd "${skia_dir}/cmake"
32 cmake -G Ninja .
33 ninja skia
34 )
35
36 tmp=$(mktemp -d "${TMPDIR:-/tmp}/fiddle_test.XXXXXXXXXX")
37
28 cd "$fiddle_dir" 38 cd "$fiddle_dir"
29 git clean -fxd .
30 go build fiddler.go
31 ./fiddler "$skia_dir"
32 ./fiddler "$skia_dir" draw.cpp > /dev/null
33 39
34 echo "cleaning up" 40 ${CXX:-c++} \
35 git clean -fxd . 41 "@../../cmake/skia_compile_arguments.txt" \
42 -o "${tmp}/fiddle" \
43 "fiddle_main.cpp" \
44 "draw.cpp" \
45 -lOSMesa \
46 "@../../cmake/skia_link_arguments.txt"
47
48 "${tmp}/fiddle" | sha1sum
OLDNEW
« no previous file with comments | « no previous file | tools/fiddle/fiddler.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698