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

Unified Diff: experimental/webtry/build

Issue 552343003: simple build script for webtry that re-generates the code template (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: comment for the build script Created 6 years, 3 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 | « no previous file | experimental/webtry/templates/template.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/webtry/build
diff --git a/experimental/webtry/build b/experimental/webtry/build
new file mode 100644
index 0000000000000000000000000000000000000000..44791a21ef224a399a2b580238211a5252d3e2c9
--- /dev/null
+++ b/experimental/webtry/build
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+# This script builds the webtry server; before compilation we need to create the code template
+# so that it contains all publicly available header files in skia/include.
+#
+# By default, the script expects to be run out of the skia/experimental/webtry directory;
+# if we move directories around this can be overridden by setting the SKIA_ROOT and WEBTRY_ROOT
+# environment variables to point to the skia source tree and the webtry source tree,
+# respectively.
+
+[ -z "$SKIA_ROOT" ] && SKIA_ROOT="../.."
+[ -z "$WEBTRY_ROOT" ] && WEBTRY_ROOT=`pwd`
+
+cd ${SKIA_ROOT}/include
+echo "Creating compile template..."
+find core effects pathops -maxdepth 1 -name "*.h" | sed "s#^[^\/]*\/##g" | sed "s/\(.*\)/#include \"\1\"/" | sort > ${WEBTRY_ROOT}/templates/template.cpp
+echo "SkBitmap source;" >> ${WEBTRY_ROOT}/templates/template.cpp
+echo "{{.Code}}" >> ${WEBTRY_ROOT}/templates/template.cpp
+cd ${WEBTRY_ROOT}
+echo "Building webtry..."
+go build webtry.go
+echo "Done!"
« no previous file with comments | « no previous file | experimental/webtry/templates/template.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698