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

Unified Diff: experimental/fiddle/fiddle_test

Issue 1834993003: experimental/fiddle: update to work again (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « experimental/fiddle/fiddle_main.cpp ('k') | experimental/fiddle/fiddler.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/fiddle/fiddle_test
diff --git a/experimental/fiddle/fiddle_test b/experimental/fiddle/fiddle_test
old mode 100644
new mode 100755
index 7955d6861414af8fe6a3f92768593e274faa351b..c19914248b7d2b4de8d16fa886c8c19014d14b33
--- a/experimental/fiddle/fiddle_test
+++ b/experimental/fiddle/fiddle_test
@@ -11,17 +11,19 @@ set -x
cd "$(dirname "$0")/../.."
skia_dir="$PWD"
-cores=32
-echo "Bootstrapping CMake"
-cmake_dir="${skia_dir}/third_party/externals/cmake"
-cd "$cmake_dir"
-./bootstrap --parallel=$cores
-make -j $cores cmake
+if ! command -v cmake > /dev/null 2>&1 ; then
+ cores=32
+ echo "Bootstrapping CMake"
+ cmake_dir="${skia_dir}/third_party/externals/cmake"
+ cd "$cmake_dir"
+ ./bootstrap --parallel=$cores
+ make -j $cores cmake
+ export PATH="${cmake_dir}/bin:${PATH}"
+fi
-echo "Building fiddle bootstrapped CMake"
+echo "Building Skia and Fiddle"
cd "${skia_dir}/experimental/fiddle"
-export PATH="${cmake_dir}/bin:${PATH}"
go build fiddler.go
./fiddler "$skia_dir"
./fiddler "$skia_dir" draw.cpp > /dev/null
« no previous file with comments | « experimental/fiddle/fiddle_main.cpp ('k') | experimental/fiddle/fiddler.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698