build: Trim libevent usage

Use system libevent on Linux. Remove extra libs on other platforms.
This commit is contained in:
klzgrad
2018-01-25 07:50:56 -05:00
parent 55ac64de37
commit 8a40e103cc
3 changed files with 17 additions and 13 deletions

View File

@@ -14,7 +14,6 @@
#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/posix/eintr_wrapper.h"
#include "base/third_party/libevent/event.h"
#include "base/time/time.h"
#include "base/trace_event/trace_event.h"
#include "build/build_config.h"
@@ -23,6 +22,12 @@
#include "base/mac/scoped_nsautorelease_pool.h"
#endif
#if defined(OS_LINUX)
#include <event.h>
#else
#include "base/third_party/libevent/event.h"
#endif
// Lifecycle of struct event
// Libevent uses two main data structures:
// struct event_base (of which there is one per message pump), and