Commit b91e237a authored by Adam Simpkins's avatar Adam Simpkins Committed by Facebook Github Bot

cmake: explicitly include library files from io/async/test

Summary:
The top-level CMakeLists.txt explicitly includes any files inside "test"
subdirectories.  However, the folly/io/async/test contains several library
headers and sources that we do want to include in libfolly.  Explicitly
re-include these files.

Reviewed By: yfeldblum

Differential Revision: D6794707

fbshipit-source-id: 9df3157503f317c49e48252497b8a3d06e6161d5
parent f9511420
...@@ -120,6 +120,32 @@ list(REMOVE_ITEM hfiles ...@@ -120,6 +120,32 @@ list(REMOVE_ITEM hfiles
${FOLLY_DIR}/detail/FingerprintPolynomial.h ${FOLLY_DIR}/detail/FingerprintPolynomial.h
) )
# Explicitly include utility library code from inside
# folly/test and folly/io/async/test/
list(APPEND files
${FOLLY_DIR}/io/async/test/ScopedBoundPort.cpp
${FOLLY_DIR}/io/async/test/SocketPair.cpp
${FOLLY_DIR}/io/async/test/TimeUtil.cpp
)
list(APPEND hfiles
${FOLLY_DIR}/io/async/test/AsyncSSLSocketTest.h
${FOLLY_DIR}/io/async/test/AsyncSocketTest2.h
${FOLLY_DIR}/io/async/test/BlockingSocket.h
${FOLLY_DIR}/io/async/test/MockAsyncSocket.h
${FOLLY_DIR}/io/async/test/MockAsyncServerSocket.h
${FOLLY_DIR}/io/async/test/MockAsyncSSLSocket.h
${FOLLY_DIR}/io/async/test/MockAsyncTransport.h
${FOLLY_DIR}/io/async/test/MockAsyncUDPSocket.h
${FOLLY_DIR}/io/async/test/MockTimeoutManager.h
${FOLLY_DIR}/io/async/test/ScopedBoundPort.h
${FOLLY_DIR}/io/async/test/SocketPair.h
${FOLLY_DIR}/io/async/test/TestSSLServer.h
${FOLLY_DIR}/io/async/test/TimeUtil.h
${FOLLY_DIR}/io/async/test/UndelayedDestruction.h
${FOLLY_DIR}/io/async/test/Util.h
${FOLLY_DIR}/test/TestUtils.h
)
# Exclude specific sources if we do not have third-party libraries # Exclude specific sources if we do not have third-party libraries
# required to build them. # required to build them.
if (NOT FOLLY_USE_SYMBOLIZER) if (NOT FOLLY_USE_SYMBOLIZER)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment