OLD | NEW |
1 # Port-specific Skia library code. | 1 # Port-specific Skia library code. |
2 { | 2 { |
3 'targets': [ | 3 'targets': [ |
4 { | 4 { |
5 'target_name': 'ports', | 5 'target_name': 'ports', |
6 'product_name': 'skia_ports', | 6 'product_name': 'skia_ports', |
7 'type': 'static_library', | 7 'type': 'static_library', |
8 'standalone_static_library': 1, | 8 'standalone_static_library': 1, |
9 'include_dirs': [ | 9 'include_dirs': [ |
10 '../include/config', | 10 '../include/config', |
11 '../include/core', | 11 '../include/core', |
12 '../include/effects', | 12 '../include/effects', |
13 '../include/images', | 13 '../include/images', |
14 '../include/ports', | 14 '../include/ports', |
15 '../include/utils', | 15 '../include/utils', |
16 '../include/utils/win', | 16 '../include/utils/win', |
17 '../include/xml', | 17 '../include/xml', |
18 '../src/core', | 18 '../src/core', |
19 '../src/lazy', | 19 '../src/lazy', |
20 '../src/sfnt', | 20 '../src/sfnt', |
21 '../src/utils', | 21 '../src/utils', |
22 ], | 22 ], |
23 'sources': [ | 23 'sources': [ |
24 '../src/ports/SkDebug_nacl.cpp', | 24 '../src/ports/SkDebug_nacl.cpp', |
25 '../src/ports/SkDebug_stdio.cpp', | 25 '../src/ports/SkDebug_stdio.cpp', |
26 '../src/ports/SkDebug_win.cpp', | 26 '../src/ports/SkDebug_win.cpp', |
27 '../src/ports/SkFontHost_win.cpp', | 27 '../src/ports/SkFontHost_win.cpp', |
28 '../src/ports/SkFontHost_win_dw.cpp', | 28 '../src/ports/SkFontHost_win_dw.cpp', |
29 '../src/ports/SkGlobalInitialization_default.cpp', | 29 '../src/ports/SkGlobalInitialization_default.cpp', |
30 '../src/ports/SkPurgeableMemoryBlock_none.cpp', | |
31 '../src/ports/SkThread_win.cpp', | |
32 | |
33 '../src/ports/SkMemory_malloc.cpp', | 30 '../src/ports/SkMemory_malloc.cpp', |
34 '../src/ports/SkOSFile_posix.cpp', | 31 '../src/ports/SkOSFile_posix.cpp', |
35 '../src/ports/SkOSFile_stdio.cpp', | 32 '../src/ports/SkOSFile_stdio.cpp', |
36 '../src/ports/SkOSFile_win.cpp', | 33 '../src/ports/SkOSFile_win.cpp', |
| 34 '../src/ports/SkPurgeableMemoryBlock_none.cpp', |
| 35 #'../src/ports/SkThread_none.cpp', |
| 36 '../src/ports/SkThread_pthread.cpp', |
| 37 '../src/ports/SkThread_win.cpp', |
37 '../src/ports/SkTime_Unix.cpp', | 38 '../src/ports/SkTime_Unix.cpp', |
38 '../src/ports/SkTime_win.cpp', | 39 '../src/ports/SkTime_win.cpp', |
| 40 #'../src/ports/SkTLS_none.cpp', |
| 41 '../src/ports/SkTLS_pthread.cpp', |
| 42 '../src/ports/SkTLS_win.cpp', |
39 '../src/ports/SkXMLParser_empty.cpp', | 43 '../src/ports/SkXMLParser_empty.cpp', |
40 ], | 44 ], |
41 'conditions': [ | 45 'conditions': [ |
42 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { | 46 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { |
43 'defines': [ | 47 'defines': [ |
44 #The font host requires at least FreeType 2.3.0 at runtime. | 48 #The font host requires at least FreeType 2.3.0 at runtime. |
45 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020300',\ | 49 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020300',\ |
46 'SK_CAN_USE_DLOPEN=1', | 50 'SK_CAN_USE_DLOPEN=1', |
47 ], | 51 ], |
48 'link_settings': { | 52 'link_settings': { |
49 'libraries': [ | 53 'libraries': [ |
50 '-lfreetype', | 54 '-lfreetype', |
51 '-lfontconfig', | 55 '-lfontconfig', |
52 '-ldl', | 56 '-ldl', |
53 ], | 57 ], |
54 }, | 58 }, |
55 'sources': [ | 59 'sources': [ |
56 '../src/fonts/SkFontMgr_fontconfig.cpp', | 60 '../src/fonts/SkFontMgr_fontconfig.cpp', |
57 '../src/ports/SkFontHost_FreeType.cpp', | 61 '../src/ports/SkFontHost_FreeType.cpp', |
58 '../src/ports/SkFontHost_FreeType_common.cpp', | 62 '../src/ports/SkFontHost_FreeType_common.cpp', |
59 '../src/ports/SkFontHost_fontconfig.cpp', | 63 '../src/ports/SkFontHost_fontconfig.cpp', |
60 '../src/ports/SkFontConfigInterface_direct.cpp', | 64 '../src/ports/SkFontConfigInterface_direct.cpp', |
61 '../src/ports/SkThread_pthread.cpp', | |
62 ], | 65 ], |
63 }], | 66 }], |
64 [ 'skia_os == "nacl"', { | 67 [ 'skia_os == "nacl"', { |
65 'dependencies': [ | 68 'dependencies': [ |
66 # On other OS, we can dynamically link against freetype. For nacl, | 69 # On other OS, we can dynamically link against freetype. For nacl, |
67 # we have to include our own version since the naclports version is | 70 # we have to include our own version since the naclports version is |
68 # too old (<0x020300) to provide the functionality we need. | 71 # too old (<0x020300) to provide the functionality we need. |
69 'freetype.gyp:freetype', | 72 'freetype.gyp:freetype', |
70 ], | 73 ], |
71 'export_dependent_settings': [ | 74 'export_dependent_settings': [ |
72 'freetype.gyp:freetype', | 75 'freetype.gyp:freetype', |
73 ], | 76 ], |
74 'defines': [ | 77 'defines': [ |
75 # We use Android's repo, which provides at least FreeType 2.4.0 | 78 # We use Android's repo, which provides at least FreeType 2.4.0 |
76 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020400',\ | 79 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020400',\ |
77 ], | 80 ], |
78 'sources': [ | 81 'sources': [ |
79 '../src/ports/SkFontHost_FreeType.cpp', | 82 '../src/ports/SkFontHost_FreeType.cpp', |
80 '../src/ports/SkFontHost_FreeType_common.cpp', | 83 '../src/ports/SkFontHost_FreeType_common.cpp', |
81 '../src/ports/SkFontHost_linux.cpp', | 84 '../src/ports/SkFontHost_linux.cpp', |
82 '../src/ports/SkThread_pthread.cpp', | |
83 ], | 85 ], |
84 'sources!': [ | 86 'sources!': [ |
85 '../src/ports/SkDebug_stdio.cpp', | 87 '../src/ports/SkDebug_stdio.cpp', |
86 ], | 88 ], |
87 }, { | 89 }, { |
88 'sources!': [ | 90 'sources!': [ |
89 '../src/ports/SkDebug_nacl.cpp', | 91 '../src/ports/SkDebug_nacl.cpp', |
90 ], | 92 ], |
91 }], | 93 }], |
92 [ 'skia_os == "mac"', { | 94 [ 'skia_os == "mac"', { |
93 'include_dirs': [ | 95 'include_dirs': [ |
94 '../include/utils/mac', | 96 '../include/utils/mac', |
95 '../third_party/freetype/include/**', | 97 '../third_party/freetype/include/**', |
96 ], | 98 ], |
97 'sources': [ | 99 'sources': [ |
98 '../src/ports/SkFontHost_mac.cpp', | 100 '../src/ports/SkFontHost_mac.cpp', |
99 # '../src/ports/SkFontHost_FreeType.cpp', | 101 # '../src/ports/SkFontHost_FreeType.cpp', |
100 # '../src/ports/SkFontHost_FreeType_common.cpp', | 102 # '../src/ports/SkFontHost_FreeType_common.cpp', |
101 '../src/ports/SkPurgeableMemoryBlock_mac.cpp', | 103 '../src/ports/SkPurgeableMemoryBlock_mac.cpp', |
102 '../src/ports/SkThread_pthread.cpp', | |
103 '../src/utils/mac/SkStream_mac.cpp', | 104 '../src/utils/mac/SkStream_mac.cpp', |
104 ], | 105 ], |
105 'sources!': [ | 106 'sources!': [ |
106 '../src/ports/SkPurgeableMemoryBlock_none.cpp', | 107 '../src/ports/SkPurgeableMemoryBlock_none.cpp', |
107 '../src/ports/SkFontHost_tables.cpp', | 108 '../src/ports/SkFontHost_tables.cpp', |
108 ], | 109 ], |
109 }], | 110 }], |
110 [ 'skia_os == "ios"', { | 111 [ 'skia_os == "ios"', { |
111 'include_dirs': [ | 112 'include_dirs': [ |
112 '../include/utils/ios', | 113 '../include/utils/ios', |
113 '../include/utils/mac', | 114 '../include/utils/mac', |
114 ], | 115 ], |
115 'sources': [ | 116 'sources': [ |
116 '../src/ports/SkFontHost_mac.cpp', | 117 '../src/ports/SkFontHost_mac.cpp', |
117 '../src/ports/SkPurgeableMemoryBlock_mac.cpp', | 118 '../src/ports/SkPurgeableMemoryBlock_mac.cpp', |
118 '../src/ports/SkThread_pthread.cpp', | |
119 '../src/utils/mac/SkStream_mac.cpp', | 119 '../src/utils/mac/SkStream_mac.cpp', |
120 ], | 120 ], |
121 'sources!': [ | 121 'sources!': [ |
122 '../src/ports/SkPurgeableMemoryBlock_none.cpp', | 122 '../src/ports/SkPurgeableMemoryBlock_none.cpp', |
123 '../src/ports/SkFontHost_tables.cpp', | 123 '../src/ports/SkFontHost_tables.cpp', |
124 ], | 124 ], |
125 }], | 125 }], |
126 [ 'skia_os == "win"', { | 126 [ 'skia_os == "win"', { |
127 'include_dirs': [ | 127 'include_dirs': [ |
128 'config/win', | 128 'config/win', |
129 '../src/utils/win', | 129 '../src/utils/win', |
130 ], | 130 ], |
131 'conditions': [ | 131 'conditions': [ |
132 [ 'skia_directwrite', { | 132 [ 'skia_directwrite', { |
133 'sources!': [ | 133 'sources!': [ |
134 '../src/ports/SkFontHost_win.cpp', | 134 '../src/ports/SkFontHost_win.cpp', |
135 ], | 135 ], |
136 }, { # else !skia_directwrite | 136 }, { # else !skia_directwrite |
137 'sources!': [ | 137 'sources!': [ |
138 '../src/ports/SkFontHost_win_dw.cpp', | 138 '../src/ports/SkFontHost_win_dw.cpp', |
139 ], | 139 ], |
140 }], | 140 }], |
141 ], | 141 ], |
142 'sources!': [ # these are used everywhere but windows | 142 'sources!': [ # these are used everywhere but windows |
143 '../src/ports/SkDebug_stdio.cpp', | 143 '../src/ports/SkDebug_stdio.cpp', |
| 144 '../src/ports/SkOSFile_posix.cpp', |
| 145 '../src/ports/SkThread_pthread.cpp', |
144 '../src/ports/SkTime_Unix.cpp', | 146 '../src/ports/SkTime_Unix.cpp', |
145 '../src/ports/SkOSFile_posix.cpp', | 147 '../src/ports/SkTLS_pthread.cpp', |
146 ], | 148 ], |
147 }, { # else !win | 149 }, { # else !win |
148 'sources!': [ | 150 'sources!': [ |
149 '../src/ports/SkDebug_win.cpp', | 151 '../src/ports/SkDebug_win.cpp', |
150 '../src/ports/SkFontHost_win.cpp', | 152 '../src/ports/SkFontHost_win.cpp', |
151 '../src/ports/SkFontHost_win_dw.cpp', | 153 '../src/ports/SkFontHost_win_dw.cpp', |
152 '../src/ports/SkOSFile_win.cpp', | 154 '../src/ports/SkOSFile_win.cpp', |
153 '../src/ports/SkThread_win.cpp', | 155 '../src/ports/SkThread_win.cpp', |
154 '../src/ports/SkTime_win.cpp', | 156 '../src/ports/SkTime_win.cpp', |
| 157 '../src/ports/SkTLS_win.cpp', |
155 ], | 158 ], |
156 }], | 159 }], |
157 [ 'skia_os == "android"', { | 160 [ 'skia_os == "android"', { |
158 'defines': [ | 161 'defines': [ |
159 #Android provides at least FreeType 2.4.0 at runtime. | 162 #Android provides at least FreeType 2.4.0 at runtime. |
160 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020400', | 163 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020400', |
161 #Skia should not use dlopen on Android. | 164 #Skia should not use dlopen on Android. |
162 'SK_CAN_USE_DLOPEN=0', | 165 'SK_CAN_USE_DLOPEN=0', |
163 ], | 166 ], |
164 'sources!': [ | 167 'sources!': [ |
(...skipping 23 matching lines...) Expand all Loading... |
188 }, | 191 }, |
189 }, | 192 }, |
190 ], | 193 ], |
191 } | 194 } |
192 | 195 |
193 # Local Variables: | 196 # Local Variables: |
194 # tab-width:2 | 197 # tab-width:2 |
195 # indent-tabs-mode:nil | 198 # indent-tabs-mode:nil |
196 # End: | 199 # End: |
197 # vim: set expandtab tabstop=2 shiftwidth=2: | 200 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |