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)
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章