mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 14:16:40 +00:00
evtest: convert to addon
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
cc74e9491d
commit
2d77541d76
27
packages/addons/debug/tools/evtest/addon
Executable file
27
packages/addons/debug/tools/evtest/addon
Executable file
@ -0,0 +1,27 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# This file is part of OpenELEC - http://www.openelec.tv
|
||||||
|
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.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
|
||||||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
#
|
||||||
|
# This Program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||||
|
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
# http://www.gnu.org/copyleft/gpl.html
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
. config/options $1
|
||||||
|
|
||||||
|
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/bin
|
||||||
|
cp $PKG_BUILD/evtest $ADDON_BUILD/$PKG_ADDON_ID/bin
|
||||||
|
cp $PKG_BUILD/evtest-capture $ADDON_BUILD/$PKG_ADDON_ID/bin
|
@ -22,9 +22,12 @@
|
|||||||
|
|
||||||
. config/options $1
|
. config/options $1
|
||||||
|
|
||||||
|
LDFLAGS="$LDFLAGS -static"
|
||||||
|
CFLAGS="$CFLAGS -pthread"
|
||||||
|
|
||||||
cd $PKG_BUILD
|
cd $PKG_BUILD
|
||||||
./configure --host=$TARGET_NAME \
|
./configure --host=$TARGET_NAME \
|
||||||
--build=$HOST_NAME \
|
--build=$HOST_NAME \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
|
|
||||||
make
|
make LIBS="-lm -lz -liconv"
|
2
packages/addons/debug/tools/evtest/changelog.txt
Normal file
2
packages/addons/debug/tools/evtest/changelog.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
0.99.1
|
||||||
|
- initial addon based on evtest-1.27
|
BIN
packages/addons/debug/tools/evtest/icon/icon.png
Normal file
BIN
packages/addons/debug/tools/evtest/icon/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
@ -28,9 +28,11 @@ PKG_URL="http://cgit.freedesktop.org/evtest/snapshot/$PKG_NAME-$PKG_VERSION.tar.
|
|||||||
PKG_DEPENDS="libxml2"
|
PKG_DEPENDS="libxml2"
|
||||||
PKG_BUILD_DEPENDS="toolchain libxml2"
|
PKG_BUILD_DEPENDS="toolchain libxml2"
|
||||||
PKG_PRIORITY="optional"
|
PKG_PRIORITY="optional"
|
||||||
PKG_SECTION="tools"
|
PKG_SECTION="debug/tools"
|
||||||
PKG_SHORTDESC="evtest: Simple tool for input event debugging."
|
PKG_SHORTDESC="evtest: Simple tool for input event debugging."
|
||||||
PKG_LONGDESC="evtest is a simple tool for input event debugging."
|
PKG_LONGDESC="evtest is a simple tool for input event debugging."
|
||||||
PKG_IS_ADDON="no"
|
|
||||||
|
PKG_IS_ADDON="yes"
|
||||||
|
PKG_ADDON_TYPE="xbmc.python.script"
|
||||||
|
|
||||||
PKG_AUTORECONF="yes"
|
PKG_AUTORECONF="yes"
|
10
packages/tools/evtest/install → packages/addons/debug/tools/evtest/source/default.py
Executable file → Normal file
10
packages/tools/evtest/install → packages/addons/debug/tools/evtest/source/default.py
Executable file → Normal file
@ -1,5 +1,3 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# This file is part of OpenELEC - http://www.openelec.tv
|
# This file is part of OpenELEC - http://www.openelec.tv
|
||||||
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
|
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
|
||||||
@ -20,8 +18,6 @@
|
|||||||
# http://www.gnu.org/copyleft/gpl.html
|
# http://www.gnu.org/copyleft/gpl.html
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
. config/options $1
|
import os
|
||||||
|
import sys
|
||||||
mkdir -p $INSTALL/usr/bin
|
import xbmcaddon
|
||||||
cp $PKG_BUILD/evtest $INSTALL/usr/bin
|
|
||||||
cp $PKG_BUILD/evtest-capture $INSTALL/usr/bin
|
|
Loading…
x
Reference in New Issue
Block a user