summaryrefslogtreecommitdiffstats
path: root/libtransport/src/protocols/CMakeLists.txt
blob: 51879a9ed8e87559a87d4bd036682df115d4799a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Copyright (c) 2021 Cisco and/or its affiliates.
# Licensed 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.

list(APPEND HEADER_FILES
  ${CMAKE_CURRENT_SOURCE_DIR}/indexer.h
  ${CMAKE_CURRENT_SOURCE_DIR}/incremental_indexer_bytestream.h
  ${CMAKE_CURRENT_SOURCE_DIR}/manifest_incremental_indexer_bytestream.h
  ${CMAKE_CURRENT_SOURCE_DIR}/index_manager_bytestream.h
  ${CMAKE_CURRENT_SOURCE_DIR}/reassembly.h
  ${CMAKE_CURRENT_SOURCE_DIR}/datagram_reassembly.h
  ${CMAKE_CURRENT_SOURCE_DIR}/byte_stream_reassembly.h
  ${CMAKE_CURRENT_SOURCE_DIR}/congestion_window_protocol.h
  ${CMAKE_CURRENT_SOURCE_DIR}/rate_estimation.h
  ${CMAKE_CURRENT_SOURCE_DIR}/transport_protocol.h
  ${CMAKE_CURRENT_SOURCE_DIR}/production_protocol.h
  ${CMAKE_CURRENT_SOURCE_DIR}/prod_protocol_bytestream.h
  ${CMAKE_CURRENT_SOURCE_DIR}/prod_protocol_rtc.h
  ${CMAKE_CURRENT_SOURCE_DIR}/raaqm.h
  ${CMAKE_CURRENT_SOURCE_DIR}/raaqm_data_path.h
  ${CMAKE_CURRENT_SOURCE_DIR}/cbr.h
  ${CMAKE_CURRENT_SOURCE_DIR}/errors.h
  ${CMAKE_CURRENT_SOURCE_DIR}/data_processing_events.h
  ${CMAKE_CURRENT_SOURCE_DIR}/fec_base.h
)

list(APPEND SOURCE_FILES
  ${CMAKE_CURRENT_SOURCE_DIR}/indexer.cc
  ${CMAKE_CURRENT_SOURCE_DIR}/incremental_indexer_bytestream.cc
  ${CMAKE_CURRENT_SOURCE_DIR}/manifest_incremental_indexer_bytestream.cc
  ${CMAKE_CURRENT_SOURCE_DIR}/index_manager_bytestream.cc
  ${CMAKE_CURRENT_SOURCE_DIR}/reassembly.cc
  ${CMAKE_CURRENT_SOURCE_DIR}/datagram_reassembly.cc
  ${CMAKE_CURRENT_SOURCE_DIR}/byte_stream_reassembly.cc
  ${CMAKE_CURRENT_SOURCE_DIR}/transport_protocol.cc
  ${CMAKE_CURRENT_SOURCE_DIR}/production_protocol.cc
  ${CMAKE_CURRENT_SOURCE_DIR}/prod_protocol_bytestream.cc
  ${CMAKE_CURRENT_SOURCE_DIR}/prod_protocol_rtc.cc
  ${CMAKE_CURRENT_SOURCE_DIR}/raaqm.cc
  ${CMAKE_CURRENT_SOURCE_DIR}/rate_estimation.cc
  ${CMAKE_CURRENT_SOURCE_DIR}/raaqm_data_path.cc
  ${CMAKE_CURRENT_SOURCE_DIR}/cbr.cc
  ${CMAKE_CURRENT_SOURCE_DIR}/errors.cc
)

if (${CMAKE_SYSTEM_NAME} MATCHES Darwin OR ${CMAKE_SYSTEM_NAME} MATCHES Linux)
  set(RAAQM_CONFIG_INSTALL_PREFIX
    ${CMAKE_INSTALL_FULL_SYSCONFDIR}/hicn
  )
else()
  set(RAAQM_CONFIG_INSTALL_PREFIX
    ${CMAKE_INSTALL_PREFIX}/etc/hicn
  )
endif()

set(raaqm_config_path
  ${RAAQM_CONFIG_INSTALL_PREFIX}/consumer.conf
  PARENT_SCOPE
)

set(TRANSPORT_CONFIG
  ${CMAKE_CURRENT_SOURCE_DIR}/consumer.conf
)

install(
  FILES ${TRANSPORT_CONFIG}
  DESTINATION ${RAAQM_CONFIG_INSTALL_PREFIX}
  COMPONENT ${LIBTRANSPORT_COMPONENT}
)

add_subdirectory(rtc)
add_subdirectory(fec)

set(SOURCE_FILES ${SOURCE_FILES} PARENT_SCOPE)
set(HEADER_FILES ${HEADER_FILES} PARENT_SCOPE)