caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 1 | # Port-specific Skia library code. |
| 2 | { |
| 3 | 'includes': [ |
| 4 | 'common.gypi', |
| 5 | ], |
| 6 | 'targets': [ |
| 7 | { |
| 8 | 'target_name': 'ports', |
| 9 | 'type': 'static_library', |
| 10 | 'include_dirs': [ |
| 11 | '../include/config', |
| 12 | '../include/core', |
caryclark@google.com | d26147a | 2011-12-15 14:16:43 +0000 | [diff] [blame] | 13 | '../include/images', |
| 14 | '../include/effects', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 15 | '../include/ports', |
| 16 | '../include/xml', |
| 17 | '../src/core', |
| 18 | ], |
| 19 | 'sources': [ |
| 20 | '../src/ports/SkDebug_stdio.cpp', |
| 21 | '../src/ports/SkDebug_win.cpp', |
| 22 | '../src/ports/SkFontHost_sandbox_none.cpp', |
| 23 | '../src/ports/SkFontHost_win.cpp', |
caryclark@google.com | d26147a | 2011-12-15 14:16:43 +0000 | [diff] [blame] | 24 | '../src/ports/SkGlobalInitialization_default.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 25 | '../src/ports/SkThread_win.cpp', |
| 26 | |
| 27 | '../src/ports/SkFontHost_tables.cpp', |
| 28 | '../src/ports/SkMemory_malloc.cpp', |
| 29 | '../src/ports/SkOSFile_stdio.cpp', |
| 30 | '../src/ports/SkTime_Unix.cpp', |
| 31 | '../src/ports/SkTime_win.cpp', |
| 32 | '../src/ports/SkXMLParser_empty.cpp', |
| 33 | '../src/ports/sk_predefined_gamma.h', |
| 34 | ], |
| 35 | 'conditions': [ |
| 36 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { |
| 37 | 'sources': [ |
| 38 | '../src/ports/SkThread_pthread.cpp', |
| 39 | '../src/ports/SkFontHost_FreeType.cpp', |
| 40 | '../src/ports/SkFontHost_gamma_none.cpp', |
| 41 | '../src/ports/SkFontHost_linux.cpp', |
| 42 | ], |
| 43 | }], |
| 44 | [ 'skia_os == "mac"', { |
| 45 | 'include_dirs': [ |
| 46 | '../include/utils/mac', |
| 47 | '../third_party/freetype/include/**', |
| 48 | ], |
| 49 | 'sources': [ |
| 50 | '../src/ports/SkFontHost_mac_coretext.cpp', |
reed@google.com | 61c2204 | 2012-02-24 15:29:00 +0000 | [diff] [blame^] | 51 | '../src/utils/mac/SkStream_mac.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 52 | # '../src/ports/SkFontHost_FreeType.cpp', |
| 53 | # '../src/ports/SkFontHost_freetype_mac.cpp', |
| 54 | # '../src/ports/SkFontHost_gamma_none.cpp', |
| 55 | '../src/ports/SkThread_pthread.cpp', |
| 56 | ], |
reed@google.com | 17aa07d | 2012-02-23 14:51:10 +0000 | [diff] [blame] | 57 | 'sources!': [ |
| 58 | '../src/ports/SkFontHost_tables.cpp', |
| 59 | ], |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 60 | }], |
| 61 | [ 'skia_os == "ios"', { |
| 62 | 'include_dirs': [ |
| 63 | '../include/utils/ios', |
| 64 | ], |
| 65 | 'sources': [ |
| 66 | '../src/ports/SkFontHost_mac_coretext.cpp', |
| 67 | '../src/ports/SkThread_pthread.cpp', |
| 68 | ], |
| 69 | }], |
| 70 | [ 'skia_os == "win"', { |
| 71 | 'include_dirs': [ |
| 72 | 'config/win', |
| 73 | ], |
| 74 | 'sources!': [ # these are used everywhere but windows |
| 75 | '../src/ports/SkDebug_stdio.cpp', |
| 76 | '../src/ports/SkTime_Unix.cpp', |
| 77 | ], |
| 78 | }, { # else !win |
| 79 | 'sources!': [ |
| 80 | '../src/ports/SkDebug_win.cpp', |
| 81 | '../src/ports/SkFontHost_win.cpp', |
| 82 | '../src/ports/SkThread_win.cpp', |
| 83 | '../src/ports/SkTime_win.cpp', |
| 84 | ], |
| 85 | }], |
| 86 | [ 'skia_os == "android"', { |
| 87 | 'sources!': [ |
| 88 | '../src/ports/SkDebug_stdio.cpp', |
| 89 | ], |
| 90 | 'sources': [ |
| 91 | '../src/ports/SkDebug_android.cpp', |
| 92 | '../src/ports/SkThread_pthread.cpp', |
| 93 | '../src/ports/SkFontHost_android.cpp', |
| 94 | '../src/ports/SkFontHost_gamma.cpp', |
| 95 | '../src/ports/SkFontHost_FreeType.cpp', |
| 96 | '../src/ports/FontHostConfiguration_android.cpp', |
djsollen@google.com | 60abb07 | 2012-02-15 18:49:15 +0000 | [diff] [blame] | 97 | #TODO: include the ports/SkImageRef_ashmem.cpp for non-NDK builds |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 98 | ], |
djsollen@google.com | 62b24b1 | 2011-12-15 16:16:22 +0000 | [diff] [blame] | 99 | 'dependencies': [ |
| 100 | 'android_system.gyp:ft2', |
| 101 | 'android_system.gyp:expat', |
| 102 | ], |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 103 | }], |
| 104 | ], |
| 105 | 'direct_dependent_settings': { |
| 106 | 'include_dirs': [ |
| 107 | '../include/ports', |
| 108 | ], |
| 109 | }, |
| 110 | }, |
| 111 | ], |
| 112 | } |
| 113 | |
| 114 | # Local Variables: |
| 115 | # tab-width:2 |
| 116 | # indent-tabs-mode:nil |
| 117 | # End: |
| 118 | # vim: set expandtab tabstop=2 shiftwidth=2: |