-
Notifications
You must be signed in to change notification settings - Fork 849
cmake builds with quiche/quic support #9833
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,35 @@ | ||||||||||||||||||
| ####################### | ||||||||||||||||||
| # | ||||||||||||||||||
| # Licensed to the Apache Software Foundation (ASF) under one or more contributor license | ||||||||||||||||||
| # agreements. See the NOTICE file distributed with this work for additional information regarding | ||||||||||||||||||
| # copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 | ||||||||||||||||||
| # (the "License"); you may not use this file except in compliance with the License. You may obtain | ||||||||||||||||||
| # a copy of the License at | ||||||||||||||||||
| # | ||||||||||||||||||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||||||||||||||||||
| # | ||||||||||||||||||
| # Unless required by applicable law or agreed to in writing, software distributed under the License | ||||||||||||||||||
| # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||||||||||||||||||
| # or implied. See the License for the specific language governing permissions and limitations under | ||||||||||||||||||
| # the License. | ||||||||||||||||||
| # | ||||||||||||||||||
| ####################### | ||||||||||||||||||
|
|
||||||||||||||||||
| set(QUICHE_INSTALL_DIR /opt/quiche) | ||||||||||||||||||
|
|
||||||||||||||||||
| find_path(QUICHE_INCLUDE_DIR NAMES quiche.h HINTS ${QUICHE_INSTALL_DIR} PATH_SUFFIXES include) | ||||||||||||||||||
| find_library(QUICHE_LIBRARY NAMES quiche HINTS ${QUICHE_INSTALL_DIR} PATH_SUFFIXES lib) | ||||||||||||||||||
|
Comment on lines
+20
to
+21
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You don't need |
||||||||||||||||||
|
|
||||||||||||||||||
| INCLUDE(FindPackageHandleStandardArgs) | ||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||
| FIND_PACKAGE_HANDLE_STANDARD_ARGS(QUICHE DEFAULT_MSG QUICHE_LIBRARY QUICHE_INCLUDE_DIR) | ||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||
|
|
||||||||||||||||||
| if(QUICHE_FOUND) | ||||||||||||||||||
| set(QUICHE_LIBRARY_DIR ${QUICHE_INSTALL_DIR}/lib) | ||||||||||||||||||
| set(QUIC_LIBRARY_DIRS ${QUICHE_LIBRARY_DIR}) | ||||||||||||||||||
| set(QUIC_LIBRARIES ${QUICHE_LIBRARY} http3 quic) | ||||||||||||||||||
| set(QUIC_INCLUDE_DIRS ${QUICHE_INCLUDE_DIR} ${CMAKE_SOURCE_DIR}/iocore/net/quic) | ||||||||||||||||||
|
Comment on lines
+27
to
+30
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||
| set(TS_HAS_QUICHE 1) | ||||||||||||||||||
| set(TS_USE_QUIC 1) | ||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TS_USE_QUIC becomes 1 if the both Quiche and BoringSSL are available. |
||||||||||||||||||
| endif() | ||||||||||||||||||
|
|
||||||||||||||||||
| unset(QUICHE_INSTALL_DIR) | ||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,40 @@ | ||||||||||||||
| ####################### | ||||||||||||||
| # | ||||||||||||||
| # Licensed to the Apache Software Foundation (ASF) under one or more contributor license | ||||||||||||||
| # agreements. See the NOTICE file distributed with this work for additional information regarding | ||||||||||||||
| # copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 | ||||||||||||||
| # (the "License"); you may not use this file except in compliance with the License. You may obtain | ||||||||||||||
| # a copy of the License at | ||||||||||||||
| # | ||||||||||||||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||||||||||||||
| # | ||||||||||||||
| # Unless required by applicable law or agreed to in writing, software distributed under the License | ||||||||||||||
| # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||||||||||||||
| # or implied. See the License for the specific language governing permissions and limitations under | ||||||||||||||
| # the License. | ||||||||||||||
| # | ||||||||||||||
| ####################### | ||||||||||||||
|
|
||||||||||||||
| add_library(quic STATIC | ||||||||||||||
| QUICApplication.cc | ||||||||||||||
| QUICApplicationMap.cc | ||||||||||||||
| QUICConfig.cc | ||||||||||||||
| QUICContext.cc | ||||||||||||||
| QUICConnectionTable.cc | ||||||||||||||
| QUICGlobals.cc | ||||||||||||||
| QUICTypes.cc | ||||||||||||||
| QUICIntUtil.cc | ||||||||||||||
| QUICStream.cc | ||||||||||||||
| QUICStream_quiche.cc | ||||||||||||||
| QUICStreamManager.cc | ||||||||||||||
| QUICStreamManager_quiche.cc | ||||||||||||||
| QUICStreamAdapter.cc | ||||||||||||||
| QUICStreamVCAdapter.cc | ||||||||||||||
| ) | ||||||||||||||
|
|
||||||||||||||
| target_include_directories(quic PRIVATE | ||||||||||||||
| ${CMAKE_SOURCE_DIR}/iocore/net | ||||||||||||||
| ${CMAKE_SOURCE_DIR}/iocore/net/quic | ||||||||||||||
| ${CMAKE_SOURCE_DIR}/iocore/eventsystem | ||||||||||||||
|
Comment on lines
+36
to
+38
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||
| ${QUIC_INCLUDE_DIRS} | ||||||||||||||
| ) | ||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,47 @@ | ||||||||||||||||||
| ####################### | ||||||||||||||||||
| # | ||||||||||||||||||
| # Licensed to the Apache Software Foundation (ASF) under one or more contributor license | ||||||||||||||||||
| # agreements. See the NOTICE file distributed with this work for additional information regarding | ||||||||||||||||||
| # copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 | ||||||||||||||||||
| # (the "License"); you may not use this file except in compliance with the License. You may obtain | ||||||||||||||||||
| # a copy of the License at | ||||||||||||||||||
| # | ||||||||||||||||||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||||||||||||||||||
| # | ||||||||||||||||||
| # Unless required by applicable law or agreed to in writing, software distributed under the License | ||||||||||||||||||
| # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||||||||||||||||||
| # or implied. See the License for the specific language governing permissions and limitations under | ||||||||||||||||||
| # the License. | ||||||||||||||||||
| # | ||||||||||||||||||
| ####################### | ||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
| add_library(http3 STATIC | ||||||||||||||||||
| Http09App.cc | ||||||||||||||||||
| Http3.cc | ||||||||||||||||||
| Http3Config.cc | ||||||||||||||||||
| Http3App.cc | ||||||||||||||||||
| Http3Types.cc | ||||||||||||||||||
| Http3SessionAccept.cc | ||||||||||||||||||
| Http3Session.cc | ||||||||||||||||||
| Http3Transaction.cc | ||||||||||||||||||
| Http3DebugNames.cc | ||||||||||||||||||
| Http3Frame.cc | ||||||||||||||||||
| Http3FrameCollector.cc | ||||||||||||||||||
| Http3FrameDispatcher.cc | ||||||||||||||||||
| Http3HeaderFramer.cc | ||||||||||||||||||
| Http3DataFramer.cc | ||||||||||||||||||
| Http3HeaderVIOAdaptor.cc | ||||||||||||||||||
| Http3StreamDataVIOAdaptor.cc | ||||||||||||||||||
| QPACK.cc | ||||||||||||||||||
| ) | ||||||||||||||||||
|
|
||||||||||||||||||
| target_include_directories(http3 PRIVATE | ||||||||||||||||||
| ${CMAKE_SOURCE_DIR}/iocore/net | ||||||||||||||||||
| ${CMAKE_SOURCE_DIR}/iocore/net/quic | ||||||||||||||||||
| ${CMAKE_SOURCE_DIR}/iocore/eventsystem | ||||||||||||||||||
| ${CMAKE_SOURCE_DIR}/mgmt | ||||||||||||||||||
|
Comment on lines
+40
to
+43
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||
| ${IOCORE_INCLUDE_DIRS} | ||||||||||||||||||
| ${PROXY_INCLUDE_DIRS} | ||||||||||||||||||
| ${QUIC_INCLUDE_DIRS} | ||||||||||||||||||
| ) | ||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.