blob: d9b24b28d7f17642ddadbbccad642fcb279eedfe [file] [log] [blame]
scroggo3e562272015-03-25 10:22:41 -07001# Copyright 2015 Google Inc.
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
scroggo24519372014-07-22 12:38:55 -07005# Building test for running CanvasState
6
7# HOW TO USE:
8# This target is not included in normal Skia builds. In order to build it,
9# you need to run gyp_skia on this file. This target also requires the
10# variable skia_pic to be used during building:
11#
12# GYP_DEFINES=skia_pic=1 ./gyp_skia gyp/canvas_state_lib.gyp
13# ninja -C out/Debug canvas_state_lib
14#
15# This will create the shared library libcanvas_state_lib.so. That can
16# be passed to tests to test passing an SkCanvas between versions of
17# Skia. See tests/CanvasStateTest.cpp for more info.
18{
19 'targets' : [
20 {
21 'target_name' : 'canvas_state_lib',
22 'type' : 'shared_library',
23 # FIXME: Is there a way to ensure that -fPIC was used for skia_lib?
24 'dependencies' : [ 'skia_lib.gyp:skia_lib'],
25 'sources' : [
26 '../tests/CanvasStateHelpers.cpp',
27 ],
28 'cflags' : [
29 '-fPIC',
30 ],
31 },
32 {
33 # Dummy 'most' target, since gyp_skia sets 'most' to be the default.
34 'target_name' : 'most',
35 'type' : 'none',
36 'dependencies' : [
37 'canvas_state_lib',
38 ],
39 }
40 ],
41}