caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 1 | # Port-specific Skia library code. |
| 2 | { |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 3 | 'targets': [ |
| 4 | { |
| 5 | 'target_name': 'ports', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 6 | 'product_name': 'skia_ports', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +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, |
bungeman@google.com | a02bc15 | 2012-05-16 18:21:56 +0000 | [diff] [blame] | 9 | 'dependencies': [ |
| 10 | 'core.gyp:core', |
| 11 | 'sfnt.gyp:sfnt', |
| 12 | 'utils.gyp:utils', |
| 13 | ], |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 14 | 'include_dirs': [ |
bungeman@google.com | 5a64e58 | 2012-03-29 14:51:56 +0000 | [diff] [blame] | 15 | '../include/images', |
| 16 | '../include/effects', |
bungeman@google.com | 29b63dc | 2012-03-29 14:28:59 +0000 | [diff] [blame] | 17 | '../include/ports', |
bungeman@google.com | 5a64e58 | 2012-03-29 14:51:56 +0000 | [diff] [blame] | 18 | '../include/xml', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 19 | '../src/core', |
bungeman@google.com | a02bc15 | 2012-05-16 18:21:56 +0000 | [diff] [blame] | 20 | '../src/utils', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 21 | ], |
| 22 | 'sources': [ |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 23 | '../src/ports/SkDebug_nacl.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 24 | '../src/ports/SkDebug_stdio.cpp', |
| 25 | '../src/ports/SkDebug_win.cpp', |
| 26 | '../src/ports/SkFontHost_sandbox_none.cpp', |
| 27 | '../src/ports/SkFontHost_win.cpp', |
bungeman@google.com | e8f0592 | 2012-08-16 16:13:40 +0000 | [diff] [blame] | 28 | '../src/ports/SkFontHost_win_dw.cpp', |
caryclark@google.com | d26147a | 2011-12-15 14:16:43 +0000 | [diff] [blame] | 29 | '../src/ports/SkGlobalInitialization_default.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 30 | '../src/ports/SkThread_win.cpp', |
| 31 | |
| 32 | '../src/ports/SkFontHost_tables.cpp', |
| 33 | '../src/ports/SkMemory_malloc.cpp', |
| 34 | '../src/ports/SkOSFile_stdio.cpp', |
| 35 | '../src/ports/SkTime_Unix.cpp', |
| 36 | '../src/ports/SkTime_win.cpp', |
| 37 | '../src/ports/SkXMLParser_empty.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 38 | ], |
| 39 | 'conditions': [ |
| 40 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 41 | 'defines': [ |
| 42 | #The font host requires at least FreeType 2.3.0 at runtime. |
| 43 | 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020300',\ |
| 44 | 'SK_CAN_USE_DLOPEN=1', |
| 45 | ], |
| 46 | 'link_settings': { |
| 47 | 'libraries': [ |
| 48 | '-lfreetype', |
| 49 | '-ldl', |
| 50 | ], |
| 51 | }, |
| 52 | 'sources': [ |
| 53 | '../src/ports/SkFontHost_FreeType.cpp', |
| 54 | '../src/ports/SkFontHost_FreeType_common.cpp', |
reed@google.com | 4e0d96b | 2013-02-27 19:17:07 +0000 | [diff] [blame] | 55 | '../src/ports/SkFontHost_linux.cpp', |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 56 | '../src/ports/SkThread_pthread.cpp', |
| 57 | ], |
| 58 | }], |
| 59 | [ 'skia_os == "nacl"', { |
| 60 | 'dependencies': [ |
| 61 | # On other OS, we can dynamically link against freetype. For nacl, |
| 62 | # we have to include our own version since the naclports version is |
| 63 | # too old (<0x020300) to provide the functionality we need. |
| 64 | 'freetype.gyp:freetype', |
| 65 | ], |
| 66 | 'export_dependent_settings': [ |
| 67 | 'freetype.gyp:freetype', |
| 68 | ], |
| 69 | 'defines': [ |
| 70 | # We use Android's repo, which provides at least FreeType 2.4.0 |
| 71 | 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020400',\ |
bungeman@google.com | fd668cf | 2012-08-24 17:46:11 +0000 | [diff] [blame] | 72 | ], |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 73 | 'sources': [ |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 74 | '../src/ports/SkFontHost_FreeType.cpp', |
| 75 | '../src/ports/SkFontHost_FreeType_common.cpp', |
| 76 | '../src/ports/SkFontHost_linux.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 77 | '../src/ports/SkThread_pthread.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 78 | ], |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 79 | 'sources!': [ |
| 80 | '../src/ports/SkDebug_stdio.cpp', |
| 81 | ], |
| 82 | }, { |
| 83 | 'sources!': [ |
| 84 | '../src/ports/SkDebug_nacl.cpp', |
| 85 | ], |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 86 | }], |
| 87 | [ 'skia_os == "mac"', { |
| 88 | 'include_dirs': [ |
| 89 | '../include/utils/mac', |
| 90 | '../third_party/freetype/include/**', |
| 91 | ], |
| 92 | 'sources': [ |
mike@reedtribe.org | b103ed4 | 2013-03-03 03:50:09 +0000 | [diff] [blame^] | 93 | '../src/ports/SkFontHost_mac.cpp', |
reed@google.com | 61c2204 | 2012-02-24 15:29:00 +0000 | [diff] [blame] | 94 | '../src/utils/mac/SkStream_mac.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 95 | # '../src/ports/SkFontHost_FreeType.cpp', |
george@mozilla.com | c59b5da | 2012-08-23 00:39:08 +0000 | [diff] [blame] | 96 | # '../src/ports/SkFontHost_FreeType_common.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 97 | # '../src/ports/SkFontHost_freetype_mac.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 98 | '../src/ports/SkThread_pthread.cpp', |
| 99 | ], |
reed@google.com | 17aa07d | 2012-02-23 14:51:10 +0000 | [diff] [blame] | 100 | 'sources!': [ |
| 101 | '../src/ports/SkFontHost_tables.cpp', |
| 102 | ], |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 103 | }], |
| 104 | [ 'skia_os == "ios"', { |
| 105 | 'include_dirs': [ |
| 106 | '../include/utils/ios', |
caryclark@google.com | 35f5ac9 | 2012-09-18 15:41:18 +0000 | [diff] [blame] | 107 | '../include/utils/mac', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 108 | ], |
| 109 | 'sources': [ |
mike@reedtribe.org | b103ed4 | 2013-03-03 03:50:09 +0000 | [diff] [blame^] | 110 | '../src/ports/SkFontHost_mac.cpp', |
caryclark@google.com | 867cbd8 | 2012-09-20 15:45:41 +0000 | [diff] [blame] | 111 | '../src/utils/mac/SkStream_mac.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 112 | '../src/ports/SkThread_pthread.cpp', |
| 113 | ], |
caryclark@google.com | 867cbd8 | 2012-09-20 15:45:41 +0000 | [diff] [blame] | 114 | 'sources!': [ |
| 115 | '../src/ports/SkFontHost_tables.cpp', |
| 116 | ], |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 117 | }], |
| 118 | [ 'skia_os == "win"', { |
| 119 | 'include_dirs': [ |
| 120 | 'config/win', |
bungeman@google.com | e8f0592 | 2012-08-16 16:13:40 +0000 | [diff] [blame] | 121 | '../src/utils/win', |
| 122 | ], |
| 123 | 'conditions': [ |
| 124 | [ 'skia_directwrite', { |
| 125 | 'sources!': [ |
| 126 | '../src/ports/SkFontHost_win.cpp', |
| 127 | ], |
| 128 | }, { # else !skia_directwrite |
| 129 | 'sources!': [ |
| 130 | '../src/ports/SkFontHost_win_dw.cpp', |
| 131 | ], |
| 132 | }], |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 133 | ], |
| 134 | 'sources!': [ # these are used everywhere but windows |
| 135 | '../src/ports/SkDebug_stdio.cpp', |
| 136 | '../src/ports/SkTime_Unix.cpp', |
| 137 | ], |
| 138 | }, { # else !win |
| 139 | 'sources!': [ |
| 140 | '../src/ports/SkDebug_win.cpp', |
| 141 | '../src/ports/SkFontHost_win.cpp', |
bungeman@google.com | 6ca0a5d | 2012-08-16 16:23:09 +0000 | [diff] [blame] | 142 | '../src/ports/SkFontHost_win_dw.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 143 | '../src/ports/SkThread_win.cpp', |
| 144 | '../src/ports/SkTime_win.cpp', |
| 145 | ], |
| 146 | }], |
| 147 | [ 'skia_os == "android"', { |
bungeman@google.com | fd668cf | 2012-08-24 17:46:11 +0000 | [diff] [blame] | 148 | 'defines': [ |
| 149 | #Android provides at least FreeType 2.4.0 at runtime. |
| 150 | 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020400', |
| 151 | #Skia should not use dlopen on Android. |
| 152 | 'SK_CAN_USE_DLOPEN=0', |
| 153 | ], |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 154 | 'sources!': [ |
| 155 | '../src/ports/SkDebug_stdio.cpp', |
| 156 | ], |
| 157 | 'sources': [ |
scroggo@google.com | f8d7d27 | 2013-02-22 21:38:35 +0000 | [diff] [blame] | 158 | '../include/ports/SkAshmemImageCache.h', |
| 159 | |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 160 | '../src/ports/SkDebug_android.cpp', |
| 161 | '../src/ports/SkThread_pthread.cpp', |
| 162 | '../src/ports/SkFontHost_android.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 163 | '../src/ports/SkFontHost_FreeType.cpp', |
george@mozilla.com | c59b5da | 2012-08-23 00:39:08 +0000 | [diff] [blame] | 164 | '../src/ports/SkFontHost_FreeType_common.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 165 | '../src/ports/FontHostConfiguration_android.cpp', |
scroggo@google.com | f8d7d27 | 2013-02-22 21:38:35 +0000 | [diff] [blame] | 166 | '../src/ports/SkAshmemImageCache.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 167 | ], |
djsollen@google.com | 62b24b1 | 2011-12-15 16:16:22 +0000 | [diff] [blame] | 168 | 'dependencies': [ |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 169 | 'freetype.gyp:freetype', |
borenet@google.com | af73091 | 2012-08-09 15:54:28 +0000 | [diff] [blame] | 170 | 'android_deps.gyp:expat', |
djsollen@google.com | 62b24b1 | 2011-12-15 16:16:22 +0000 | [diff] [blame] | 171 | ], |
rmistry@google.com | d6176b0 | 2012-08-23 18:14:13 +0000 | [diff] [blame] | 172 | }], |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 173 | ], |
| 174 | 'direct_dependent_settings': { |
| 175 | 'include_dirs': [ |
| 176 | '../include/ports', |
| 177 | ], |
| 178 | }, |
| 179 | }, |
| 180 | ], |
| 181 | } |
| 182 | |
| 183 | # Local Variables: |
| 184 | # tab-width:2 |
| 185 | # indent-tabs-mode:nil |
| 186 | # End: |
| 187 | # vim: set expandtab tabstop=2 shiftwidth=2: |