blob: d4cd00eaca42b676299760484bb0e311a4aa8dfa [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': [
robertphillips@google.come63296e2013-06-18 14:43:53 +000027 'gpu.gyp:skgpu',
djsollen@google.com52f02972013-06-03 12:10:19 +000028 ],
29 }],
30 [ 'skia_os == "nacl"', {
31 'component_libs': [
32 'freetype.gyp:freetype',
33 ],
34 }],
35 ],
36 },
37 'targets': [
38 {
39 'target_name': 'skia_lib',
40 'conditions': [
41 [ 'skia_shared_lib', {
42 'conditions': [
43 [ 'skia_os == "android"', {
44 # The name skia will confuse the linker on android into using the system's libskia.so
45 # instead of the one packaged with the apk. We simply choose a different name to fix
46 # this.
47 'product_name': 'skia_android',
48 }, {
49 'product_name': 'skia',
50 }],
51 ],
52 'type': 'shared_library',
53 }, {
54 'type': 'none',
55 }],
56 ],
57 'dependencies': [
58 '<@(component_libs)',
59 ],
60 'export_dependent_settings': [
61 '<@(component_libs)',
62 ],
63 },
64 ],
65}
66
67# Local Variables:
68# tab-width:2
69# indent-tabs-mode:nil
70# End:
71# vim: set expandtab tabstop=2 shiftwidth=2: