-
Notifications
You must be signed in to change notification settings - Fork 92
/
CMakeLists.txt
157 lines (138 loc) · 6.13 KB
/
CMakeLists.txt
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
cmake_minimum_required(VERSION 3.5)
project(pvr.hts)
find_package(Kodi REQUIRED)
set(CMAKE_CXX_STANDARD 17)
include_directories(${KODI_INCLUDE_DIR}/.. # Hack way with "/..", need bigger Kodi cmake rework to match right include ways
${PROJECT_SOURCE_DIR}/lib)
# Sources and headers
set(HTS_SOURCES src/addon.h
src/addon.cpp
src/Tvheadend.cpp
src/Tvheadend.h)
set(HTS_SOURCES_AAC
src/aac/BitStream.cpp
src/aac/BitStream.h
src/aac/Decoder.cpp
src/aac/Decoder.h
src/aac/Profile.h
src/aac/SampleFrequency.h)
set(HTS_SOURCES_AAC_ELEMENTS
src/aac/elements/CCE.cpp
src/aac/elements/CCE.h
src/aac/elements/CPE.cpp
src/aac/elements/CPE.h
src/aac/elements/DSE.cpp
src/aac/elements/DSE.h
src/aac/elements/FIL.cpp
src/aac/elements/FIL.h
src/aac/elements/ICS.cpp
src/aac/elements/ICS.h
src/aac/elements/ICSInfo.cpp
src/aac/elements/ICSInfo.h
src/aac/elements/LFE.cpp
src/aac/elements/LFE.h
src/aac/elements/PCE.cpp
src/aac/elements/PCE.h
src/aac/elements/SCE.cpp
src/aac/elements/SCE.h)
set(HTS_SOURCES_AAC_HUFFMAN
src/aac/huffman/Codebooks.h
src/aac/huffman/Decoder.cpp
src/aac/huffman/Decoder.h)
set(HTS_SOURCES_TVHEADEND
src/tvheadend/AddonSettings.cpp
src/tvheadend/AddonSettings.h
src/tvheadend/AutoRecordings.cpp
src/tvheadend/AutoRecordings.h
src/tvheadend/ChannelTuningPredictor.h
src/tvheadend/ChannelTuningPredictor.cpp
src/tvheadend/CustomTimerProperties.h
src/tvheadend/CustomTimerProperties.cpp
src/tvheadend/HTSPConnection.h
src/tvheadend/HTSPConnection.cpp
src/tvheadend/HTSPDemuxer.h
src/tvheadend/HTSPDemuxer.cpp
src/tvheadend/HTSPMessage.h
src/tvheadend/HTSPTypes.h
src/tvheadend/HTSPVFS.h
src/tvheadend/HTSPVFS.cpp
src/tvheadend/InstanceSettings.h
src/tvheadend/InstanceSettings.cpp
src/tvheadend/IHTSPConnectionListener.h
src/tvheadend/IHTSPDemuxPacketHandler.h
src/tvheadend/Profile.h
src/tvheadend/Subscription.cpp
src/tvheadend/Subscription.h
src/tvheadend/TimeRecordings.cpp
src/tvheadend/TimeRecordings.h)
set(HTS_SOURCES_TVHEADEND_ENTITY
src/tvheadend/entity/AutoRecording.h
src/tvheadend/entity/AutoRecording.cpp
src/tvheadend/entity/Channel.h
src/tvheadend/entity/Entity.h
src/tvheadend/entity/Event.h
src/tvheadend/entity/Event.cpp
src/tvheadend/entity/Provider.h
src/tvheadend/entity/Recording.h
src/tvheadend/entity/RecordingBase.h
src/tvheadend/entity/RecordingBase.cpp
src/tvheadend/entity/SeriesRecordingBase.h
src/tvheadend/entity/SeriesRecordingBase.cpp
src/tvheadend/entity/Schedule.h
src/tvheadend/entity/Schedule.cpp
src/tvheadend/entity/Tag.h
src/tvheadend/entity/Tag.cpp
src/tvheadend/entity/TimeRecording.h
src/tvheadend/entity/TimeRecording.cpp)
set(HTS_SOURCES_TVHEADEND_STATUS
src/tvheadend/status/DescrambleInfo.h
src/tvheadend/status/DescrambleInfo.cpp
src/tvheadend/status/Quality.h
src/tvheadend/status/QueueStatus.h
src/tvheadend/status/SourceInfo.h
src/tvheadend/status/TimeshiftStatus.h)
set(HTS_SOURCES_TVHEADEND_UTILITIES
src/tvheadend/utilities/Utilities.h
src/tvheadend/utilities/Logger.h
src/tvheadend/utilities/Logger.cpp
src/tvheadend/utilities/LifetimeMapper.h
src/tvheadend/utilities/AsyncState.cpp
src/tvheadend/utilities/AsyncState.h
src/tvheadend/utilities/RDSExtractor.h
src/tvheadend/utilities/RDSExtractor.cpp
src/tvheadend/utilities/SyncedBuffer.h
src/tvheadend/utilities/TCPSocket.h
src/tvheadend/utilities/TCPSocket.cpp
src/tvheadend/utilities/SettingsMigration.h
src/tvheadend/utilities/SettingsMigration.cpp)
source_group("Source Files" FILES ${HTS_SOURCES})
source_group("Source Files\\aac" FILES ${HTS_SOURCES_AAC})
source_group("Source Files\\aac\\elements" FILES ${HTS_SOURCES_AAC_ELEMENTS})
source_group("Source Files\\aac\\huffman" FILES ${HTS_SOURCES_AAC_HUFFMAN})
source_group("Source Files\\tvheadend" FILES ${HTS_SOURCES_TVHEADEND})
source_group("Source Files\\tvheadend\\entity" FILES ${HTS_SOURCES_TVHEADEND_ENTITY})
source_group("Source Files\\tvheadend\\status" FILES ${HTS_SOURCES_TVHEADEND_STATUS})
source_group("Source Files\\tvheadend\\utilities" FILES ${HTS_SOURCES_TVHEADEND_UTILITIES})
# Resource files
set(HTS_RESOURCES
README.md
pvr.hts/addon.xml
pvr.hts/changelog.txt
pvr.hts/icon.png
pvr.hts/resources/settings.xml
pvr.hts/resources/language/resource.language.en_gb/strings.po)
source_group("Resource Files" FILES ${HTS_RESOURCES})
# Combine the file lists
list(APPEND HTS_SOURCES
${HTS_SOURCES_AAC}
${HTS_SOURCES_AAC_ELEMENTS}
${HTS_SOURCES_AAC_HUFFMAN}
${HTS_SOURCES_TVHEADEND}
${HTS_SOURCES_TVHEADEND_ENTITY}
${HTS_SOURCES_TVHEADEND_STATUS}
${HTS_SOURCES_TVHEADEND_UTILITIES})
add_subdirectory(lib/libhts
lib/kissnet)
set(DEPLIBS hts)
build_addon(pvr.hts HTS DEPLIBS)
include(CPack)