blob: 8cb5fa1788cbd8b4120fd7c272b2baa643438e44 [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.
djsollen@google.com52f02972013-06-03 12:10:19 +00005# The minimal set of static libraries for basic Skia functionality.
6
7{
8 'variables': {
9 'component_libs': [
10 'core.gyp:core',
scroggof24f2242015-03-03 08:59:20 -080011 'codec.gyp:codec',
djsollen@google.com52f02972013-06-03 12:10:19 +000012 'effects.gyp:effects',
13 'images.gyp:images',
14 'opts.gyp:opts',
15 'ports.gyp:ports',
16 'sfnt.gyp:sfnt',
17 'utils.gyp:utils',
18 ],
19 'conditions': [
scroggodf1c3372015-02-12 10:48:25 -080020 [ '"x86" in skia_arch_type and skia_os != "android"', {
djsollen@google.com52f02972013-06-03 12:10:19 +000021 'component_libs': [
22 'opts.gyp:opts_ssse3',
mtkleinf7069d52015-01-26 18:55:58 -080023 'opts.gyp:opts_sse41',
djsollen@google.com52f02972013-06-03 12:10:19 +000024 ],
25 }],
26 [ 'arm_neon == 1', {
27 'component_libs': [
28 'opts.gyp:opts_neon',
29 ],
30 }],
31 [ 'skia_gpu', {
32 'component_libs': [
robertphillips@google.come63296e2013-06-18 14:43:53 +000033 'gpu.gyp:skgpu',
djsollen@google.com52f02972013-06-03 12:10:19 +000034 ],
35 }],
djsollen@google.com52f02972013-06-03 12:10:19 +000036 ],
37 },
38 'targets': [
39 {
40 'target_name': 'skia_lib',
mtkleinad82ed62014-08-04 12:51:19 -070041 'sources': [ '<(skia_src_path)/core/SkForceCPlusPlusLinking.cpp', ],
djsollen@google.com52f02972013-06-03 12:10:19 +000042 'conditions': [
43 [ 'skia_shared_lib', {
44 'conditions': [
45 [ 'skia_os == "android"', {
46 # The name skia will confuse the linker on android into using the system's libskia.so
47 # instead of the one packaged with the apk. We simply choose a different name to fix
48 # this.
49 'product_name': 'skia_android',
50 }, {
51 'product_name': 'skia',
52 }],
53 ],
54 'type': 'shared_library',
55 }, {
56 'type': 'none',
57 }],
58 ],
59 'dependencies': [
60 '<@(component_libs)',
61 ],
62 'export_dependent_settings': [
63 '<@(component_libs)',
64 ],
65 },
66 ],
67}