blob: 80d4f8f5bf3c9d7603734e62740f4a38d094e49d [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',
scroggof24f2242015-03-03 08:59:20 -08007 'codec.gyp:codec',
djsollen@google.com52f02972013-06-03 12:10:19 +00008 'effects.gyp:effects',
9 'images.gyp:images',
10 'opts.gyp:opts',
11 'ports.gyp:ports',
12 'sfnt.gyp:sfnt',
13 'utils.gyp:utils',
14 ],
15 'conditions': [
scroggodf1c3372015-02-12 10:48:25 -080016 [ '"x86" in skia_arch_type and skia_os != "android"', {
djsollen@google.com52f02972013-06-03 12:10:19 +000017 'component_libs': [
18 'opts.gyp:opts_ssse3',
mtkleinf7069d52015-01-26 18:55:58 -080019 'opts.gyp:opts_sse41',
djsollen@google.com52f02972013-06-03 12:10:19 +000020 ],
21 }],
22 [ 'arm_neon == 1', {
23 'component_libs': [
24 'opts.gyp:opts_neon',
25 ],
26 }],
27 [ 'skia_gpu', {
28 'component_libs': [
robertphillips@google.come63296e2013-06-18 14:43:53 +000029 'gpu.gyp:skgpu',
djsollen@google.com52f02972013-06-03 12:10:19 +000030 ],
31 }],
djsollen@google.com52f02972013-06-03 12:10:19 +000032 ],
33 },
34 'targets': [
35 {
36 'target_name': 'skia_lib',
mtkleinad82ed62014-08-04 12:51:19 -070037 'sources': [ '<(skia_src_path)/core/SkForceCPlusPlusLinking.cpp', ],
djsollen@google.com52f02972013-06-03 12:10:19 +000038 'conditions': [
39 [ 'skia_shared_lib', {
40 'conditions': [
41 [ 'skia_os == "android"', {
42 # The name skia will confuse the linker on android into using the system's libskia.so
43 # instead of the one packaged with the apk. We simply choose a different name to fix
44 # this.
45 'product_name': 'skia_android',
46 }, {
47 'product_name': 'skia',
48 }],
49 ],
50 'type': 'shared_library',
51 }, {
52 'type': 'none',
53 }],
54 ],
55 'dependencies': [
56 '<@(component_libs)',
57 ],
58 'export_dependent_settings': [
59 '<@(component_libs)',
60 ],
61 },
62 ],
63}