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', |
caryclark@google.com | 45a75fb | 2013-04-25 13:34:40 +0000 | [diff] [blame] | 19 | '../include/pathops', |
scroggo@google.com | 5af9b20 | 2012-06-04 17:17:36 +0000 | [diff] [blame] | 20 | '../include/pipe', |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 21 | '../include/ports', |
humper@google.com | 7af56be | 2013-01-14 18:49:19 +0000 | [diff] [blame] | 22 | '../include/utils', |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 23 | '../include/xml', |
| 24 | '../src/core', |
reed@google.com | 97af1a6 | 2012-08-28 12:19:02 +0000 | [diff] [blame] | 25 | '../src/image', |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 26 | ], |
bsalomon@google.com | 202a51b | 2012-09-04 14:37:12 +0000 | [diff] [blame] | 27 | 'sources': [ |
| 28 | 'core.gypi', # Makes the gypi appear in IDEs (but does not modify the build). |
| 29 | ], |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 30 | 'msvs_disabled_warnings': [4244, 4267,4345, 4390, 4554, 4800], |
| 31 | 'conditions': [ |
borenet@google.com | 05d550e | 2013-06-11 15:52:19 +0000 | [diff] [blame] | 32 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 33 | 'link_settings': { |
| 34 | 'libraries': [ |
senorblanco@chromium.org | 7eb492e | 2011-03-25 17:41:34 +0000 | [diff] [blame] | 35 | '-lpthread', |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 36 | ], |
bsalomon@google.com | 9182610 | 2011-03-21 19:51:57 +0000 | [diff] [blame] | 37 | }, |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 38 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 39 | [ 'skia_os == "mac"', { |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 40 | 'include_dirs': [ |
| 41 | '../include/utils/mac', |
reed@google.com | 830a23e | 2011-11-10 15:20:49 +0000 | [diff] [blame] | 42 | '../third_party/freetype/include/**', |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 43 | ], |
| 44 | 'sources': [ |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 45 | '../include/utils/mac/SkCGUtils.h', |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 46 | ], |
epoger@google.com | 0a030cd | 2011-06-02 19:52:14 +0000 | [diff] [blame] | 47 | 'link_settings': { |
| 48 | 'libraries': [ |
yangsu@google.com | ccb74ea | 2011-06-21 13:09:32 +0000 | [diff] [blame] | 49 | '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework', |
epoger@google.com | 0a030cd | 2011-06-02 19:52:14 +0000 | [diff] [blame] | 50 | ], |
| 51 | }, |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 52 | }], |
epoger@google.com | ea5dfa8 | 2011-07-01 21:01:32 +0000 | [diff] [blame] | 53 | [ 'skia_os == "ios"', { |
| 54 | 'include_dirs': [ |
| 55 | '../include/utils/ios', |
| 56 | ], |
| 57 | 'sources': [ |
epoger@google.com | ea5dfa8 | 2011-07-01 21:01:32 +0000 | [diff] [blame] | 58 | '../include/utils/mac/SkCGUtils.h', |
epoger@google.com | ea5dfa8 | 2011-07-01 21:01:32 +0000 | [diff] [blame] | 59 | ], |
| 60 | 'link_settings': { |
| 61 | 'libraries': [ |
bsalomon@google.com | 4663822 | 2012-10-04 12:52:03 +0000 | [diff] [blame] | 62 | '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', |
| 63 | '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework', |
| 64 | '$(SDKROOT)/System/Library/Frameworks/CoreText.framework', |
| 65 | '$(SDKROOT)/System/Library/Frameworks/UIKit.framework', |
| 66 | '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
| 67 | '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework', |
| 68 | '$(SDKROOT)/System/Library/Frameworks/OpenGLES.framework', |
| 69 | '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework', |
| 70 | '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework', |
epoger@google.com | ea5dfa8 | 2011-07-01 21:01:32 +0000 | [diff] [blame] | 71 | ], |
| 72 | }, |
| 73 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 74 | [ 'skia_os == "win"', { |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 75 | 'include_dirs': [ |
| 76 | 'config/win', |
| 77 | ], |
senorblanco@chromium.org | c1587e0 | 2011-05-04 18:59:38 +0000 | [diff] [blame] | 78 | }], |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 79 | [ 'skia_os == "android"', { |
| 80 | 'sources': [ |
| 81 | '../src/core/SkPaintOptionsAndroid.cpp', |
| 82 | ], |
| 83 | }], |
djsollen@google.com | e341cb3 | 2012-06-28 16:08:05 +0000 | [diff] [blame] | 84 | [ 'skia_os == "android" and skia_arch_type == "arm" and armv7 == 1', { |
digit@google.com | eec9dbc | 2012-05-30 13:54:41 +0000 | [diff] [blame] | 85 | # The code in SkUtilsArm.cpp can be used on an ARM-based Linux system, not only Android. |
| 86 | 'sources': [ |
commit-bot@chromium.org | c7a20e4 | 2013-05-13 14:09:13 +0000 | [diff] [blame] | 87 | '../src/core/SkPaintOptionsAndroid.cpp', |
digit@google.com | eec9dbc | 2012-05-30 13:54:41 +0000 | [diff] [blame] | 88 | '../src/core/SkUtilsArm.cpp', |
digit@google.com | fbf3194 | 2012-08-01 15:58:41 +0000 | [diff] [blame] | 89 | '../src/core/SkUtilsArm.h', |
digit@google.com | eec9dbc | 2012-05-30 13:54:41 +0000 | [diff] [blame] | 90 | ], |
| 91 | }], |
bsalomon@google.com | e197cbf | 2013-01-14 16:46:26 +0000 | [diff] [blame] | 92 | ['skia_gpu == 1', { |
| 93 | 'include_dirs': [ |
| 94 | '../include/gpu', |
| 95 | '../src/gpu', |
| 96 | ], |
| 97 | }], |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 98 | ], |
| 99 | 'direct_dependent_settings': { |
| 100 | 'include_dirs': [ |
| 101 | 'config', |
| 102 | '../include/config', |
| 103 | '../include/core', |
scroggo@google.com | f8d7d27 | 2013-02-22 21:38:35 +0000 | [diff] [blame] | 104 | '../include/lazy', |
caryclark@google.com | 45a75fb | 2013-04-25 13:34:40 +0000 | [diff] [blame] | 105 | '../include/pathops', |
scroggo@google.com | 5af9b20 | 2012-06-04 17:17:36 +0000 | [diff] [blame] | 106 | '../include/pipe', |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 107 | 'ext', |
| 108 | ], |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 109 | 'conditions': [ |
| 110 | [ 'skia_os == "mac"', { |
| 111 | 'include_dirs': [ |
| 112 | '../include/utils/mac', |
| 113 | '../third_party/freetype/include/**', |
| 114 | ], |
| 115 | }], |
| 116 | [ 'skia_os == "ios"', { |
| 117 | 'include_dirs': [ |
| 118 | '../include/utils/ios', |
| 119 | ], |
| 120 | }], |
| 121 | [ 'skia_os == "win"', { |
| 122 | 'include_dirs': [ |
| 123 | 'config/win', |
| 124 | ], |
| 125 | }], |
| 126 | ], |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 127 | }, |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 128 | }, |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 129 | ], |
| 130 | } |
| 131 | |
| 132 | # Local Variables: |
| 133 | # tab-width:2 |
| 134 | # indent-tabs-mode:nil |
| 135 | # End: |
| 136 | # vim: set expandtab tabstop=2 shiftwidth=2: |