libevent2


#
# Create the libraries.
#
include(AddEventLibrary)
add_event_library(event_core SOURCES ${SRC_CORE})
add_event_library(event_extra
    LIBRARIES event_core_shared
    SOURCES ${SRC_EXTRA})

if (NOT EVENT__DISABLE_OPENSSL)
    add_event_library(event_openssl
        LIBRARIES event_core_shared ${OPENSSL_LIBRARIES}
        SOURCES ${SRC_OPENSSL})
endif()

if (CMAKE_USE_PTHREADS_INIT)
    set(SRC_PTHREADS evthread_pthread.c)
    add_event_library(event_pthreads
        LIBRARIES event_core_shared
        SOURCES ${SRC_PTHREADS})
endif()

# library exists for historical reasons; it contains the contents of
# both libevent_core and libevent_extra. You shouldn’t use it; it may
# go away in a future version of Libevent.
add_event_library(event SOURCES ${SRC_CORE} ${SRC_EXTRA})

event_extra

-- SRC_EXTRA:             event_tagging.c;http.c;evdns.c;evrpc.c

event_core

-- SRC_CORE:   
          buffer.c
;bufferevent.c;
bufferevent_filter.c
;bufferevent_pair.c;
bufferevent_ratelim.c;
bufferevent_sock.c;
event.c;
evmap.c;
evthread.c;
evutil.c;
evutil_rand.c;
evutil_time.c;
listener.c;
log.c
;signal.c;
strlcpy.c
;select.c
;poll.c;
epoll.c

头文件

# Group the source files.
set(HDR_PRIVATE
        bufferevent-internal.h
        changelist-internal.h
        defer-internal.h
        epolltable-internal.h
        evbuffer-internal.h
        event-internal.h
        evmap-internal.h
        evrpc-internal.h
        evsignal-internal.h
        evthread-internal.h
        ht-internal.h
        http-internal.h
        iocp-internal.h
        ipv6-internal.h
        log-internal.h
        minheap-internal.h
        mm-internal.h
        ratelim-internal.h
        strlcpy-internal.h
        util-internal.h
        evconfig-private.h
        compat/sys/queue.h)

set(HDR_COMPAT
        include/evdns.h
        include/evrpc.h
        include/event.h
        include/evhttp.h
        include/evutil.h)

set(HDR_PUBLIC
        include/event2/buffer.h
        include/event2/bufferevent.h
        include/event2/bufferevent_compat.h
        include/event2/bufferevent_struct.h
        include/event2/buffer_compat.h
        include/event2/dns.h
        include/event2/dns_compat.h
        include/event2/dns_struct.h
        include/event2/event.h
        include/event2/event_compat.h
        include/event2/event_struct.h
        include/event2/http.h
        include/event2/http_compat.h
        include/event2/http_struct.h
        include/event2/keyvalq_struct.h
        include/event2/listener.h
        include/event2/rpc.h
        include/event2/rpc_compat.h
        include/event2/rpc_struct.h
        include/event2/tag.h
        include/event2/tag_compat.h
        include/event2/thread.h
        include/event2/util.h
        include/event2/visibility.h
        ${PROJECT_BINARY_DIR}/include/event2/event-config.h)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

等风来不如迎风去

你的鼓励是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值