| OLD | NEW |
| (Empty) |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 Import('env') | |
| 6 | |
| 7 env = env.Clone() | |
| 8 | |
| 9 # Remove an inherited relative path that doesn't make sense anymore. This | |
| 10 # makes sure we don't pull in the wrong version of time.h when building on | |
| 11 # linux. | |
| 12 env['CPPPATH'].remove('..') | |
| 13 | |
| 14 env.Prepend( | |
| 15 CPPPATH = [ | |
| 16 '$SKIA_DIR/include', | |
| 17 '$SKIA_DIR/include/corecg', | |
| 18 '$SKIA_DIR/include/platform', | |
| 19 '$ZLIB_DIR', | |
| 20 '$LIBPNG_DIR', | |
| 21 '$ICU38_DIR/public/common', | |
| 22 '$ICU38_DIR/public/i18n', | |
| 23 '../..', | |
| 24 ], | |
| 25 CPPDEFINES = [ | |
| 26 'PNG_USER_CONFIG', | |
| 27 'CHROME_PNG_WRITE_SUPPORT', | |
| 28 'U_STATIC_IMPLEMENTATION', | |
| 29 ], | |
| 30 ) | |
| 31 | |
| 32 if env['PLATFORM'] == 'win32': | |
| 33 env.Prepend( | |
| 34 CCFLAGS = [ | |
| 35 '/TP', | |
| 36 '/WX', | |
| 37 ], | |
| 38 ) | |
| 39 | |
| 40 input_files = [ | |
| 41 'convolver.cc', | |
| 42 'image_operations.cc', | |
| 43 'png_decoder.cc', | |
| 44 'png_encoder.cc', | |
| 45 'point.cc', | |
| 46 'rect.cc', | |
| 47 'size.cc', | |
| 48 ] | |
| 49 | |
| 50 if env['PLATFORM'] == 'win32': | |
| 51 # Some of these aren't really Windows-specific, they're just here until | |
| 52 # we have the port versions working. | |
| 53 input_files.extend([ | |
| 54 'font_utils.cc', | |
| 55 'gdi_util.cc', | |
| 56 'native_theme.cc', | |
| 57 'skia_utils.cc', | |
| 58 'uniscribe.cc', | |
| 59 'vector_canvas.cc', | |
| 60 'vector_device.cc', | |
| 61 ]) | |
| 62 | |
| 63 if env['PLATFORM'] == 'win32': | |
| 64 input_files.extend([ | |
| 65 'bitmap_platform_device_win.cc', | |
| 66 'platform_canvas_win.cc', | |
| 67 'platform_device_win.cc', | |
| 68 ]) | |
| 69 elif env['PLATFORM'] == 'posix': | |
| 70 input_files.extend([ | |
| 71 'bitmap_platform_device_linux.cc', | |
| 72 'platform_canvas_linux.cc', | |
| 73 'platform_device_linux.cc', | |
| 74 ]) | |
| 75 | |
| 76 env.ChromeStaticLibrary('base_gfx', input_files) | |
| 77 | |
| OLD | NEW |