LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_SRC_FILES := \
  gm.cpp \
  gmmain.cpp \
  system_preferences_default.cpp \
  ../src/pipe/utils/SamplePipeControllers.cpp \
  ../src/utils/debugger/SkDrawCommand.cpp \
  ../src/utils/debugger/SkDebugCanvas.cpp \
  ../src/utils/debugger/SkObjectParser.cpp


# Slides
LOCAL_SRC_FILES += \
  aaclip.cpp \
  aarectmodes.cpp \
  alphagradients.cpp \
  androidfallback.cpp \
  arcofzorro.cpp \
  arithmode.cpp \
  beziereffects.cpp \
  bicubicfilter.cpp \
  bigblurs.cpp \
  bigmatrix.cpp \
  bigtext.cpp \
  bitmapalphathreshold.cpp \
  bitmapcopy.cpp \
  bitmapmatrix.cpp \
  bitmapfilters.cpp \
  bitmappremul.cpp \
  bitmaprect.cpp \
  bitmaprecttest.cpp \
  bitmapscroll.cpp \
  bitmapshader.cpp \
  bitmapsource.cpp \
  bleed.cpp \
  blurs.cpp \
  blurquickreject.cpp \
  blurrect.cpp \
  blurroundrect.cpp \
  canvasstate.cpp \
  circles.cpp \
  circularclips.cpp \
  clippedbitmapshaders.cpp \
  coloremoji.cpp \
  colorfilterimagefilter.cpp \
  colormatrix.cpp \
  colortype.cpp \
  complexclip.cpp \
  complexclip2.cpp \
  composeshader.cpp \
  convexpaths.cpp \
  copyTo4444.cpp \
  cubicpaths.cpp \
  cmykjpeg.cpp \
  degeneratesegments.cpp \
  dashcubics.cpp \
  dashing.cpp \
  deviceproperties.cpp \
  distantclip.cpp \
  displacement.cpp \
  downsamplebitmap.cpp \
  drawbitmaprect.cpp \
  drawlooper.cpp \
  dropshadowimagefilter.cpp \
  extractbitmap.cpp \
  emptypath.cpp \
  fatpathfill.cpp \
  factory.cpp \
  filltypes.cpp \
  filltypespersp.cpp \
  filterbitmap.cpp \
  fontcache.cpp \
  fontmgr.cpp \
  fontscaler.cpp \
  gammatext.cpp \
  getpostextpath.cpp \
  giantbitmap.cpp \
  gradients.cpp \
  gradients_no_texture.cpp \
  gradientDirtyLaundry.cpp \
  gradient_matrix.cpp \
  gradtext.cpp \
  hairmodes.cpp \
  hittestpath.cpp \
  imageblur.cpp \
  imagemagnifier.cpp \
  inversepaths.cpp \
  lighting.cpp \
  lumafilter.cpp \
  image.cpp \
  imagefiltersbase.cpp \
  imagefilterscropped.cpp \
  imagefiltersgraph.cpp \
  internal_links.cpp \
  lcdtext.cpp \
  linepaths.cpp \
  matrixconvolution.cpp \
  megalooper.cpp \
  mixedxfermodes.cpp \
  modecolorfilters.cpp \
  morphology.cpp \
  nested.cpp \
  ninepatchstretch.cpp \
  offsetimagefilter.cpp \
  nonclosedpaths.cpp \
  offsetimagefilter.cpp \
  optimizations.cpp \
  ovals.cpp \
  patheffects.cpp \
  pathfill.cpp \
  pathinterior.cpp \
  pathopsinverse.cpp \
  pathopsskpclip.cpp \
  pathreverse.cpp \
  perlinnoise.cpp \
  pictureimagefilter.cpp \
  points.cpp \
  poly2poly.cpp \
  polygons.cpp \
  quadpaths.cpp \
  rects.cpp \
  rrect.cpp \
  rrects.cpp \
  roundrects.cpp \
  samplerstress.cpp \
  shaderbounds.cpp \
  selftest.cpp \
  shadertext.cpp \
  shadertext2.cpp \
  shadertext3.cpp \
  shadows.cpp \
  shallowgradient.cpp \
  simpleaaclip.cpp \
  skbug1719.cpp \
  stringart.cpp \
  spritebitmap.cpp \
  srcmode.cpp \
  strokefill.cpp \
  strokerect.cpp \
  strokes.cpp \
  tablecolorfilter.cpp \
  texteffects.cpp \
  testimagefilters.cpp \
  texdata.cpp \
  thinrects.cpp \
  thinstrokedrects.cpp \
  tileimagefilter.cpp \
  tilemodes.cpp \
  tilemodes_scaled.cpp \
  tinybitmap.cpp \
  twopointradial.cpp \
  typeface.cpp \
  verttext.cpp \
  verttext2.cpp \
  verylargebitmap.cpp \
  xfermodeimagefilter.cpp \
  xfermodes.cpp \
  xfermodes2.cpp \
  xfermodes3.cpp

LOCAL_SHARED_LIBRARIES := \
  libcutils \
  libutils \
  libskia \
  libEGL \
  libGLESv2
  
LOCAL_C_INCLUDES := \
  external/skia/include/config \
  external/skia/include/core \
  external/skia/include/effects \
  external/skia/include/gpu \
  external/skia/include/images \
  external/skia/include/pipe \
  external/skia/include/utils \
  external/skia/gm \
  external/skia/src/core \
  external/skia/src/effects \
  external/skia/src/gpu \
  external/skia/src/pipe/utils \
  external/skia/src/utils

LOCAL_MODULE := skia_gm

LOCAL_MODULE_TAGS := optional

include $(BUILD_EXECUTABLE)