djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 1 | # 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', |
henrik.smiding | 3bb195e | 2014-06-27 08:03:17 -0700 | [diff] [blame] | 18 | 'opts.gyp:opts_sse4', |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 19 | ], |
| 20 | }], |
| 21 | [ 'arm_neon == 1', { |
| 22 | 'component_libs': [ |
| 23 | 'opts.gyp:opts_neon', |
| 24 | ], |
| 25 | }], |
| 26 | [ 'skia_gpu', { |
| 27 | 'component_libs': [ |
robertphillips@google.com | e63296e | 2013-06-18 14:43:53 +0000 | [diff] [blame] | 28 | 'gpu.gyp:skgpu', |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 29 | ], |
| 30 | }], |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 31 | ], |
| 32 | }, |
| 33 | 'targets': [ |
| 34 | { |
| 35 | 'target_name': 'skia_lib', |
mtklein | ad82ed6 | 2014-08-04 12:51:19 -0700 | [diff] [blame] | 36 | 'sources': [ '<(skia_src_path)/core/SkForceCPlusPlusLinking.cpp', ], |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 37 | 'conditions': [ |
| 38 | [ 'skia_shared_lib', { |
| 39 | 'conditions': [ |
| 40 | [ 'skia_os == "android"', { |
| 41 | # The name skia will confuse the linker on android into using the system's libskia.so |
| 42 | # instead of the one packaged with the apk. We simply choose a different name to fix |
| 43 | # this. |
| 44 | 'product_name': 'skia_android', |
| 45 | }, { |
| 46 | 'product_name': 'skia', |
| 47 | }], |
| 48 | ], |
| 49 | 'type': 'shared_library', |
| 50 | }, { |
| 51 | 'type': 'none', |
| 52 | }], |
| 53 | ], |
| 54 | 'dependencies': [ |
| 55 | '<@(component_libs)', |
| 56 | ], |
| 57 | 'export_dependent_settings': [ |
| 58 | '<@(component_libs)', |
| 59 | ], |
| 60 | }, |
| 61 | ], |
| 62 | } |