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', |
djsollen@google.com | 9714516 | 2012-05-31 19:55:08 +0000 | [diff] [blame] | 26 | '../src/ports/SkFontDescriptor.h', |
| 27 | '../src/ports/SkFontDescriptor.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 28 | '../src/ports/SkFontHost_sandbox_none.cpp', |
| 29 | '../src/ports/SkFontHost_win.cpp', |
bungeman@google.com | e8f0592 | 2012-08-16 16:13:40 +0000 | [diff] [blame] | 30 | '../src/ports/SkFontHost_win_dw.cpp', |
caryclark@google.com | d26147a | 2011-12-15 14:16:43 +0000 | [diff] [blame] | 31 | '../src/ports/SkGlobalInitialization_default.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 32 | '../src/ports/SkThread_win.cpp', |
| 33 | |
| 34 | '../src/ports/SkFontHost_tables.cpp', |
| 35 | '../src/ports/SkMemory_malloc.cpp', |
| 36 | '../src/ports/SkOSFile_stdio.cpp', |
| 37 | '../src/ports/SkTime_Unix.cpp', |
| 38 | '../src/ports/SkTime_win.cpp', |
| 39 | '../src/ports/SkXMLParser_empty.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 40 | ], |
| 41 | 'conditions': [ |
| 42 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 43 | 'defines': [ |
| 44 | #The font host requires at least FreeType 2.3.0 at runtime. |
| 45 | 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020300',\ |
| 46 | 'SK_CAN_USE_DLOPEN=1', |
| 47 | ], |
| 48 | 'link_settings': { |
| 49 | 'libraries': [ |
| 50 | '-lfreetype', |
| 51 | '-ldl', |
| 52 | ], |
| 53 | }, |
| 54 | 'sources': [ |
| 55 | '../src/ports/SkFontHost_FreeType.cpp', |
| 56 | '../src/ports/SkFontHost_FreeType_common.cpp', |
| 57 | '../src/ports/SkFontHost_linux.cpp', |
| 58 | '../src/ports/SkThread_pthread.cpp', |
| 59 | ], |
| 60 | }], |
| 61 | [ 'skia_os == "nacl"', { |
| 62 | 'dependencies': [ |
| 63 | # On other OS, we can dynamically link against freetype. For nacl, |
| 64 | # we have to include our own version since the naclports version is |
| 65 | # too old (<0x020300) to provide the functionality we need. |
| 66 | 'freetype.gyp:freetype', |
| 67 | ], |
| 68 | 'export_dependent_settings': [ |
| 69 | 'freetype.gyp:freetype', |
| 70 | ], |
| 71 | 'defines': [ |
| 72 | # We use Android's repo, which provides at least FreeType 2.4.0 |
| 73 | 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020400',\ |
bungeman@google.com | fd668cf | 2012-08-24 17:46:11 +0000 | [diff] [blame] | 74 | ], |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 75 | 'sources': [ |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 76 | '../src/ports/SkFontHost_FreeType.cpp', |
| 77 | '../src/ports/SkFontHost_FreeType_common.cpp', |
| 78 | '../src/ports/SkFontHost_linux.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 79 | '../src/ports/SkThread_pthread.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 80 | ], |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 81 | 'sources!': [ |
| 82 | '../src/ports/SkDebug_stdio.cpp', |
| 83 | ], |
| 84 | }, { |
| 85 | 'sources!': [ |
| 86 | '../src/ports/SkDebug_nacl.cpp', |
| 87 | ], |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 88 | }], |
| 89 | [ 'skia_os == "mac"', { |
| 90 | 'include_dirs': [ |
| 91 | '../include/utils/mac', |
| 92 | '../third_party/freetype/include/**', |
| 93 | ], |
| 94 | 'sources': [ |
| 95 | '../src/ports/SkFontHost_mac_coretext.cpp', |
reed@google.com | 61c2204 | 2012-02-24 15:29:00 +0000 | [diff] [blame] | 96 | '../src/utils/mac/SkStream_mac.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 97 | # '../src/ports/SkFontHost_FreeType.cpp', |
george@mozilla.com | c59b5da | 2012-08-23 00:39:08 +0000 | [diff] [blame] | 98 | # '../src/ports/SkFontHost_FreeType_common.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 99 | # '../src/ports/SkFontHost_freetype_mac.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 100 | '../src/ports/SkThread_pthread.cpp', |
| 101 | ], |
reed@google.com | 17aa07d | 2012-02-23 14:51:10 +0000 | [diff] [blame] | 102 | 'sources!': [ |
| 103 | '../src/ports/SkFontHost_tables.cpp', |
| 104 | ], |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 105 | }], |
| 106 | [ 'skia_os == "ios"', { |
| 107 | 'include_dirs': [ |
| 108 | '../include/utils/ios', |
caryclark@google.com | 35f5ac9 | 2012-09-18 15:41:18 +0000 | [diff] [blame] | 109 | '../include/utils/mac', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 110 | ], |
| 111 | 'sources': [ |
| 112 | '../src/ports/SkFontHost_mac_coretext.cpp', |
caryclark@google.com | 867cbd8 | 2012-09-20 15:45:41 +0000 | [diff] [blame] | 113 | '../src/utils/mac/SkStream_mac.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 114 | '../src/ports/SkThread_pthread.cpp', |
| 115 | ], |
caryclark@google.com | 867cbd8 | 2012-09-20 15:45:41 +0000 | [diff] [blame] | 116 | 'sources!': [ |
| 117 | '../src/ports/SkFontHost_tables.cpp', |
| 118 | ], |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 119 | }], |
| 120 | [ 'skia_os == "win"', { |
| 121 | 'include_dirs': [ |
| 122 | 'config/win', |
bungeman@google.com | e8f0592 | 2012-08-16 16:13:40 +0000 | [diff] [blame] | 123 | '../src/utils/win', |
| 124 | ], |
| 125 | 'conditions': [ |
| 126 | [ 'skia_directwrite', { |
| 127 | 'sources!': [ |
| 128 | '../src/ports/SkFontHost_win.cpp', |
| 129 | ], |
| 130 | }, { # else !skia_directwrite |
| 131 | 'sources!': [ |
| 132 | '../src/ports/SkFontHost_win_dw.cpp', |
| 133 | ], |
| 134 | }], |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 135 | ], |
| 136 | 'sources!': [ # these are used everywhere but windows |
| 137 | '../src/ports/SkDebug_stdio.cpp', |
| 138 | '../src/ports/SkTime_Unix.cpp', |
| 139 | ], |
| 140 | }, { # else !win |
| 141 | 'sources!': [ |
| 142 | '../src/ports/SkDebug_win.cpp', |
| 143 | '../src/ports/SkFontHost_win.cpp', |
bungeman@google.com | 6ca0a5d | 2012-08-16 16:23:09 +0000 | [diff] [blame] | 144 | '../src/ports/SkFontHost_win_dw.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 145 | '../src/ports/SkThread_win.cpp', |
| 146 | '../src/ports/SkTime_win.cpp', |
| 147 | ], |
| 148 | }], |
| 149 | [ 'skia_os == "android"', { |
bungeman@google.com | fd668cf | 2012-08-24 17:46:11 +0000 | [diff] [blame] | 150 | 'defines': [ |
| 151 | #Android provides at least FreeType 2.4.0 at runtime. |
| 152 | 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020400', |
| 153 | #Skia should not use dlopen on Android. |
| 154 | 'SK_CAN_USE_DLOPEN=0', |
| 155 | ], |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 156 | 'sources!': [ |
| 157 | '../src/ports/SkDebug_stdio.cpp', |
| 158 | ], |
| 159 | 'sources': [ |
| 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', |
djsollen@google.com | 276a295 | 2012-11-19 19:34:23 +0000 | [diff] [blame] | 166 | '../src/ports/SkImageRef_ashmem.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: |