blob: 5dc88d572c4fdd10ef09f69096b64bda2015d36c [file] [log] [blame]
caryclark@google.comafcb55c2011-12-14 17:12:04 +00001# 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.comd26147a2011-12-15 14:16:43 +000013 '../include/images',
14 '../include/effects',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000015 '../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.comd26147a2011-12-15 14:16:43 +000024 '../src/ports/SkGlobalInitialization_default.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000025 '../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.com61c22042012-02-24 15:29:00 +000051 '../src/utils/mac/SkStream_mac.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000052# '../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.com17aa07d2012-02-23 14:51:10 +000057 'sources!': [
58 '../src/ports/SkFontHost_tables.cpp',
59 ],
caryclark@google.comafcb55c2011-12-14 17:12:04 +000060 }],
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.com60abb072012-02-15 18:49:15 +000097 #TODO: include the ports/SkImageRef_ashmem.cpp for non-NDK builds
caryclark@google.comafcb55c2011-12-14 17:12:04 +000098 ],
djsollen@google.com62b24b12011-12-15 16:16:22 +000099 'dependencies': [
100 'android_system.gyp:ft2',
101 'android_system.gyp:expat',
102 ],
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000103 }],
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: