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

Side by Side Diff: experimental/webtry/build

Issue 639833003: preliminary support for fiddle font use (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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 | experimental/webtry/templates/template.gyp » ('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 2
3 # This script builds the webtry server; before compilation we need to create the code template 3 # This script builds the webtry server; before compilation we need to create the code template
4 # so that it contains all publicly available header files in skia/include. 4 # so that it contains all publicly available header files in skia/include.
5 # 5 #
6 # By default, the script expects to be run out of the skia/experimental/webtry d irectory; 6 # By default, the script expects to be run out of the skia/experimental/webtry d irectory;
7 # if we move directories around this can be overridden by setting the SKIA_ROOT and WEBTRY_ROOT 7 # if we move directories around this can be overridden by setting the SKIA_ROOT and WEBTRY_ROOT
8 # environment variables to point to the skia source tree and the webtry source t ree, 8 # environment variables to point to the skia source tree and the webtry source t ree,
9 # respectively. 9 # respectively.
10 10
11 [ -z "$SKIA_ROOT" ] && SKIA_ROOT="../.." 11 [ -z "$SKIA_ROOT" ] && SKIA_ROOT="../.."
12 [ -z "$WEBTRY_ROOT" ] && WEBTRY_ROOT=`pwd` 12 [ -z "$WEBTRY_ROOT" ] && WEBTRY_ROOT=`pwd`
13 13
14 [ -z "$GOROOT" ] && export GOROOT=/home/webtry/go 14 [ -z "$GOROOT" ] && export GOROOT=/home/webtry/go
15 [ -z "$GOPATH" ] && export GOPATH=/home/webtry/golib 15 [ -z "$GOPATH" ] && export GOPATH=/home/webtry/golib
16 16
17 PATH=$PATH:$GOROOT/bin 17 PATH=$PATH:$GOROOT/bin
18 18
19 cd ${SKIA_ROOT}/include 19 cd ${SKIA_ROOT}/include
20 echo "Creating compile template..." 20 echo "Creating compile template..."
21 find core effects pathops -maxdepth 1 -name "*.h" | sed "s#^[^\/]*\/##g" | sed "s/\(.*\)/#include \"\1\"/" | sort > ${WEBTRY_ROOT}/templates/template.cpp 21 find core effects pathops -maxdepth 1 -name "*.h" | sed "s/.*\///" | sed "s/\(. *\)/#include \"\1\"/" | sort > ${WEBTRY_ROOT}/templates/template.cpp
22 echo '#include "sk_tool_utils.h"' >> ${WEBTRY_ROOT}/templates/template.cpp
23 echo '' >> ${WEBTRY_ROOT}/templates/template.cpp
22 echo "SkBitmap source;" >> ${WEBTRY_ROOT}/templates/template.cpp 24 echo "SkBitmap source;" >> ${WEBTRY_ROOT}/templates/template.cpp
23 echo "{{.Code}}" >> ${WEBTRY_ROOT}/templates/template.cpp 25 echo "{{.Code}}" >> ${WEBTRY_ROOT}/templates/template.cpp
24 cd ${WEBTRY_ROOT} 26 cd ${WEBTRY_ROOT}
25 echo "Building webtry..." 27 echo "Building webtry..."
26 go build webtry.go 28 go build webtry.go
27 echo "Done!" 29 echo "Done!"
OLDNEW
« no previous file with comments | « no previous file | experimental/webtry/templates/template.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698