diff -Nru kodi-audioencoder-wav-2.0.0/appveyor.yml kodi-audioencoder-wav-2.0.2/appveyor.yml --- kodi-audioencoder-wav-2.0.0/appveyor.yml 1970-01-01 00:00:00.000000000 +0000 +++ kodi-audioencoder-wav-2.0.2/appveyor.yml 2014-05-17 10:40:22.000000000 +0000 @@ -0,0 +1,33 @@ +version: BuildNr.{build} + +image: Visual Studio 2015 + +shallow_clone: true + +clone_folder: c:\projects\audioencoder.wav + +environment: + app_id: audioencoder.wav + + matrix: + - GENERATOR: "Visual Studio 14" + CONFIG: Release + - GENERATOR: "Visual Studio 14 Win64" + CONFIG: Release + - GENERATOR: "Visual Studio 14 Win64" + CONFIG: Release + WINSTORE: -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION="10.0.16299.0" + - GENERATOR: "Visual Studio 14 ARM" + CONFIG: Release + WINSTORE: -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION="10.0.16299.0" + +build_script: + - cd .. + - git clone --branch Leia --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% diff -Nru kodi-audioencoder-wav-2.0.0/audioencoder.wav/addon.xml.in kodi-audioencoder-wav-2.0.2/audioencoder.wav/addon.xml.in --- kodi-audioencoder-wav-2.0.0/audioencoder.wav/addon.xml.in 2017-06-20 04:38:16.000000000 +0000 +++ kodi-audioencoder-wav-2.0.2/audioencoder.wav/addon.xml.in 2014-05-17 10:40:22.000000000 +0000 @@ -1,7 +1,7 @@ @ADDON_DEPENDS@ @@ -10,7 +10,7 @@ extension=".wav" library_@PLATFORM@="@LIBRARY_FILENAME@"/> - Wav Audio Encoder + Waveform Audio File Format Encoder WAV (Waveform Audio Format) is an uncompressed sound format. @PLATFORM@ diff -Nru kodi-audioencoder-wav-2.0.0/CMakeLists.txt kodi-audioencoder-wav-2.0.2/CMakeLists.txt --- kodi-audioencoder-wav-2.0.0/CMakeLists.txt 2017-06-20 04:38:16.000000000 +0000 +++ kodi-audioencoder-wav-2.0.2/CMakeLists.txt 2014-05-17 10:40:22.000000000 +0000 @@ -1,11 +1,8 @@ +cmake_minimum_required(VERSION 3.5) project(audioencoder.wav) -cmake_minimum_required(VERSION 2.6) - set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}) -enable_language(CXX) - find_package(Kodi REQUIRED) include_directories(${KODI_INCLUDE_DIR}/..) # Hack way with "/..", need bigger Kodi cmake rework to match right include ways (becomes done in future) diff -Nru kodi-audioencoder-wav-2.0.0/debian/changelog kodi-audioencoder-wav-2.0.2/debian/changelog --- kodi-audioencoder-wav-2.0.0/debian/changelog 2018-03-05 08:37:25.000000000 +0000 +++ kodi-audioencoder-wav-2.0.2/debian/changelog 2014-05-17 10:40:22.000000000 +0000 @@ -1,9 +1,7 @@ -kodi-audioencoder-wav (2.0.0-1~xenial) xenial; urgency=low +kodi-audioencoder-wav (2.0.2-1~xenial) xenial; urgency=low [ xbmc ] * autogenerated dummy changelog - [ wsnipex ] - * no upstream changelog available + -- dummy Sat, 17 May 2014 11:40:22 +0100 - -- wsnipex Mon, 05 Mar 2018 09:37:25 +0100 diff -Nru kodi-audioencoder-wav-2.0.0/debian/changelog.tmp kodi-audioencoder-wav-2.0.2/debian/changelog.tmp --- kodi-audioencoder-wav-2.0.0/debian/changelog.tmp 2018-03-05 08:37:11.000000000 +0000 +++ kodi-audioencoder-wav-2.0.2/debian/changelog.tmp 1970-01-01 00:00:00.000000000 +0000 @@ -1,7 +0,0 @@ -kodi-audioencoder-wav (2.0.0-1~#DIST#) #DIST#; urgency=low - - [ xbmc ] - * autogenerated dummy changelog - - -- dummy Sat, 17 May 2014 11:40:22 +0100 - diff -Nru kodi-audioencoder-wav-2.0.0/debian/kodi-audioencoder-wav.install kodi-audioencoder-wav-2.0.2/debian/kodi-audioencoder-wav.install --- kodi-audioencoder-wav-2.0.0/debian/kodi-audioencoder-wav.install 2018-03-05 08:37:12.000000000 +0000 +++ kodi-audioencoder-wav-2.0.2/debian/kodi-audioencoder-wav.install 2014-05-17 10:40:22.000000000 +0000 @@ -1,2 +1,2 @@ -usr/lib -usr/share +usr/lib/* +usr/share/* diff -Nru kodi-audioencoder-wav-2.0.0/Jenkinsfile kodi-audioencoder-wav-2.0.2/Jenkinsfile --- kodi-audioencoder-wav-2.0.0/Jenkinsfile 1970-01-01 00:00:00.000000000 +0000 +++ kodi-audioencoder-wav-2.0.2/Jenkinsfile 2014-05-17 10:40:22.000000000 +0000 @@ -0,0 +1 @@ +buildPlugin(version: "Leia") diff -Nru kodi-audioencoder-wav-2.0.0/README.md kodi-audioencoder-wav-2.0.2/README.md --- kodi-audioencoder-wav-2.0.0/README.md 2017-06-20 04:38:16.000000000 +0000 +++ kodi-audioencoder-wav-2.0.2/README.md 2014-05-17 10:40:22.000000000 +0000 @@ -14,7 +14,7 @@ ### Linux -1. `git clone https://github.com/xbmc/xbmc.git` +1. `git clone --branch Leia https://github.com/xbmc/xbmc.git` 2. `git clone https://github.com/audioencoder.wav/audioencoder.wav.git` 3. `cd audioencoder.wav && mkdir build && cd build` 4. `cmake -DADDONS_TO_BUILD=audioencoder.wav -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/project/cmake/addons` diff -Nru kodi-audioencoder-wav-2.0.0/src/EncoderWav.cpp kodi-audioencoder-wav-2.0.2/src/EncoderWav.cpp --- kodi-audioencoder-wav-2.0.0/src/EncoderWav.cpp 2017-06-20 04:38:16.000000000 +0000 +++ kodi-audioencoder-wav-2.0.2/src/EncoderWav.cpp 2014-05-17 10:40:22.000000000 +0000 @@ -1,6 +1,6 @@ /* - * Copyright (C) 2005-2013 Team XBMC - * http://xbmc.org + * Copyright (C) 2005-2019 Team Kodi + * http://kodi.tv * * This Program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -13,7 +13,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with XBMC; see the file COPYING. If not, see + * along with Kodi; see the file COPYING. If not, see * . * */ @@ -42,25 +42,25 @@ } WAVHDR; -class CEncoderWav : public kodi::addon::CInstanceAudioEncoder +class ATTRIBUTE_HIDDEN CEncoderWav : public kodi::addon::CInstanceAudioEncoder { public: CEncoderWav(KODI_HANDLE instance); - virtual bool Start(int inChannels, - int inRate, - int inBits, - const std::string& title, - const std::string& artist, - const std::string& albumartist, - const std::string& album, - const std::string& year, - const std::string& track, - const std::string& genre, - const std::string& comment, - int trackLength) override; + bool Start(int inChannels, + int inRate, + int inBits, + const std::string& title, + const std::string& artist, + const std::string& albumartist, + const std::string& album, + const std::string& year, + const std::string& track, + const std::string& genre, + const std::string& comment, + int trackLength) override; int Encode(int numBytesRead, const uint8_t* stream) override; - virtual bool Finish() override; + bool Finish() override; private: WAVHDR m_wav; @@ -123,11 +123,11 @@ //------------------------------------------------------------------------------ -class CMyAddon : public kodi::addon::CAddonBase +class ATTRIBUTE_HIDDEN CMyAddon : public kodi::addon::CAddonBase { public: - CMyAddon() { } - virtual ADDON_STATUS CreateInstance(int instanceType, std::string instanceID, KODI_HANDLE instance, KODI_HANDLE& addonInstance) override; + CMyAddon() = default; + ADDON_STATUS CreateInstance(int instanceType, std::string instanceID, KODI_HANDLE instance, KODI_HANDLE& addonInstance) override; }; ADDON_STATUS CMyAddon::CreateInstance(int instanceType, std::string instanceID, KODI_HANDLE instance, KODI_HANDLE& addonInstance) diff -Nru kodi-audioencoder-wav-2.0.0/.travis.yml kodi-audioencoder-wav-2.0.2/.travis.yml --- kodi-audioencoder-wav-2.0.0/.travis.yml 2017-06-20 04:38:16.000000000 +0000 +++ kodi-audioencoder-wav-2.0.2/.travis.yml 2014-05-17 10:40:22.000000000 +0000 @@ -3,36 +3,28 @@ # # 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 +# Travis defaults to building on Ubuntu Trusty when building on +# Linux. We need Xenial in order to get up to date versions of # cmake and g++. # env: global: - - APPID=audioencoder.wav + - app_id=audioencoder.wav matrix: include: - os: linux - dist: trusty + dist: xenial sudo: required compiler: gcc - os: linux - dist: trusty + dist: xenial sudo: required compiler: clang - os: osx - osx_image: xcode7.3 + osx_image: xcode9 - 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 brew update; fi - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then which cmake || brew install cmake; fi + osx_image: xcode9.4 # # The addon source is automatically checked out in $TRAVIS_BUILD_DIR, @@ -40,10 +32,10 @@ # before_script: - cd $TRAVIS_BUILD_DIR/.. - - git clone --depth=1 https://github.com/xbmc/xbmc.git - - cd ${APPID} - - mkdir build - - cd build - - cmake -DADDONS_TO_BUILD=${APPID} -DADDON_SRC_PREFIX=$TRAVIS_BUILD_DIR/.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$TRAVIS_BUILD_DIR/../xbmc/addons -DPACKAGE_ZIP=1 $TRAVIS_BUILD_DIR/../xbmc/cmake/addons + - git clone --branch Leia --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