blob: f85c5ad1273bc7134c6c1c9428751e65c6214f05 [file] [log] [blame]
djsollen@google.com52f02972013-06-03 12:10:19 +00001# The minimal set of static libraries for basic Skia functionality.
2
3{
4 'variables': {
5 'component_libs': [
6 'core.gyp:core',
7 'effects.gyp:effects',
8 'images.gyp:images',
9 'opts.gyp:opts',
10 'ports.gyp:ports',
11 'sfnt.gyp:sfnt',
12 'utils.gyp:utils',
13 ],
14 'conditions': [
15 [ 'skia_arch_type == "x86" and skia_os != "android"', {
16 'component_libs': [
17 'opts.gyp:opts_ssse3',
18 ],
19 }],
20 [ 'arm_neon == 1', {
21 'component_libs': [
22 'opts.gyp:opts_neon',
23 ],
24 }],
25 [ 'skia_gpu', {
26 'component_libs': [
27 'gpu.gyp:gr',
28 'gpu.gyp:skgr',
29 ],
30 }],
31 [ 'skia_os == "nacl"', {
32 'component_libs': [
33 'freetype.gyp:freetype',
34 ],
35 }],
36 ],
37 },
38 'targets': [
39 {
40 'target_name': 'skia_lib',
41 'conditions': [
42 [ 'skia_shared_lib', {
43 'conditions': [
44 [ 'skia_os == "android"', {
45 # The name skia will confuse the linker on android into using the system's libskia.so
46 # instead of the one packaged with the apk. We simply choose a different name to fix
47 # this.
48 'product_name': 'skia_android',
49 }, {
50 'product_name': 'skia',
51 }],
52 ],
53 'type': 'shared_library',
54 }, {
55 'type': 'none',
56 }],
57 ],
58 'dependencies': [
59 '<@(component_libs)',
60 ],
61 'export_dependent_settings': [
62 '<@(component_libs)',
63 ],
64 },
65 ],
66}
67
68# Local Variables:
69# tab-width:2
70# indent-tabs-mode:nil
71# End:
72# vim: set expandtab tabstop=2 shiftwidth=2: