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
900667a9
Commit
900667a9
authored
9 years ago
by
Peter Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: moar .in file via configure_file
parent
147e0988
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
34 deletions
+52
-34
CMakeLists.txt
CMakeLists.txt
+48
-33
cmakeconfig.h.in
cmakeconfig.h.in
+4
-1
No files found.
CMakeLists.txt
View file @
900667a9
...
...
@@ -403,57 +403,72 @@ if(ENABLE_DEBUG)
set
(
DEBUGBUILD 1
)
endif
()
# enable_threads=yes
# # Some platform does not have working std::future. We disable
# # threading for those platforms.
# if test "x$threads" != "xyes" ||
# test "x$have_std_future" != "xyes"; then
# enable_threads=no
# AC_DEFINE([NOTHREADS], [1], [Define to 1 if you want to disable threads.])
# fi
#
# Some platform does not have working std::future. We disable
# threading for those platforms.
if
(
NOT ENABLE_THREADS OR NOT HAVE_STD_FUTURE
)
set
(
NOTHREADS 1
)
endif
()
# # propagate $enable_static to tests/Makefile.am
# AM_CONDITIONAL([ENABLE_STATIC], [test "x$enable_static" = "xyes"])
#
# AC_SUBST([TESTLDADD])
# AC_SUBST([APPLDFLAGS])
#
configure_file
(
cmakeconfig.h.in config.h
)
# autotools-compatible names
set
(
top_srcdir
"
${
CMAKE_SOURCE_DIR
}
"
)
set
(
top_builddir
"
${
CMAKE_BINARY_DIR
}
"
)
set
(
abs_top_srcdir
"
${
CMAKE_SOURCE_DIR
}
"
)
set
(
abs_top_builddir
"
${
CMAKE_BINARY_DIR
}
"
)
set
(
prefix
""
)
set
(
exec_prefix
""
)
set
(
libdir
""
)
set
(
includedir
""
)
set
(
bindir
""
)
set
(
sbindir
""
)
set
(
VERSION
"
${
PACKAGE_VERSION
}
"
)
foreach
(
name
lib/libnghttp2.pc
lib/includes/nghttp2/nghttp2ver.h
src/libnghttp2_asio.pc
python/setup.py
integration-tests/config.go
integration-tests/setenv
doc/conf.py
doc/index.rst
doc/package_README.rst
doc/tutorial-client.rst
doc/tutorial-server.rst
doc/tutorial-hpack.rst
doc/nghttpx-howto.rst
doc/h2load-howto.rst
doc/libnghttp2_asio.rst
doc/python-apiref.rst
doc/building-android-binary.rst
doc/nghttp2.h.rst
doc/nghttp2ver.h.rst
doc/asio_http2.h.rst
doc/asio_http2_server.h.rst
doc/asio_http2_client.h.rst
doc/contribute.rst
)
configure_file
(
"
${
name
}
.in"
"
${
name
}
"
@ONLY
)
endforeach
()
# AC_CONFIG_FILES([
# Makefile
# lib/Makefile
# lib/libnghttp2.pc
# lib/includes/Makefile
# lib/includes/nghttp2/nghttp2ver.h
# tests/Makefile
# tests/testdata/Makefile
# third-party/Makefile
# src/Makefile
# src/includes/Makefile
# src/libnghttp2_asio.pc
# examples/Makefile
# python/Makefile
# python/setup.py
# integration-tests/Makefile
# integration-tests/config.go
# integration-tests/setenv
# doc/Makefile
# doc/conf.py
# doc/index.rst
# doc/package_README.rst
# doc/tutorial-client.rst
# doc/tutorial-server.rst
# doc/tutorial-hpack.rst
# doc/nghttpx-howto.rst
# doc/h2load-howto.rst
# doc/libnghttp2_asio.rst
# doc/python-apiref.rst
# doc/building-android-binary.rst
# doc/nghttp2.h.rst
# doc/nghttp2ver.h.rst
# doc/asio_http2.h.rst
# doc/asio_http2_server.h.rst
# doc/asio_http2_client.h.rst
# doc/contribute.rst
# contrib/Makefile
# script/Makefile
# ])
...
...
This diff is collapsed.
Click to expand it.
cmakeconfig.h.in
View file @
900667a9
...
...
@@ -30,7 +30,10 @@
#cmakedefine HAVE_ACCEPT4 1
/* Define to 1 if you have the `initgroups` function. */
#
define HAVE_DECL_INITGROUPS @HAVE_DECL_INITGROUPS@
#
cmakedefine01 HAVE_DECL_INITGROUPS
/* Define to 1 to enable debug output. */
#cmakedefine DEBUGBUILD 1
/* Define to 1 if you want to disable threads. */
#cmakedefine NOTHREADS 1
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