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