| OLD | NEW |
| 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'use_system_libevent%': 0, | 7 'use_system_libevent%': 0, |
| 8 }, | 8 }, |
| 9 'conditions': [ | 9 'conditions': [ |
| 10 ['use_system_libevent==0', { | 10 ['use_system_libevent==0', { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 # We need rt for clock_gettime(). | 47 # We need rt for clock_gettime(). |
| 48 # TODO(port) Maybe on FreeBSD as well? | 48 # TODO(port) Maybe on FreeBSD as well? |
| 49 '-lrt', | 49 '-lrt', |
| 50 ], | 50 ], |
| 51 }, | 51 }, |
| 52 }], | 52 }], |
| 53 [ 'OS == "mac" or OS == "freebsd" or OS == "openbsd"', { | 53 [ 'OS == "mac" or OS == "freebsd" or OS == "openbsd"', { |
| 54 'sources': [ 'kqueue.c' ], | 54 'sources': [ 'kqueue.c' ], |
| 55 'include_dirs': [ 'mac' ] | 55 'include_dirs': [ 'mac' ] |
| 56 }], | 56 }], |
| 57 [ 'OS == "solaris"', { |
| 58 'sources': [ 'devpoll.c', 'evport.c' ], |
| 59 'include_dirs': [ 'solaris' ] |
| 60 }], |
| 57 ], | 61 ], |
| 58 }, | 62 }, |
| 59 ], | 63 ], |
| 60 }, { # use_system_libevent != 0 | 64 }, { # use_system_libevent != 0 |
| 61 'targets': [ | 65 'targets': [ |
| 62 { | 66 { |
| 63 'target_name': 'libevent', | 67 'target_name': 'libevent', |
| 64 'type': 'settings', | 68 'type': 'settings', |
| 65 'direct_dependent_settings': { | 69 'direct_dependent_settings': { |
| 66 'defines': [ | 70 'defines': [ |
| 67 'USE_SYSTEM_LIBEVENT', | 71 'USE_SYSTEM_LIBEVENT', |
| 68 ], | 72 ], |
| 69 }, | 73 }, |
| 70 'link_settings': { | 74 'link_settings': { |
| 71 'libraries': [ | 75 'libraries': [ |
| 72 '-levent', | 76 '-levent', |
| 73 ], | 77 ], |
| 74 }, | 78 }, |
| 75 } | 79 } |
| 76 ], | 80 ], |
| 77 }], | 81 }], |
| 78 ], | 82 ], |
| 79 } | 83 } |
| 80 | 84 |
| 81 # Local Variables: | 85 # Local Variables: |
| 82 # tab-width:2 | 86 # tab-width:2 |
| 83 # indent-tabs-mode:nil | 87 # indent-tabs-mode:nil |
| 84 # End: | 88 # End: |
| 85 # vim: set expandtab tabstop=2 shiftwidth=2: | 89 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |