Skip to content

Commit

Permalink
remove targets containing headers only file
Browse files Browse the repository at this point in the history
Summary:
Some versions of compilers, linkers and cmake have issues with these targets
(eg. in OSX)

Reviewed By: siyengar

Differential Revision: D15196667

fbshipit-source-id: 5f955cbb1bcf12e67db37968131d9dccf5684bc9
  • Loading branch information
Udip Pant authored and facebook-github-bot committed May 3, 2019
1 parent 4ed2963 commit cac8669
Show file tree
Hide file tree
Showing 19 changed files with 1 addition and 233 deletions.
2 changes: 0 additions & 2 deletions quic/api/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ add_dependencies(
mvfst_exception
mvfst_flowcontrol
mvfst_happyeyeballs
mvfst_logging
mvfst_looper
mvfst_loss
mvfst_state_functions
Expand All @@ -59,7 +58,6 @@ target_link_libraries(
mvfst_exception
mvfst_flowcontrol
mvfst_happyeyeballs
mvfst_logging
mvfst_looper
mvfst_loss
mvfst_state_functions
Expand Down
40 changes: 0 additions & 40 deletions quic/api/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,47 +7,12 @@ if(NOT BUILD_TESTS)
return()
endif()

add_library(mvfst_mock_socket STATIC
MockQuicSocket.h
MockQuicStats.h
Mocks.h
)

target_include_directories(
mvfst_mock_socket PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
)

add_dependencies(
mvfst_mock_socket
mvfst_exception
mvfst_transport
mvfst_codec_types
mvfst_server
mvfst_state_machine
mvfst_state_stats_callback
)

target_link_libraries(
mvfst_mock_socket PUBLIC
Folly::folly
mvfst_exception
mvfst_transport
mvfst_codec_types
mvfst_server
mvfst_state_machine
mvfst_state_stats_callback
${LIBGMOCK_LIBRARIES}
)

quic_add_test(TARGET QuicTransportTest
SOURCES
QuicTransportTest.cpp
DEPENDS
Folly::folly
mvfst_transport
mvfst_mock_socket
mvfst_mock_state
mvfst_server
mvfst_state_stream_functions
mvfst_test_utils
Expand All @@ -60,8 +25,6 @@ quic_add_test(TARGET QuicTransportBaseTest
DEPENDS
Folly::folly
mvfst_transport
mvfst_mock_socket
mvfst_mock_state
mvfst_codec_types
mvfst_test_utils
mvfst_state_stream_functions
Expand All @@ -75,8 +38,6 @@ quic_add_test(TARGET QuicTransportFunctionsTest
DEPENDS
Folly::folly
mvfst_transport
mvfst_mock_socket
mvfst_mock_state
mvfst_test_utils
mvfst_server
${LIBGTEST_LIBRARY}
Expand All @@ -90,7 +51,6 @@ quic_add_test(TARGET QuicPacketSchedulerTest
mvfst_client
mvfst_codec_pktbuilder
mvfst_transport
mvfst_mock_socket
mvfst_test_utils
mvfst_server
${LIBGTEST_LIBRARY}
Expand Down
2 changes: 0 additions & 2 deletions quic/client/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ quic_add_test(TARGET QuicClientTransportTest
mvfst_codec_types
mvfst_echohandler
mvfst_handshake
mvfst_mock_socket
mvfst_mock_state
mvfst_server
mvfst_test_utils
mvfst_transport
Expand Down
2 changes: 0 additions & 2 deletions quic/codec/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ add_dependencies(
mvfst_codec_pktbuilder
mvfst_exception
mvfst_handshake
mvfst_state_ack_states
)

target_link_libraries(
Expand All @@ -205,7 +204,6 @@ target_link_libraries(
mvfst_codec_types
mvfst_exception
mvfst_handshake
mvfst_state_ack_states
)

file(
Expand Down
3 changes: 0 additions & 3 deletions quic/common/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ add_dependencies(
mvfst_codec_types
mvfst_handshake
mvfst_server
mvfst_state_ack_states
mvfst_state_machine
mvfst_transport
)
Expand All @@ -46,7 +45,6 @@ target_link_libraries(
mvfst_codec_types
mvfst_handshake
mvfst_server
mvfst_state_ack_states
mvfst_state_machine
mvfst_transport
PRIVATE
Expand All @@ -68,7 +66,6 @@ quic_add_test(TARGET QuicCommonUtilTest SOURCES
mvfst_looper
mvfst_transport
mvfst_server
mvfst_state_ack_states
mvfst_state_machine
mvfst_test_utils
${BOOST_LIBRARIES}
Expand Down
2 changes: 0 additions & 2 deletions quic/congestion_control/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ add_dependencies(
mvfst_cc_algo
mvfst_constants
mvfst_exception
mvfst_logging
mvfst_state_machine
mvfst_state_functions
)
Expand All @@ -39,7 +38,6 @@ target_link_libraries(
fizz::fizz
mvfst_constants
mvfst_exception
mvfst_logging
mvfst_state_machine
mvfst_state_functions
)
Expand Down
2 changes: 0 additions & 2 deletions quic/flowcontrol/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ add_dependencies(
mvfst_constants
mvfst_exception
mvfst_codec_types
mvfst_logging
mvfst_state_machine
)

Expand All @@ -35,7 +34,6 @@ target_link_libraries(
mvfst_codec_types
mvfst_constants
mvfst_exception
mvfst_logging
mvfst_state_machine
)

Expand Down
1 change: 0 additions & 1 deletion quic/flowcontrol/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ quic_add_test(TARGET QuicFlowControlTest
Folly::folly
mvfst_client
mvfst_flowcontrol
mvfst_mock_socket
mvfst_test_utils
${LIBGTEST_LIBRARY}
)
1 change: 0 additions & 1 deletion quic/handshake/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ target_include_directories(
target_link_libraries(
quic_mock_handshake PUBLIC
Folly::folly
mvfst_state_stats_callback
${LIBGMOCK_LIBRARIES}
${LIBGTEST_LIBRARY}
)
Expand Down
2 changes: 0 additions & 2 deletions quic/happyeyeballs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,13 @@ target_compile_options(

add_dependencies(
mvfst_happyeyeballs
mvfst_logging
mvfst_state_machine
)

target_link_libraries(
mvfst_happyeyeballs PUBLIC
Folly::folly
fizz::fizz
mvfst_logging
mvfst_state_machine
)

Expand Down
36 changes: 0 additions & 36 deletions quic/logging/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,6 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

add_library(
mvfst_logging STATIC
QuicLogger.h
)

target_include_directories(
mvfst_logging PUBLIC
$<BUILD_INTERFACE:${QUIC_FBCODE_ROOT}>
$<INSTALL_INTERFACE:include/>
)

target_compile_options(
mvfst_logging
PRIVATE
${_QUIC_COMMON_COMPILE_OPTIONS}
)

add_dependencies(
mvfst_logging
mvfst_codec_types
mvfst_state_machine
)

target_link_libraries(
mvfst_logging PUBLIC
Folly::folly
mvfst_codec_types
mvfst_state_machine
)

file(
GLOB_RECURSE QUIC_API_HEADERS_TOINSTALL
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
Expand All @@ -44,10 +14,4 @@ foreach(header ${QUIC_API_HEADERS_TOINSTALL})
install(FILES ${header} DESTINATION include/quic/logging/${header_dir})
endforeach()

install(
TARGETS mvfst_logging
EXPORT mvfst-exports
DESTINATION lib
)

add_subdirectory(test)
2 changes: 1 addition & 1 deletion quic/logging/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ quic_add_test(TARGET MacroTest
QuicLoggingMacroTest.cpp
DEPENDS
Folly::folly
mvfst_logging
${LIBGTEST_LIBRARY}
mvfst_state_functions
)
2 changes: 0 additions & 2 deletions quic/loss/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ add_dependencies(
mvfst_constants
mvfst_exception
mvfst_flowcontrol
mvfst_logging
mvfst_state_functions
mvfst_state_machine
mvfst_state_simple_frame_functions
Expand All @@ -39,7 +38,6 @@ target_link_libraries(
mvfst_constants
mvfst_exception
mvfst_flowcontrol
mvfst_logging
mvfst_state_functions
mvfst_state_machine
mvfst_state_simple_frame_functions
Expand Down
2 changes: 0 additions & 2 deletions quic/loss/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ quic_add_test(TARGET QuicLossFunctionsTest
mvfst_codec_types
mvfst_client
mvfst_loss
mvfst_mock_socket
mvfst_mock_state
mvfst_server
mvfst_test_utils
mvfst_transport
Expand Down
1 change: 0 additions & 1 deletion quic/samples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ target_link_libraries(
mvfst_echohandler PUBLIC
Folly::folly
fizz::fizz
mvfst_logging
mvfst_transport
mvfst_client
mvfst_test_utils
Expand Down
2 changes: 0 additions & 2 deletions quic/server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ add_dependencies(
mvfst_codec
mvfst_codec_types
mvfst_handshake
mvfst_state_stats_callback
mvfst_transport
)

Expand All @@ -46,7 +45,6 @@ target_link_libraries(
mvfst_codec
mvfst_codec_types
mvfst_handshake
mvfst_state_stats_callback
mvfst_transport
)

Expand Down
2 changes: 0 additions & 2 deletions quic/server/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ quic_add_test(TARGET QuicServerTest
mvfst_codec
mvfst_codec_types
mvfst_echohandler
mvfst_mock_socket
mvfst_server
mvfst_test_utils
mvfst_transport
Expand All @@ -31,7 +30,6 @@ quic_add_test(TARGET QuicServerTransportTest
mvfst_codec_pktbuilder
mvfst_codec_types
mvfst_handshake
mvfst_mock_socket
mvfst_server
mvfst_state_stream_functions
mvfst_test_utils
Expand Down
Loading

0 comments on commit cac8669

Please sign in to comment.