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. |
epoger@google.com | 51c078b | 2011-05-31 19:02:37 +0000 | [diff] [blame] | 5 | # Core Skia library code. |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 6 | { |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 7 | 'targets': [ |
| 8 | { |
epoger@google.com | 51c078b | 2011-05-31 19:02:37 +0000 | [diff] [blame] | 9 | 'target_name': 'core', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 10 | 'product_name': 'skia_core', |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 11 | 'type': 'static_library', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 12 | 'standalone_static_library': 1, |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 13 | 'msvs_guid': 'B7760B5E-BFA8-486B-ACFD-49E3A6DE8E76', |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 14 | |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 15 | 'include_dirs': [ |
reed | e332396 | 2014-10-24 11:16:19 -0700 | [diff] [blame] | 16 | '../include/c', |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 17 | '../include/config', |
| 18 | '../include/core', |
caryclark@google.com | 45a75fb | 2013-04-25 13:34:40 +0000 | [diff] [blame] | 19 | '../include/pathops', |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 20 | '../include/ports', |
mtklein | cd1f2da | 2015-07-28 08:55:14 -0700 | [diff] [blame] | 21 | '../include/private', |
humper@google.com | 7af56be | 2013-01-14 18:49:19 +0000 | [diff] [blame] | 22 | '../include/utils', |
halcanary | ea4673f | 2014-08-18 08:27:09 -0700 | [diff] [blame] | 23 | '../include/images', |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 24 | '../src/core', |
vandebo | 0f9bad0 | 2014-06-19 11:05:39 -0700 | [diff] [blame] | 25 | '../src/sfnt', |
reed@google.com | 97af1a6 | 2012-08-28 12:19:02 +0000 | [diff] [blame] | 26 | '../src/image', |
mtklein | 887f397 | 2014-06-17 12:08:15 -0700 | [diff] [blame] | 27 | '../src/opts', |
reed | 54dc487 | 2016-09-13 08:09:45 -0700 | [diff] [blame] | 28 | '../src/pipe', |
mtklein | 887f397 | 2014-06-17 12:08:15 -0700 | [diff] [blame] | 29 | '../src/utils', |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 30 | ], |
bsalomon@google.com | 202a51b | 2012-09-04 14:37:12 +0000 | [diff] [blame] | 31 | 'sources': [ |
Mike Klein | cfc4f44 | 2016-10-26 17:19:03 -0400 | [diff] [blame] | 32 | '<!@(python read_gni.py ../gn/core.gni skia_core_sources)', |
bsalomon@google.com | 202a51b | 2012-09-04 14:37:12 +0000 | [diff] [blame] | 33 | ], |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 34 | 'msvs_disabled_warnings': [4244, 4267,4345, 4390, 4554, 4800], |
| 35 | 'conditions': [ |
borenet | 43bf511 | 2016-04-29 14:01:34 -0700 | [diff] [blame] | 36 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 37 | 'link_settings': { |
| 38 | 'libraries': [ |
senorblanco@chromium.org | 7eb492e | 2011-03-25 17:41:34 +0000 | [diff] [blame] | 39 | '-lpthread', |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 40 | ], |
bsalomon@google.com | 9182610 | 2011-03-21 19:51:57 +0000 | [diff] [blame] | 41 | }, |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 42 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 43 | [ 'skia_os == "mac"', { |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 44 | 'include_dirs': [ |
| 45 | '../include/utils/mac', |
| 46 | ], |
| 47 | 'sources': [ |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 48 | '../include/utils/mac/SkCGUtils.h', |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 49 | ], |
epoger@google.com | 0a030cd | 2011-06-02 19:52:14 +0000 | [diff] [blame] | 50 | 'link_settings': { |
| 51 | 'libraries': [ |
yangsu@google.com | ccb74ea | 2011-06-21 13:09:32 +0000 | [diff] [blame] | 52 | '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework', |
epoger@google.com | 0a030cd | 2011-06-02 19:52:14 +0000 | [diff] [blame] | 53 | ], |
| 54 | }, |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 55 | }], |
epoger@google.com | ea5dfa8 | 2011-07-01 21:01:32 +0000 | [diff] [blame] | 56 | [ 'skia_os == "ios"', { |
| 57 | 'include_dirs': [ |
| 58 | '../include/utils/ios', |
| 59 | ], |
| 60 | 'sources': [ |
epoger@google.com | ea5dfa8 | 2011-07-01 21:01:32 +0000 | [diff] [blame] | 61 | '../include/utils/mac/SkCGUtils.h', |
epoger@google.com | ea5dfa8 | 2011-07-01 21:01:32 +0000 | [diff] [blame] | 62 | ], |
| 63 | 'link_settings': { |
| 64 | 'libraries': [ |
bsalomon@google.com | 4663822 | 2012-10-04 12:52:03 +0000 | [diff] [blame] | 65 | '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', |
| 66 | '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework', |
| 67 | '$(SDKROOT)/System/Library/Frameworks/CoreText.framework', |
| 68 | '$(SDKROOT)/System/Library/Frameworks/UIKit.framework', |
| 69 | '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
| 70 | '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework', |
| 71 | '$(SDKROOT)/System/Library/Frameworks/OpenGLES.framework', |
| 72 | '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework', |
| 73 | '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework', |
epoger@google.com | ea5dfa8 | 2011-07-01 21:01:32 +0000 | [diff] [blame] | 74 | ], |
| 75 | }, |
| 76 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 77 | [ 'skia_os == "win"', { |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 78 | 'include_dirs': [ |
| 79 | 'config/win', |
| 80 | ], |
senorblanco@chromium.org | c1587e0 | 2011-05-04 18:59:38 +0000 | [diff] [blame] | 81 | }], |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 82 | [ 'skia_os == "android"', { |
djsollen@google.com | 6a6c80c | 2013-08-05 13:38:28 +0000 | [diff] [blame] | 83 | 'dependencies': [ |
| 84 | 'android_deps.gyp:cpu_features', |
| 85 | ], |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 86 | }], |
bsalomon@google.com | e197cbf | 2013-01-14 16:46:26 +0000 | [diff] [blame] | 87 | ['skia_gpu == 1', { |
| 88 | 'include_dirs': [ |
bsalomon | 4beef91 | 2014-07-28 13:43:02 -0700 | [diff] [blame] | 89 | '../include/gpu', |
| 90 | '../src/gpu', |
bsalomon@google.com | e197cbf | 2013-01-14 16:46:26 +0000 | [diff] [blame] | 91 | ], |
| 92 | }], |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 93 | ], |
| 94 | 'direct_dependent_settings': { |
| 95 | 'include_dirs': [ |
reed | e332396 | 2014-10-24 11:16:19 -0700 | [diff] [blame] | 96 | '../include/c', |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 97 | '../include/config', |
| 98 | '../include/core', |
caryclark@google.com | 45a75fb | 2013-04-25 13:34:40 +0000 | [diff] [blame] | 99 | '../include/pathops', |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 100 | ], |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 101 | 'conditions': [ |
| 102 | [ 'skia_os == "mac"', { |
| 103 | 'include_dirs': [ |
| 104 | '../include/utils/mac', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 105 | ], |
| 106 | }], |
| 107 | [ 'skia_os == "ios"', { |
| 108 | 'include_dirs': [ |
| 109 | '../include/utils/ios', |
| 110 | ], |
| 111 | }], |
| 112 | [ 'skia_os == "win"', { |
| 113 | 'include_dirs': [ |
| 114 | 'config/win', |
| 115 | ], |
| 116 | }], |
| 117 | ], |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 118 | }, |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 119 | }, |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 120 | ], |
| 121 | } |