libeventcommon.mozbuild (958B)
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- 2 # vim: set filetype=python: 3 # This Source Code Form is subject to the terms of the Mozilla Public 4 # License, v. 2.0. If a copy of the MPL was not distributed with this 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 6 7 if CONFIG['TARGET_KERNEL'] == 'Darwin': 8 libevent_include_suffix = 'mac' 9 elif CONFIG['TARGET_KERNEL'] in ('DragonFly', 'FreeBSD', 'NetBSD', 'OpenBSD'): 10 libevent_include_suffix = 'bsd' 11 elif CONFIG['TARGET_KERNEL'] == 'SunOS': 12 libevent_include_suffix = 'solaris' 13 elif CONFIG['TARGET_OS'] == 'Android': 14 libevent_include_suffix = 'android' 15 else: 16 libevent_include_suffix = 'linux' 17 18 if CONFIG["TARGET_KERNEL"] != "WINNT" and not CONFIG['MOZ_SYSTEM_LIBEVENT']: 19 DEFINES['HAVE_CONFIG_H'] = True 20 LOCAL_INCLUDES += sorted([ 21 'libevent', 22 'libevent/compat', 23 'libevent/include', 24 'libevent/' + libevent_include_suffix, 25 ])