Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
dcfd9b22
Commit
dcfd9b22
authored
Dec 22, 2013
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples: Add libevent-client, requires libevent for examples
parent
2c1739a2
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
467 additions
and
5 deletions
+467
-5
configure.ac
configure.ac
+2
-1
examples/Makefile.am
examples/Makefile.am
+16
-4
examples/libevent-client.c
examples/libevent-client.c
+449
-0
No files found.
configure.ac
View file @
dcfd9b22
...
...
@@ -237,7 +237,8 @@ AM_CONDITIONAL([ENABLE_SRC], [ test "x${enable_src}" = "xyes" ])
# The example programs depend on OpenSSL
enable_examples=no
if test "x${request_examples}" = "xyes" &&
test "x${have_openssl}" = "xyes"; then
test "x${have_openssl}" = "xyes" &&
test "x${have_libevent_openssl}" = "xyes"; then
enable_examples=yes
fi
...
...
examples/Makefile.am
View file @
dcfd9b22
...
...
@@ -24,14 +24,26 @@
if
ENABLE_EXAMPLES
AM_CFLAGS
=
-Wall
AM_CPPFLAGS
=
-Wall
-I
$(srcdir)
/../lib/includes
-I
$(builddir)
/../lib/includes
\
@OPENSSL_CFLAGS@ @DEFS@
AM_LDFLAGS
=
@OPENSSL_LIBS@
AM_CPPFLAGS
=
\
-Wall
\
-I
$(srcdir)
/../lib/includes
\
-I
$(builddir)
/../lib/includes
\
-I
$(top_srcdir)
/src
\
@LIBEVENT_OPENSSL_CFLAGS@
\
@OPENSSL_CFLAGS@
\
@DEFS@
AM_LDFLAGS
=
\
@LIBEVENT_OPENSSL_LIBS@
\
@OPENSSL_LIBS@
LDADD
=
$(top_builddir)
/lib/libnghttp2.la
noinst_PROGRAMS
=
client
noinst_PROGRAMS
=
client
libevent-client
client_SOURCES
=
client.c
libevent_client_SOURCES
=
\
libevent-client.c
\
$(top_srcdir)
/src/http-parser/http_parser.c
endif
# ENABLE_EXAMPLES
EXTRA_DIST
=
README.rst
examples/libevent-client.c
0 → 100644
View file @
dcfd9b22
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment