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 18 matching lines...) Expand all Loading... |
29 '/TP', | 29 '/TP', |
30 | 30 |
31 '/wd4244', | 31 '/wd4244', |
32 '/wd4267', | 32 '/wd4267', |
33 '/wd4345', | 33 '/wd4345', |
34 '/wd4390', | 34 '/wd4390', |
35 '/wd4554', | 35 '/wd4554', |
36 '/wd4800', | 36 '/wd4800', |
37 ], | 37 ], |
38 ) | 38 ) |
39 elif env['PLATFORM'] == 'posix': | 39 elif env['PLATFORM'] in ('posix', 'darwin'): |
40 if '-Wall' in env['CCFLAGS']: | 40 if '-Wall' in env['CCFLAGS']: |
41 # We're not responsible for bad warning hygiene in this third party code. | 41 # We're not responsible for bad warning hygiene in this third party code. |
42 env['CCFLAGS'].remove('-Wall') | 42 env['CCFLAGS'].remove('-Wall') |
43 | 43 |
44 input_files = [ | 44 input_files = [ |
45 'animator/SkTime.cpp', | 45 'animator/SkTime.cpp', |
46 'corecg/Sk64.cpp', | 46 'corecg/Sk64.cpp', |
47 'corecg/SkBuffer.cpp', | 47 'corecg/SkBuffer.cpp', |
48 'corecg/SkChunkAlloc.cpp', | 48 'corecg/SkChunkAlloc.cpp', |
49 'corecg/SkCordic.cpp', | 49 'corecg/SkCordic.cpp', |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 # in the skia directory. | 172 # in the skia directory. |
173 # TODO(bradnelson): This step creates a skia.pch.ib_tag file to be created. | 173 # TODO(bradnelson): This step creates a skia.pch.ib_tag file to be created. |
174 # It's a 0-length file so likely harmless. Is this a side effect of having | 174 # It's a 0-length file so likely harmless. Is this a side effect of having |
175 # IncrediBuild installed on the build machine? | 175 # IncrediBuild installed on the build machine? |
176 pch, obj = env_p.PCH(['skia.pch', 'precompiled.obj'], 'precompiled.cc') | 176 pch, obj = env_p.PCH(['skia.pch', 'precompiled.obj'], 'precompiled.cc') |
177 env_p['PCH'] = pch | 177 env_p['PCH'] = pch |
178 input_files += [obj] | 178 input_files += [obj] |
179 | 179 |
180 env.ChromeStaticLibrary('skia', input_files) | 180 env.ChromeStaticLibrary('skia', input_files) |
181 | 181 |
OLD | NEW |