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