forked from kodi-pvr/pvr.mythtv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
75 lines (62 loc) · 2.38 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
project(pvr.mythtv)
cmake_minimum_required(VERSION 2.8.12)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR})
enable_language(CXX)
enable_language(C)
find_package(kodi REQUIRED)
find_package(kodiplatform REQUIRED)
find_package(platform REQUIRED)
include_directories(${kodiplatform_INCLUDE_DIRS}
${platform_INCLUDE_DIRS}
${KODI_INCLUDE_DIR}
${PROJECT_SOURCE_DIR}/lib/cppmyth/src)
add_definitions(-DUSE_DEMUX -D__STDC_FORMAT_MACROS)
if(NOT WIN32)
add_options(ALL_LANGUAGES ALL_BUILDS "-fPIC -Wall")
endif()
set(MYTHTV_SOURCES src/avinfo.cpp
src/categories.cpp
src/demuxer/ES_AAC.cpp
src/demuxer/ES_MPEGAudio.cpp
src/demuxer/bitstream.cpp
src/demuxer/ES_Teletext.cpp
src/demuxer/debug.cpp
src/demuxer/ES_Subtitle.cpp
src/demuxer/ES_h264.cpp
src/demuxer/ES_AC3.cpp
src/demuxer/elementaryStream.cpp
src/demuxer/ES_MPEGVideo.cpp
src/demuxer/tsDemuxer.cpp
src/demux.cpp
src/guidialogbase.cpp
src/guidialogyesno.cpp
src/pvrclient-mythtv.cpp
src/cppmyth/MythScheduleManager.cpp
src/cppmyth/MythScheduleHelperNoHelper.cpp
src/cppmyth/MythScheduleHelper75.cpp
src/cppmyth/MythScheduleHelper76.cpp
src/cppmyth/MythScheduleHelper85.cpp
src/cppmyth/MythEPGInfo.cpp
src/cppmyth/MythRecordingRule.cpp
src/cppmyth/MythProgramInfo.cpp
src/cppmyth/MythChannel.cpp
src/client.cpp
src/fileOps.cpp)
add_subdirectory(lib/cppmyth)
set(DEPLIBS ${platform_LIBRARIES} cppmyth)
if(WIN32)
list(APPEND DEPLIBS ws2_32)
else()
list(APPEND DEPLIBS m)
endif()
if(NOT WIN32 AND (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX))
if(HAS_BUILTIN_SYNC_ADD_AND_FETCH)
add_options(ALL_LANGUAGES ALL_BUILDS "-DHAS_BUILTIN_SYNC_ADD_AND_FETCH")
endif()
if(HAS_BUILTIN_SYNC_SUB_AND_FETCH)
add_options(ALL_LANGUAGES ALL_BUILDS "-DHAS_BUILTIN_SYNC_SUB_AND_FETCH")
endif()
endif()
set(BUILD_SHARED_LIBS ON)
build_addon(pvr.mythtv MYTHTV DEPLIBS)
include(CPack)