mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
2f184f8bbf
Adds two new callbacks: "prepare" watchers, which fire immediately before we poll for I/O, and "check" watchers, which fire immediately after we finish polling and before we process events. This allows other event loops to be embedded into libevent's, and enables certain performance monitoring. Closes: #710
62 lines
2.2 KiB
Plaintext
62 lines
2.2 KiB
Plaintext
# sample/include.am for libevent
|
|
# Copyright 2000-2007 Niels Provos
|
|
# Copyright 2007-2012 Niels Provos and Nick Mathewson
|
|
#
|
|
# See LICENSE for copying information.
|
|
|
|
SAMPLES = \
|
|
sample/dns-example \
|
|
sample/event-read-fifo \
|
|
sample/hello-world \
|
|
sample/http-server \
|
|
sample/http-connect \
|
|
sample/signal-test \
|
|
sample/time-test \
|
|
sample/watch-timing
|
|
|
|
if OPENSSL
|
|
SAMPLES += sample/le-proxy
|
|
sample_le_proxy_SOURCES = sample/le-proxy.c
|
|
sample_le_proxy_LDADD = libevent.la libevent_openssl.la $(OPENSSL_LIBS) $(OPENSSL_LIBADD)
|
|
sample_le_proxy_CPPFLAGS = $(AM_CPPFLAGS) $(OPENSSL_INCS)
|
|
|
|
SAMPLES += sample/becat
|
|
sample_becat_SOURCES = sample/becat.c
|
|
sample_becat_LDADD = libevent.la libevent_openssl.la $(OPENSSL_LIBS) $(OPENSSL_LIBADD)
|
|
sample_becat_CPPFLAGS = $(AM_CPPFLAGS) $(OPENSSL_INCS)
|
|
|
|
SAMPLES += sample/https-client
|
|
sample_https_client_SOURCES = \
|
|
sample/https-client.c \
|
|
sample/hostcheck.c \
|
|
sample/openssl_hostname_validation.c
|
|
sample_https_client_LDADD = libevent.la libevent_openssl.la $(OPENSSL_LIBS) $(OPENSSL_LIBADD)
|
|
sample_https_client_CPPFLAGS = $(AM_CPPFLAGS) $(OPENSSL_INCS)
|
|
noinst_HEADERS += \
|
|
sample/hostcheck.h \
|
|
sample/openssl_hostname_validation.h
|
|
endif
|
|
|
|
if BUILD_SAMPLES
|
|
noinst_PROGRAMS += $(SAMPLES)
|
|
endif
|
|
|
|
$(SAMPLES) : libevent.la
|
|
|
|
sample_event_read_fifo_SOURCES = sample/event-read-fifo.c
|
|
sample_event_read_fifo_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
|
|
sample_time_test_SOURCES = sample/time-test.c
|
|
sample_time_test_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
|
|
sample_signal_test_SOURCES = sample/signal-test.c
|
|
sample_signal_test_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
|
|
sample_dns_example_SOURCES = sample/dns-example.c
|
|
sample_dns_example_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
|
|
sample_hello_world_SOURCES = sample/hello-world.c
|
|
sample_hello_world_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
|
|
sample_http_server_SOURCES = sample/http-server.c
|
|
sample_http_server_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
|
|
sample_http_connect_SOURCES = sample/http-connect.c
|
|
sample_http_connect_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la
|
|
sample_watch_timing_SOURCES = sample/watch-timing.c
|
|
sample_watch_timing_LDADD = $(LIBEVENT_GC_SECTIONS) libevent.la -lm
|