epoger@google.com | 51c078b | 2011-05-31 19:02:37 +0000 | [diff] [blame] | 1 | # Core Skia library code. |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 2 | { |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 3 | 'targets': [ |
| 4 | { |
epoger@google.com | 51c078b | 2011-05-31 19:02:37 +0000 | [diff] [blame] | 5 | 'target_name': 'core', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 6 | 'product_name': 'skia_core', |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 7 | 'type': 'static_library', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 8 | 'standalone_static_library': 1, |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 9 | 'msvs_guid': 'B7760B5E-BFA8-486B-ACFD-49E3A6DE8E76', |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 10 | |
reed@google.com | baa5d94 | 2012-08-08 20:39:17 +0000 | [diff] [blame] | 11 | 'includes': [ |
| 12 | 'core.gypi', |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 13 | ], |
reed@google.com | baa5d94 | 2012-08-08 20:39:17 +0000 | [diff] [blame] | 14 | |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 15 | 'include_dirs': [ |
| 16 | '../include/config', |
| 17 | '../include/core', |
scroggo@google.com | f8d7d27 | 2013-02-22 21:38:35 +0000 | [diff] [blame] | 18 | '../include/lazy', |
scroggo@google.com | 5af9b20 | 2012-06-04 17:17:36 +0000 | [diff] [blame] | 19 | '../include/pipe', |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 20 | '../include/ports', |
humper@google.com | 7af56be | 2013-01-14 18:49:19 +0000 | [diff] [blame] | 21 | '../include/utils', |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 22 | '../include/xml', |
| 23 | '../src/core', |
reed@google.com | 97af1a6 | 2012-08-28 12:19:02 +0000 | [diff] [blame] | 24 | '../src/image', |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 25 | ], |
bsalomon@google.com | 202a51b | 2012-09-04 14:37:12 +0000 | [diff] [blame] | 26 | 'sources': [ |
| 27 | 'core.gypi', # Makes the gypi appear in IDEs (but does not modify the build). |
| 28 | ], |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 29 | 'msvs_disabled_warnings': [4244, 4267,4345, 4390, 4554, 4800], |
| 30 | 'conditions': [ |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 31 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 32 | 'cflags': [ |
| 33 | '-Wno-unused', |
| 34 | '-Wno-unused-function', |
| 35 | ], |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 36 | 'link_settings': { |
| 37 | 'libraries': [ |
senorblanco@chromium.org | 7eb492e | 2011-03-25 17:41:34 +0000 | [diff] [blame] | 38 | '-lpthread', |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 39 | ], |
bsalomon@google.com | 9182610 | 2011-03-21 19:51:57 +0000 | [diff] [blame] | 40 | }, |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 41 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 42 | [ 'skia_os == "mac"', { |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 43 | 'include_dirs': [ |
| 44 | '../include/utils/mac', |
reed@google.com | 830a23e | 2011-11-10 15:20:49 +0000 | [diff] [blame] | 45 | '../third_party/freetype/include/**', |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 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 | ], |
djsollen@google.com | 62b24b1 | 2011-12-15 16:16:22 +0000 | [diff] [blame] | 81 | 'sources!': [ |
| 82 | '../include/core/SkMMapStream.h', |
| 83 | '../src/core/SkMMapStream.cpp', |
| 84 | ], |
senorblanco@chromium.org | c1587e0 | 2011-05-04 18:59:38 +0000 | [diff] [blame] | 85 | }], |
borenet@google.com | 327b9b2 | 2013-03-07 15:33:28 +0000 | [diff] [blame^] | 86 | [ 'skia_os in ("android", "nacl")', { |
djsollen@google.com | 5862929 | 2011-11-03 13:08:29 +0000 | [diff] [blame] | 87 | 'dependencies': [ |
borenet@google.com | 327b9b2 | 2013-03-07 15:33:28 +0000 | [diff] [blame^] | 88 | 'freetype.gyp:freetype', |
djsollen@google.com | 5862929 | 2011-11-03 13:08:29 +0000 | [diff] [blame] | 89 | ], |
digit@google.com | eec9dbc | 2012-05-30 13:54:41 +0000 | [diff] [blame] | 90 | }], |
djsollen@google.com | e341cb3 | 2012-06-28 16:08:05 +0000 | [diff] [blame] | 91 | [ 'skia_os == "android" and skia_arch_type == "arm" and armv7 == 1', { |
digit@google.com | eec9dbc | 2012-05-30 13:54:41 +0000 | [diff] [blame] | 92 | # The code in SkUtilsArm.cpp can be used on an ARM-based Linux system, not only Android. |
| 93 | 'sources': [ |
| 94 | '../src/core/SkUtilsArm.cpp', |
digit@google.com | fbf3194 | 2012-08-01 15:58:41 +0000 | [diff] [blame] | 95 | '../src/core/SkUtilsArm.h', |
digit@google.com | eec9dbc | 2012-05-30 13:54:41 +0000 | [diff] [blame] | 96 | ], |
| 97 | }], |
bsalomon@google.com | e197cbf | 2013-01-14 16:46:26 +0000 | [diff] [blame] | 98 | ['skia_gpu == 1', { |
| 99 | 'include_dirs': [ |
| 100 | '../include/gpu', |
| 101 | '../src/gpu', |
| 102 | ], |
| 103 | }], |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 104 | ], |
| 105 | 'direct_dependent_settings': { |
| 106 | 'include_dirs': [ |
| 107 | 'config', |
| 108 | '../include/config', |
| 109 | '../include/core', |
scroggo@google.com | f8d7d27 | 2013-02-22 21:38:35 +0000 | [diff] [blame] | 110 | '../include/lazy', |
scroggo@google.com | 5af9b20 | 2012-06-04 17:17:36 +0000 | [diff] [blame] | 111 | '../include/pipe', |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 112 | 'ext', |
| 113 | ], |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 114 | 'conditions': [ |
| 115 | [ 'skia_os == "mac"', { |
| 116 | 'include_dirs': [ |
| 117 | '../include/utils/mac', |
| 118 | '../third_party/freetype/include/**', |
| 119 | ], |
| 120 | }], |
| 121 | [ 'skia_os == "ios"', { |
| 122 | 'include_dirs': [ |
| 123 | '../include/utils/ios', |
| 124 | ], |
| 125 | }], |
| 126 | [ 'skia_os == "win"', { |
| 127 | 'include_dirs': [ |
| 128 | 'config/win', |
| 129 | ], |
| 130 | }], |
| 131 | ], |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 132 | }, |
bungeman@google.com | 5a64e58 | 2012-03-29 14:51:56 +0000 | [diff] [blame] | 133 | 'dependencies': [ |
| 134 | 'opts.gyp:opts' |
| 135 | ], |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 136 | }, |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 137 | ], |
| 138 | } |
| 139 | |
| 140 | # Local Variables: |
| 141 | # tab-width:2 |
| 142 | # indent-tabs-mode:nil |
| 143 | # End: |
| 144 | # vim: set expandtab tabstop=2 shiftwidth=2: |