diff options
author | humper <humper@google.com> | 2014-09-09 15:57:26 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-09 15:57:26 -0700 |
commit | d85ad50b0ed45416f88cce4aa704ae27ca9d6ba8 (patch) | |
tree | eb0efa825756043102f750c2e1fd7d4a7516bfb4 | |
parent | be20c5a118f0eb977feb67f90901385a03e3f2ed (diff) |
simple build script for webtry that re-generates the code template
before compilation
BUG=skia:
R=jcgregorio@google.com
Author: humper@google.com
Review URL: https://codereview.chromium.org/552343003
-rw-r--r-- | experimental/webtry/build | 22 | ||||
-rw-r--r-- | experimental/webtry/templates/template.cpp | 159 |
2 files changed, 22 insertions, 159 deletions
diff --git a/experimental/webtry/build b/experimental/webtry/build new file mode 100644 index 0000000000..44791a21ef --- /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!" diff --git a/experimental/webtry/templates/template.cpp b/experimental/webtry/templates/template.cpp deleted file mode 100644 index be43706110..0000000000 --- a/experimental/webtry/templates/template.cpp +++ /dev/null @@ -1,159 +0,0 @@ -// To regenerate this list of includes run the following command from skia/include: -// -// find core effects pathops -maxdepth 1 -name "*.h" | sed "s#^[^\/]*\/##g" | sed "s/\(.*\)/#include \"\1\"/" | sort -// -#include "Sk1DPathEffect.h" -#include "Sk2DPathEffect.h" -#include "SkAdvancedTypefaceMetrics.h" -#include "SkAlphaThresholdFilter.h" -#include "SkAnnotation.h" -#include "SkArithmeticMode.h" -#include "SkAvoidXfermode.h" -#include "SkBBHFactory.h" -#include "SkBitmapDevice.h" -#include "SkBitmap.h" -#include "SkBitmapSource.h" -#include "SkBlitRow.h" -#include "SkBlurDrawLooper.h" -#include "SkBlurImageFilter.h" -#include "SkBlurMaskFilter.h" -#include "SkBlurTypes.h" -#include "SkCanvas.h" -#include "SkChecksum.h" -#include "SkChunkAlloc.h" -#include "SkClipStack.h" -#include "SkColorFilter.h" -#include "SkColorFilterImageFilter.h" -#include "SkColor.h" -#include "SkColorMatrixFilter.h" -#include "SkColorMatrix.h" -#include "SkColorPriv.h" -#include "SkColorShader.h" -#include "SkColorTable.h" -#include "SkComposeImageFilter.h" -#include "SkComposeShader.h" -#include "SkCornerPathEffect.h" -#include "SkDashPathEffect.h" -#include "SkData.h" -#include "SkDataTable.h" -#include "SkDeque.h" -#include "SkDevice.h" -#include "SkDeviceProperties.h" -#include "SkDiscretePathEffect.h" -#include "SkDisplacementMapEffect.h" -#include "SkDither.h" -#include "SkDocument.h" -#include "SkDrawExtraPathEffect.h" -#include "SkDrawFilter.h" -#include "SkDraw.h" -#include "SkDrawLooper.h" -#include "SkDropShadowImageFilter.h" -#include "SkDynamicAnnotations.h" -#include "SkEmbossMaskFilter.h" -#include "SkEmptyShader.h" -#include "SkEndian.h" -#include "SkError.h" -#include "SkFixed.h" -#include "SkFlate.h" -#include "SkFlattenable.h" -#include "SkFlattenableSerialization.h" -#include "SkFloatBits.h" -#include "SkFloatingPoint.h" -#include "SkFont.h" -#include "SkFontHost.h" -#include "SkFontLCDConfig.h" -#include "SkGeometry.h" -#include "SkGradientShader.h" -#include "SkGraphics.h" -#include "SkImageDecoder.h" -#include "SkImageEncoder.h" -#include "SkImageFilter.h" -#include "SkImageGenerator.h" -#include "SkImage.h" -#include "SkImageInfo.h" -#include "SkInstCnt.h" -#include "SkLayerDrawLooper.h" -#include "SkLayerRasterizer.h" -#include "SkLerpXfermode.h" -#include "SkLightingImageFilter.h" -#include "SkLineClipper.h" -#include "SkLumaColorFilter.h" -#include "SkMagnifierImageFilter.h" -#include "SkMallocPixelRef.h" -#include "SkMaskFilter.h" -#include "SkMask.h" -#include "SkMath.h" -#include "SkMatrixConvolutionImageFilter.h" -#include "SkMatrix.h" -#include "SkMatrixImageFilter.h" -#include "SkMergeImageFilter.h" -#include "SkMetaData.h" -#include "SkMorphologyImageFilter.h" -#include "SkOffsetImageFilter.h" -#include "SkOnce.h" -#include "SkOSFile.h" -#include "SkPackBits.h" -#include "SkPaintFlagsDrawFilter.h" -#include "SkPaint.h" -#include "SkPaintOptionsAndroid.h" -#include "SkPathEffect.h" -#include "SkPath.h" -#include "SkPathMeasure.h" -#include "SkPathOps.h" -#include "SkPathRef.h" -#include "SkPerlinNoiseShader.h" -#include "SkPicture.h" -#include "SkPictureImageFilter.h" -#include "SkPictureRecorder.h" -#include "SkPixelRef.h" -#include "SkPixelXorXfermode.h" -#include "SkPoint.h" -#include "SkPorterDuff.h" -#include "SkPostConfig.h" -#include "SkPreConfig.h" -#include "SkRasterizer.h" -#include "SkReadBuffer.h" -#include "SkReader32.h" -#include "SkRect.h" -#include "SkRectShaderImageFilter.h" -#include "SkRefCnt.h" -#include "SkRegion.h" -#include "SkRRect.h" -#include "SkScalar.h" -#include "SkShader.h" -#include "SkSize.h" -#include "SkStream.h" -#include "SkString.h" -#include "SkStringUtils.h" -#include "SkStrokeRec.h" -#include "SkSurface.h" -#include "SkTableColorFilter.h" -#include "SkTableMaskFilter.h" -#include "SkTArray.h" -#include "SkTDArray.h" -#include "SkTDict.h" -#include "SkTDStack.h" -#include "SkTemplates.h" -#include "SkTestImageFilters.h" -#include "SkThread.h" -#include "SkTileImageFilter.h" -#include "SkTime.h" -#include "SkTInternalLList.h" -#include "SkTLazy.h" -#include "SkTransparentShader.h" -#include "SkTRegistry.h" -#include "SkTSearch.h" -#include "SkTypeface.h" -#include "SkTypes.h" -#include "SkUnPreMultiply.h" -#include "SkUtils.h" -#include "SkVertState.h" -#include "SkWeakRefCnt.h" -#include "SkWriteBuffer.h" -#include "SkWriter32.h" -#include "SkXfermode.h" -#include "SkXfermodeImageFilter.h" - -SkBitmap source; - -{{.Code}} |