OLD | NEW |
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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 input_files.remove('ports/SkFontHost_none.cpp') | 160 input_files.remove('ports/SkFontHost_none.cpp') |
161 input_files.append('sgl/SkTypeface.cpp') | 161 input_files.append('sgl/SkTypeface.cpp') |
162 input_files.append('ports/SkFontHost_FreeType.cpp') | 162 input_files.append('ports/SkFontHost_FreeType.cpp') |
163 input_files.append('ports/SkFontHost_gamma_none.cpp') | 163 input_files.append('ports/SkFontHost_gamma_none.cpp') |
164 input_files.append('ports/SkFontHost_fontconfig.cpp') | 164 input_files.append('ports/SkFontHost_fontconfig.cpp') |
165 input_files.append('images/SkMMapStream.cpp') | 165 input_files.append('images/SkMMapStream.cpp') |
166 | 166 |
167 if env['PLATFORM'] in ('darwin', 'posix'): | 167 if env['PLATFORM'] in ('darwin', 'posix'): |
168 input_files.append('ports/SkThread_pthread.cpp') | 168 input_files.append('ports/SkThread_pthread.cpp') |
169 | 169 |
| 170 if env['PLATFORM'] == 'darwin': |
| 171 input_files.append('ext/bitmap_platform_device_mac.cc') |
| 172 input_files.append('ext/platform_canvas_mac.cc') |
| 173 input_files.append('ext/platform_device_mac.cc') |
| 174 |
170 if env['PLATFORM'] == 'win32': | 175 if env['PLATFORM'] == 'win32': |
171 input_files.append('ports/SkThread_win.cpp') | 176 input_files.append('ports/SkThread_win.cpp') |
172 | 177 |
173 env_p = env.Clone( | 178 env_p = env.Clone( |
174 PCHSTOP = 'SkTypes.h', | 179 PCHSTOP = 'SkTypes.h', |
175 PDB = 'vc80.pdb', | 180 PDB = 'vc80.pdb', |
176 ) | 181 ) |
177 | 182 |
178 # TODO(rspangler): This step forces -Zi, but doesn't actually use it. Need to | 183 # TODO(rspangler): This step forces -Zi, but doesn't actually use it. Need to |
179 # fix so it doesn't override our -Z7. -Zi also causes vc80.pdb to be created | 184 # fix so it doesn't override our -Z7. -Zi also causes vc80.pdb to be created |
180 # in the skia directory. | 185 # in the skia directory. |
181 # TODO(bradnelson): This step creates a skia.pch.ib_tag file to be created. | 186 # TODO(bradnelson): This step creates a skia.pch.ib_tag file to be created. |
182 # It's a 0-length file so likely harmless. Is this a side effect of having | 187 # It's a 0-length file so likely harmless. Is this a side effect of having |
183 # IncrediBuild installed on the build machine? | 188 # IncrediBuild installed on the build machine? |
184 pch, obj = env_p.PCH(['skia.pch', 'precompiled.obj'], 'precompiled.cc') | 189 pch, obj = env_p.PCH(['skia.pch', 'precompiled.obj'], 'precompiled.cc') |
185 env_p['PCH'] = pch | 190 env_p['PCH'] = pch |
186 input_files += [obj] | 191 input_files += [obj] |
187 | 192 |
188 env.ChromeStaticLibrary('skia', input_files) | 193 env.ChromeStaticLibrary('skia', input_files) |
189 | 194 |
OLD | NEW |