| 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 # This SConscript is currently only suitable for Linux. | 5 |
| 6 __doc__ = """ |
| 7 Configuration for building event.lib / libevent.a. |
| 8 |
| 9 This is currently only suitable for Linux and Mac. |
| 10 """ |
| 6 | 11 |
| 7 Import('env') | 12 Import('env') |
| 8 | 13 |
| 9 env = env.Clone( | 14 env = env.Clone() |
| 10 ) | |
| 11 | 15 |
| 12 env.Append( | 16 env.Append( |
| 13 CPPDEFINES = [ | 17 CPPDEFINES = [ |
| 14 'HAVE_CONFIG_H', | 18 'HAVE_CONFIG_H', |
| 15 ], | 19 ], |
| 16 ) | 20 ) |
| 17 | 21 |
| 18 if env['PLATFORM'] == 'darwin': | 22 if env['PLATFORM'] == 'darwin': |
| 19 env.Prepend( | 23 env.Prepend( |
| 20 CPPPATH = [ | 24 CPPPATH = [ |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 'epoll_sub.c', | 67 'epoll_sub.c', |
| 64 ]) | 68 ]) |
| 65 | 69 |
| 66 if env['PLATFORM'] == 'darwin': | 70 if env['PLATFORM'] == 'darwin': |
| 67 input_files.extend([ | 71 input_files.extend([ |
| 68 'kqueue.c', | 72 'kqueue.c', |
| 69 ]) | 73 ]) |
| 70 | 74 |
| 71 | 75 |
| 72 env.ChromeStaticLibrary('event', input_files) | 76 env.ChromeStaticLibrary('event', input_files) |
| OLD | NEW |