| 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. |
| 6 |
| 5 Import('env') | 7 Import('env') |
| 6 | 8 |
| 7 env = env.Clone( | 9 env = env.Clone( |
| 8 ) | 10 ) |
| 9 | 11 |
| 10 env.Append( | 12 env.Append( |
| 11 CPPDEFINES = [ | 13 CPPDEFINES = [ |
| 12 'HAVE_CONFIG_H', | 14 'HAVE_CONFIG_H', |
| 13 ], | 15 ], |
| 14 ) | 16 ) |
| 15 | 17 |
| 16 env.Prepend( | 18 env.Prepend( |
| 17 CPPPATH = [ | 19 CPPPATH = [ |
| 18 '$LIBEVENT_DIR', | 20 '$LIBEVENT_DIR', |
| 19 '$LIBEVENT_DIR/compat/' | 21 '$LIBEVENT_DIR/compat/' |
| 22 '$LIBEVENT_DIR/linux/' |
| 20 ], | 23 ], |
| 21 ) | 24 ) |
| 22 | 25 |
| 23 | 26 |
| 24 input_files = [ | 27 input_files = [ |
| 25 'buffer.c', | 28 'buffer.c', |
| 26 #'devpoll.c', | 29 #'devpoll.c', |
| 27 'epoll.c', | 30 'epoll.c', |
| 28 'epoll_sub.c', | 31 'epoll_sub.c', |
| 29 'evbuffer.c', | 32 'evbuffer.c', |
| 30 'evdns.c', | 33 'evdns.c', |
| 31 'event.c', | 34 'event.c', |
| 32 'event_tagging.c', | 35 'event_tagging.c', |
| 33 #'evport.c', | 36 #'evport.c', |
| 34 'evrpc.c', | 37 'evrpc.c', |
| 35 'evutil.c', | 38 'evutil.c', |
| 36 'http.c', | 39 'http.c', |
| 37 #'kqueue.c', | 40 #'kqueue.c', |
| 38 'log.c', | 41 'log.c', |
| 39 'poll.c', | 42 'poll.c', |
| 40 'select.c', | 43 'select.c', |
| 41 'signal.c', | 44 'signal.c', |
| 42 'strlcpy.c', | 45 'strlcpy.c', |
| 43 ] | 46 ] |
| 44 | 47 |
| 45 | 48 |
| 46 env.ChromeStaticLibrary('libevent', input_files) | 49 env.ChromeStaticLibrary('libevent', input_files) |
| OLD | NEW |