scroggo | 3e56227 | 2015-03-25 10:22:41 -0700 | [diff] [blame] | 1 | # 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.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 5 | # The minimal set of static libraries for basic Skia functionality. |
| 6 | |
| 7 | { |
| 8 | 'variables': { |
| 9 | 'component_libs': [ |
| 10 | 'core.gyp:core', |
scroggo | f24f224 | 2015-03-03 08:59:20 -0800 | [diff] [blame] | 11 | 'codec.gyp:codec', |
msarett | 506e19a | 2015-11-13 06:11:09 -0800 | [diff] [blame] | 12 | 'codec_android.gyp:codec_android', |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 13 | 'effects.gyp:effects', |
| 14 | 'images.gyp:images', |
| 15 | 'opts.gyp:opts', |
| 16 | 'ports.gyp:ports', |
| 17 | 'sfnt.gyp:sfnt', |
| 18 | 'utils.gyp:utils', |
| 19 | ], |
| 20 | 'conditions': [ |
scroggo | df1c337 | 2015-02-12 10:48:25 -0800 | [diff] [blame] | 21 | [ '"x86" in skia_arch_type and skia_os != "android"', { |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 22 | 'component_libs': [ |
| 23 | 'opts.gyp:opts_ssse3', |
mtklein | f7069d5 | 2015-01-26 18:55:58 -0800 | [diff] [blame] | 24 | 'opts.gyp:opts_sse41', |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 25 | ], |
| 26 | }], |
| 27 | [ 'arm_neon == 1', { |
| 28 | 'component_libs': [ |
| 29 | 'opts.gyp:opts_neon', |
| 30 | ], |
| 31 | }], |
| 32 | [ 'skia_gpu', { |
| 33 | 'component_libs': [ |
robertphillips@google.com | e63296e | 2013-06-18 14:43:53 +0000 | [diff] [blame] | 34 | 'gpu.gyp:skgpu', |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 35 | ], |
| 36 | }], |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 37 | ], |
| 38 | }, |
| 39 | 'targets': [ |
| 40 | { |
| 41 | 'target_name': 'skia_lib', |
mtklein | ad82ed6 | 2014-08-04 12:51:19 -0700 | [diff] [blame] | 42 | 'sources': [ '<(skia_src_path)/core/SkForceCPlusPlusLinking.cpp', ], |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 43 | 'conditions': [ |
| 44 | [ 'skia_shared_lib', { |
| 45 | 'conditions': [ |
| 46 | [ 'skia_os == "android"', { |
| 47 | # The name skia will confuse the linker on android into using the system's libskia.so |
| 48 | # instead of the one packaged with the apk. We simply choose a different name to fix |
| 49 | # this. |
| 50 | 'product_name': 'skia_android', |
| 51 | }, { |
| 52 | 'product_name': 'skia', |
| 53 | }], |
| 54 | ], |
| 55 | 'type': 'shared_library', |
| 56 | }, { |
| 57 | 'type': 'none', |
| 58 | }], |
| 59 | ], |
| 60 | 'dependencies': [ |
| 61 | '<@(component_libs)', |
| 62 | ], |
| 63 | 'export_dependent_settings': [ |
| 64 | '<@(component_libs)', |
| 65 | ], |
| 66 | }, |
| 67 | ], |
| 68 | } |