Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
103 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
language: cpp | ||
|
||
# | ||
# Define the build matrix | ||
# | ||
# Travis defaults to building on Ubuntu Precise when building on | ||
# Linux. We need Trusty in order to get up to date versions of | ||
# cmake and g++. | ||
# | ||
env: | ||
global: | ||
- app_id=inputstream.rtmp | ||
|
||
matrix: | ||
include: | ||
- os: linux | ||
dist: trusty | ||
sudo: required | ||
compiler: gcc | ||
- os: linux | ||
dist: trusty | ||
sudo: required | ||
compiler: clang | ||
- os: osx | ||
osx_image: xcode7.3 | ||
- os: osx | ||
osx_image: xcode6.1 | ||
|
||
# | ||
# Some of the OS X images don't have cmake, contrary to what people | ||
# on the Internet say | ||
# | ||
before_install: | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then which cmake || brew update ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then which cmake || brew install cmake ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew upgrade cmake || true; fi | ||
|
||
# | ||
# The addon source is automatically checked out in $TRAVIS_BUILD_DIR, | ||
# we'll put the Kodi source on the same level | ||
# | ||
before_script: | ||
- cd $TRAVIS_BUILD_DIR/.. | ||
- git clone --depth=1 https://github.com/xbmc/xbmc.git | ||
- cd ${app_id} && mkdir build && cd build | ||
- mkdir -p definition/${app_id} | ||
- echo ${app_id} $TRAVIS_BUILD_DIR $TRAVIS_COMMIT > definition/${app_id}/${app_id}.txt | ||
- cmake -DADDONS_TO_BUILD=${app_id} -DADDON_SRC_PREFIX=$TRAVIS_BUILD_DIR/.. -DADDONS_DEFINITION_DIR=$TRAVIS_BUILD_DIR/build/definition -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$TRAVIS_BUILD_DIR/../xbmc/addons -DPACKAGE_ZIP=1 $TRAVIS_BUILD_DIR/../xbmc/cmake/addons | ||
|
||
script: make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# inputstream.rtmp addon for Kodi | ||
|
||
This is a [Kodi](http://kodi.tv) input stream addon for RTMP. | ||
|
||
[![Build Status](https://travis-ci.org/notspiff/inputstream.rtmp.svg?branch=master)](https://travis-ci.org/notspiff/inputstream.rtmp) | ||
[![Build Status](https://ci.appveyor.com/api/projects/status/github/notspiff/inputstream.rtmp?svg=true)](https://ci.appveyor.com/project/notspiff/inputstream-rtmp) | ||
|
||
## Build instructions | ||
|
||
When building the addon you have to use the correct branch depending on which version of Kodi you're building against. | ||
For example, if you're building the `master` branch of Kodi you should checkout the `master` branch of this repository. | ||
Also make sure you follow this README from the branch in question. | ||
|
||
### Linux | ||
|
||
The following instructions assume you will have built Kodi already in the `kodi-build` directory | ||
suggested by the README. | ||
|
||
1. `git clone https://github.com/xbmc/xbmc.git` | ||
2. `git clone https://github.com/notspiff/inputstream.rtmp.git` | ||
3. `cd inputstream.rtmp && mkdir build && cd build` | ||
4. `cmake -DADDONS_TO_BUILD=inputstream.rtmp -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/kodi-build/addons -DPACKAGE_ZIP=1 ../../xbmc/cmake/addons` | ||
5. `make` | ||
|
||
The addon files will be placed in `../../xbmc/kodi-build/addons` so if you build Kodi from source and run it directly | ||
the addon will be available as a system addon. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
version: BuildNr.{build} | ||
|
||
image: Visual Studio 2015 | ||
|
||
shallow_clone: true | ||
|
||
clone_folder: c:\projects\inputstream.rtmp | ||
|
||
environment: | ||
app_id: inputstream.rtmp | ||
|
||
matrix: | ||
- GENERATOR: "Visual Studio 14" | ||
CONFIG: Release | ||
- GENERATOR: "Visual Studio 14 Win64" | ||
CONFIG: Release | ||
|
||
build_script: | ||
- cd .. | ||
- git clone --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%" -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% |