forked from kodi-pvr/pvr.hts
-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
105 lines (87 loc) · 3.61 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
project(pvr.hts)
cmake_minimum_required(VERSION 2.6)
enable_language(CXX)
find_package(Kodi REQUIRED)
find_package(kodiplatform REQUIRED)
find_package(p8-platform REQUIRED)
include_directories(${kodiplatform_INCLUDE_DIRS}
${p8-platform_INCLUDE_DIRS}
${KODI_INCLUDE_DIR}
${PROJECT_SOURCE_DIR}/lib)
add_definitions(-DUSE_DEMUX)
# Sources and headers
set(HTS_SOURCES src/client.h
src/client.cpp
src/HTSPConnection.cpp
src/HTSPDemuxer.cpp
src/HTSPTypes.h
src/HTSPVFS.cpp
src/Tvheadend.cpp
src/Tvheadend.h
src/TimeRecordings.cpp
src/TimeRecordings.h
src/AutoRecordings.cpp
src/AutoRecordings.h
src/xbmc_codec_descriptor.hpp)
set(HTS_SOURCES_TVHEADEND
src/tvheadend/Profile.h
src/tvheadend/Settings.cpp
src/tvheadend/Settings.h
src/tvheadend/ChannelTuningPredictor.h
src/tvheadend/ChannelTuningPredictor.cpp
src/tvheadend/Subscription.cpp
src/tvheadend/Subscription.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/Recording.h
src/tvheadend/entity/RecordingBase.h
src/tvheadend/entity/RecordingBase.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/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/AsyncState.cpp
src/tvheadend/utilities/AsyncState.h)
source_group("Source Files" FILES ${HTS_SOURCES})
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_TVHEADEND}
${HTS_SOURCES_TVHEADEND_ENTITY}
${HTS_SOURCES_TVHEADEND_STATUS}
${HTS_SOURCES_TVHEADEND_UTILITIES}
${HTS_RESOURCES})
add_subdirectory(lib/libhts)
set(DEPLIBS ${p8-platform_LIBRARIES} hts)
if(WIN32)
list(APPEND DEPLIBS ws2_32)
endif()
build_addon(pvr.hts HTS DEPLIBS)
include(CPack)