Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: skia/SConscript

Issue 10414: Use Skia to render fonts (Closed)
Patch Set: Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | skia/ports/SkFontHost_FreeType.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 Import('env') 5 Import('env')
6 6
7 env = env.Clone() 7 env = env.Clone()
8 8
9 env.Prepend( 9 env.Prepend(
10 CPPPATH = [ 10 CPPPATH = [
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 'sgl/SkString.cpp', 147 'sgl/SkString.cpp',
148 'sgl/SkStroke.cpp', 148 'sgl/SkStroke.cpp',
149 'sgl/SkStrokerPriv.cpp', 149 'sgl/SkStrokerPriv.cpp',
150 'sgl/SkTSearch.cpp', 150 'sgl/SkTSearch.cpp',
151 'sgl/SkTypeface_fake.cpp', 151 'sgl/SkTypeface_fake.cpp',
152 'sgl/SkUtils.cpp', 152 'sgl/SkUtils.cpp',
153 'sgl/SkWriter32.cpp', 153 'sgl/SkWriter32.cpp',
154 'sgl/SkXfermode.cpp', 154 'sgl/SkXfermode.cpp',
155 ] 155 ]
156 156
157 if env['PLATFORM'] == 'posix':
158 # On Linux we use Skia to render fonts with FreeType and fontconfig
159 input_files.remove('sgl/SkTypeface_fake.cpp')
160 input_files.remove('ports/SkFontHost_none.cpp')
161 input_files.append('sgl/SkTypeface.cpp')
162 input_files.append('ports/SkFontHost_FreeType.cpp')
163 input_files.append('ports/SkFontHost_gamma.cpp')
164 input_files.append('ports/SkFontHost_fontconfig.cpp')
165 input_files.append('images/SkMMapStream.cpp')
166
157 if env['PLATFORM'] in ('darwin', 'posix'): 167 if env['PLATFORM'] in ('darwin', 'posix'):
158 input_files.append('ports/SkThread_pthread.cpp') 168 input_files.append('ports/SkThread_pthread.cpp')
159 169
160 if env['PLATFORM'] == 'win32': 170 if env['PLATFORM'] == 'win32':
161 input_files.append('ports/SkThread_win.cpp') 171 input_files.append('ports/SkThread_win.cpp')
162 172
163 env_p = env.Clone( 173 env_p = env.Clone(
164 PCHSTOP = 'SkTypes.h', 174 PCHSTOP = 'SkTypes.h',
165 PDB = 'vc80.pdb', 175 PDB = 'vc80.pdb',
166 ) 176 )
167 177
168 # TODO(rspangler): This step forces -Zi, but doesn't actually use it. Need to 178 # TODO(rspangler): This step forces -Zi, but doesn't actually use it. Need to
169 # fix so it doesn't override our -Z7. -Zi also causes vc80.pdb to be created 179 # fix so it doesn't override our -Z7. -Zi also causes vc80.pdb to be created
170 # in the skia directory. 180 # in the skia directory.
171 # TODO(bradnelson): This step creates a skia.pch.ib_tag file to be created. 181 # TODO(bradnelson): This step creates a skia.pch.ib_tag file to be created.
172 # It's a 0-length file so likely harmless. Is this a side effect of having 182 # It's a 0-length file so likely harmless. Is this a side effect of having
173 # IncrediBuild installed on the build machine? 183 # IncrediBuild installed on the build machine?
174 pch, obj = env_p.PCH(['skia.pch', 'precompiled.obj'], 'precompiled.cc') 184 pch, obj = env_p.PCH(['skia.pch', 'precompiled.obj'], 'precompiled.cc')
175 env_p['PCH'] = pch 185 env_p['PCH'] = pch
176 input_files += [obj] 186 input_files += [obj]
177 187
178 env.ChromeStaticLibrary('skia', input_files) 188 env.ChromeStaticLibrary('skia', input_files)
179 189
OLDNEW
« no previous file with comments | « no previous file | skia/ports/SkFontHost_FreeType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698