Skip to content
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

[Matrix] update CMakeLists.txt to 3.5, change header include and increase version to 4.1.1 #107

Merged
merged 6 commits into from
Aug 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 2 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
cmake_minimum_required(VERSION 3.5)
project(pvr.mediaportal.tvserver)

cmake_minimum_required(VERSION 2.6)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR})

enable_language(CXX)

find_package(Kodi REQUIRED)
find_package(p8-platform REQUIRED)
find_package(TinyXML REQUIRED)
Expand All @@ -22,7 +19,7 @@ set(LIVE555_DEFINES -DLIVE555 -D_WINSOCK_DEPRECATED_NO_WARNINGS -DSOCKLEN_T=sock

include_directories(${p8-platform_INCLUDE_DIRS}
${TINYXML_INCLUDE_DIR}
${KODI_INCLUDE_DIR}
${KODI_INCLUDE_DIR}/.. # Hack way with "/..", need bigger Kodi cmake rework to match right include ways
${PROJECT_SOURCE_DIR}/src
${PROJECT_BINARY_DIR}
${LIVE555_INCLUDE_DIR}
Expand Down
23 changes: 10 additions & 13 deletions FindTinyXML.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,19 @@
# TINYXML_LIBRARIES - List of libraries when using TinyXML.
#

find_package(PkgConfig)
if(PKG_CONFIG_FOUND)
pkg_check_modules (TINYXML tinyxml)
list(APPEND TINYXML_INCLUDE_DIRS ${TINYXML_INCLUDEDIR})
pkg_check_modules(PC_TINYXML tinyxml QUIET)
endif()
if(NOT TINYXML_FOUND)
find_path( TINYXML_INCLUDE_DIRS "tinyxml.h"
PATH_SUFFIXES "tinyxml" )

find_library( TINYXML_LIBRARIES
NAMES "tinyxml"
PATH_SUFFIXES "tinyxml" )
endif()
find_path(TINYXML_INCLUDE_DIRS NAMES tinyxml.h
PATHS ${PC_TINYXML_INCLUDEDIR}
PATH_SUFFIXES tinyxml)
find_library(TINYXML_LIBRARIES NAMES tinyxml
PATHS ${PC_TINYXML_LIBDIR}
PATH_SUFFIXES tinyxml)

# handle the QUIETLY and REQUIRED arguments and set TINYXML_FOUND to TRUE if
# all listed variables are TRUE
include( "FindPackageHandleStandardArgs" )
find_package_handle_standard_args(TinyXML DEFAULT_MSG TINYXML_INCLUDE_DIRS TINYXML_LIBRARIES )
include("FindPackageHandleStandardArgs")
find_package_handle_standard_args(TinyXML REQUIRED_VARS TINYXML_INCLUDE_DIRS TINYXML_LIBRARIES)

mark_as_advanced(TINYXML_INCLUDE_DIRS TINYXML_LIBRARIES)
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[![Build Status](https://travis-ci.org/kodi-pvr/pvr.mediaportal.tvserver.svg?branch=master)](https://travis-ci.org/kodi-pvr/pvr.mediaportal.tvserver)
[![Build Status](https://travis-ci.org/kodi-pvr/pvr.mediaportal.tvserver.svg?branch=Matrix)](https://travis-ci.org/kodi-pvr/pvr.mediaportal.tvserver/branches)
[![Build Status](https://ci.appveyor.com/api/projects/status/github/kodi-pvr/pvr.mediaportal.tvserver?branch=Matrix&svg=true)](https://ci.appveyor.com/project/kodi-pvr/pvr-mediaportal.tvserver?branch=Matrix)
[![Coverity Scan Build Status](https://scan.coverity.com/projects/5120/badge.svg)](https://scan.coverity.com/projects/5120)

# MediaPortal TVServer PVR
MediaPortal TVServer PVR client addon for [Kodi] (http://kodi.tv)
MediaPortal TVServer PVR client addon for [Kodi] (https://kodi.tv)

## Build instructions

Expand All @@ -16,5 +17,5 @@ MediaPortal TVServer PVR client addon for [Kodi] (http://kodi.tv)

##### Useful links

* [Kodi's PVR user support] (http://forum.kodi.tv/forumdisplay.php?fid=171)
* [Kodi's PVR development support] (http://forum.kodi.tv/forumdisplay.php?fid=136)
* [Kodi's PVR user support] (https://forum.kodi.tv/forumdisplay.php?fid=171)
* [Kodi's PVR development support] (https://forum.kodi.tv/forumdisplay.php?fid=136)
33 changes: 33 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
version: BuildNr.{build}

image: Visual Studio 2017

shallow_clone: true

clone_folder: c:\projects\pvr.mediaportal.tvserver

environment:
app_id: pvr.mediaportal.tvserver

matrix:
- GENERATOR: "Visual Studio 15"
CONFIG: Release
- GENERATOR: "Visual Studio 15 Win64"
CONFIG: Release
- GENERATOR: "Visual Studio 15 Win64"
CONFIG: Release
WINSTORE: -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION="10.0.17763.0"
- GENERATOR: "Visual Studio 15 ARM"
CONFIG: Release
WINSTORE: -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION="10.0.17763.0"

build_script:
- cd ..
- git clone --branch master --depth=1 https://github.com/xbmc/xbmc.git
- cd %app_id%
- mkdir build
- cd build
- mkdir -p definition\%app_id%
- echo %app_id% %APPVEYOR_BUILD_FOLDER% %APPVEYOR_REPO_COMMIT% > definition\%app_id%\%app_id%.txt
- cmake -T host=x64 -G "%GENERATOR%" %WINSTORE% -DADDONS_TO_BUILD=%app_id% -DCMAKE_BUILD_TYPE=%CONFIG% -DADDONS_DEFINITION_DIR=%APPVEYOR_BUILD_FOLDER%/build/definition -DADDON_SRC_PREFIX=../.. -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/cmake/addons
- cmake --build . --config %CONFIG% --target %app_id%
2 changes: 1 addition & 1 deletion pvr.mediaportal.tvserver/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.mediaportal.tvserver"
version="4.1.0"
version="4.1.1"
name="MediaPortal PVR Client"
provider-name="Marcel Groothuis">
<requires>@ADDON_DEPENDS@</requires>
Expand Down
5 changes: 5 additions & 0 deletions pvr.mediaportal.tvserver/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v4.1.1:
- Update: Build system version
- Fixed: Package check for JsonCpp
- Added: AppVeyor for Windows related build tests

v4.1.0
- Update to GUI addon API v5.14.0

Expand Down
2 changes: 1 addition & 1 deletion src/GUIDialogRecordSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include "client.h"
#include "GUIDialogRecordSettings.h"
#include "libKODI_guilib.h"
#include "kodi/libKODI_guilib.h"
#include "timers.h"
#include "utils.h"
#include "DateTime.h"
Expand Down
2 changes: 1 addition & 1 deletion src/Socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#include "libXBMC_addon.h"
#include "kodi/libXBMC_addon.h"
#include "utils.h"
#include <string>
#include "p8-platform/os.h"
Expand Down
2 changes: 1 addition & 1 deletion src/channels.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*
*/

#include "libXBMC_pvr.h"
#include "kodi/libXBMC_pvr.h"
#include <string>

namespace TvDatabase
Expand Down
2 changes: 1 addition & 1 deletion src/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include <p8-platform/util/StringUtils.h>
#include "client.h"
#include "xbmc_pvr_dll.h"
#include "kodi/xbmc_pvr_dll.h"
#include "pvrclient-mediaportal.h"
#include "utils.h"
#include "timers.h"
Expand Down
6 changes: 3 additions & 3 deletions src/client.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
#ifndef CLIENT_H
#define CLIENT_H

#include "libXBMC_addon.h"
#include "libXBMC_pvr.h"
#include "libKODI_guilib.h"
#include "kodi/libXBMC_addon.h"
#include "kodi/libXBMC_pvr.h"
#include "kodi/libKODI_guilib.h"
#include "timers.h"

enum eStreamingMethod
Expand Down
4 changes: 2 additions & 2 deletions src/epg.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

#include <stdlib.h>
#include <string>
#include "libXBMC_addon.h"
#include "libXBMC_pvr.h"
#include "kodi/libXBMC_addon.h"
#include "kodi/libXBMC_pvr.h"
#include "GenreTable.h"
#include "DateTime.h"

Expand Down
2 changes: 1 addition & 1 deletion src/pvrclient-mediaportal.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <vector>

/* Master defines for client control */
#include "xbmc_pvr_types.h"
#include "kodi/xbmc_pvr_types.h"

/* Local includes */
#include "Socket.h"
Expand Down
4 changes: 2 additions & 2 deletions src/recordings.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/

#include <stdlib.h>
#include "libXBMC_addon.h"
#include "libXBMC_pvr.h"
#include "kodi/libXBMC_addon.h"
#include "kodi/libXBMC_pvr.h"
#include "Cards.h"
#include "GenreTable.h"
#include "DateTime.h"
Expand Down
2 changes: 1 addition & 1 deletion src/timers.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#ifndef __TIMERS_H
#define __TIMERS_H

#include "libXBMC_pvr.h"
#include "kodi/libXBMC_pvr.h"
#include <stdlib.h>
#include <string>
#include "DateTime.h"
Expand Down