Compare commits

...

1 commit

Author SHA1 Message Date
gambas
f4e6399408 Add a new void component 'gb.input'. 2019-02-28 19:42:36 +01:00
24 changed files with 243 additions and 1 deletions

View file

@ -37,6 +37,7 @@ SUBDIRS = \
@httpd_dir@ \
@openssl_dir@ \
@openal_dir@ \
@input_dir@ \
comp \
app \
.

View file

@ -0,0 +1,79 @@
/* Copyrights */
#define __COPYRIGHT (c)
#define __AUTHOR Joe Smith
#define __EMAIL <joe.smith@gmail.com>
/* Name of the component */
#define __COMPONENT gb.input
/* Name of the component with points replaced by dashes */
#define __COMPONENT_DASH gb-input
/* Name of the component with points replaced by underscore */
#define __COMPONENT_UNDERSCORE gb_input
/* Short name of the component */
#define __NAME input
/* Short name of the component in uppercase */
#define __UNAME INPUT
/* Description of the component */
#define __DESCRIPTION Input device management
/* If the component detection uses pkg-config */
#define __USE_PKGCONFIG 1
#if __USE_PKGCONFIG
/* Name of the package for pkg-config */
#define __PKGCONFIG_NAME libevdev
/* Minimum version needed */
//#define __PKGCONFIG_VERSION 1.2.8
#else /* __USE_PKGCONFIG */
/* If your component uses C */
#define __USE_C 1
/* If your component uses C++ */
#define __USE_CPLUSPLUS 0
/* If your component uses multi-threading */
#define __USE_THREAD 0
/* If your component uses X-Window */
#define __USE_XWINDOW 0
/* Includes to search for */
#define __SEARCH_INCLUDE
/* Includes directories search path */
#define __SEARCH_INCLUDE_PATH
/* Includes sub-directories search */
#define __SEARCH_INCLUDE_DIR
/* Libraries to search for */
#define __SEARCH_LIBRARY
/* Libraries directories search path */
#define __SEARCH_LIBRARY_PATH
/* Libraries sub-directories search path */
#define __SEARCH_LIBRARY_DIR
/* Libraries to link with */
#define __LIBRARY
/* Includes to link with */
#define __INCLUDE
#endif /* __USE_PKGCONFIG */
/* Source file list */
#define __SOURCES main.c main.h evdev.c evdev.h
/* Main C/C++ source basename in uppercase */
#define __MAIN_UNAME MAIN

View file

@ -1,3 +1,3 @@
$#$!/bin/sh
cd src
mv gb.xxx.component __COMPONENT.component
mv .component __COMPONENT.component

View file

@ -49,6 +49,7 @@ GB_CONFIG_SUBDIRS(media, gb.media)
GB_CONFIG_SUBDIRS(httpd, gb.httpd)
GB_CONFIG_SUBDIRS(openssl, gb.openssl)
GB_CONFIG_SUBDIRS(openal, gb.openal)
GB_CONFIG_SUBDIRS(input, gb.input)
AC_CONFIG_SUBDIRS(comp)
AC_CONFIG_SUBDIRS(app)

0
gb.input/AUTHORS Normal file
View file

1
gb.input/COPYING Symbolic link
View file

@ -0,0 +1 @@
../COPYING

0
gb.input/ChangeLog Normal file
View file

1
gb.input/INSTALL Symbolic link
View file

@ -0,0 +1 @@
../INSTALL

3
gb.input/Makefile.am Normal file
View file

@ -0,0 +1,3 @@
ACLOCAL_AMFLAGS = -I m4 --install
SUBDIRS = @INPUT_DIR@
EXTRA_DIST = reconf gambas.h gb*.h

0
gb.input/NEWS Normal file
View file

0
gb.input/README Normal file
View file

1
gb.input/acinclude.m4 Symbolic link
View file

@ -0,0 +1 @@
../acinclude.m4

1
gb.input/component.am Symbolic link
View file

@ -0,0 +1 @@
../component.am

14
gb.input/configure.ac Normal file
View file

@ -0,0 +1,14 @@
dnl ---- configure.ac for gb.input
m4_include([../version.m4])
AC_INIT(gambas3-gb-input, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.input)
AC_PROG_LIBTOOL
GB_COMPONENT_PKG_CONFIG(
input,
INPUT,
gb.input,
[src],
libevdev)
AC_OUTPUT( Makefile src/Makefile )
GB_PRINT_MESSAGES

1
gb.input/gambas.h Symbolic link
View file

@ -0,0 +1 @@
../main/share/gambas.h

1
gb.input/gb_common.h Symbolic link
View file

@ -0,0 +1 @@
../main/share/gb_common.h

1
gb.input/m4 Symbolic link
View file

@ -0,0 +1 @@
../m4

1
gb.input/reconf Symbolic link
View file

@ -0,0 +1 @@
../reconf

7
gb.input/src/Makefile.am Normal file
View file

@ -0,0 +1,7 @@
COMPONENT = gb.input
include $(top_srcdir)/component.am
gblib_LTLIBRARIES = gb.input.la
gb_input_la_LIBADD = @INPUT_LIB@
gb_input_la_LDFLAGS = -module @LD_FLAGS@ @INPUT_LDFLAGS@
gb_input_la_CPPFLAGS = @INPUT_INC@
gb_input_la_SOURCES = main.c main.h evdev.c evdev.h

28
gb.input/src/evdev.c Normal file
View file

@ -0,0 +1,28 @@
/***************************************************************************
evdev.c
gb.input component
(c) Joe Smith <joe.smith@gmail.com>
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 1, 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 this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA.
***************************************************************************/
#define __EVDEV_C
#include "evdev.h"

35
gb.input/src/evdev.h Normal file
View file

@ -0,0 +1,35 @@
/***************************************************************************
evdev.h
gb.input component
(c) Joe Smith <joe.smith@gmail.com>
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 1, 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 this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA.
***************************************************************************/
#ifndef __EVDEV_H
#define __EVDEV_H
#include "gambas.h"
#ifndef __MAIN_C
extern GB_INTERFACE GB;
#endif
#endif /* __EVDEV_H */

View file

@ -0,0 +1,3 @@
[Component]
Author=
Alpha=1

28
gb.input/src/main.c Normal file
View file

@ -0,0 +1,28 @@
/***************************************************************************
main.c
gb.input component
(c) Joe Smith <joe.smith@gmail.com>
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 1, 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 this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA.
***************************************************************************/
#define __MAIN_C
#include "main.h"

35
gb.input/src/main.h Normal file
View file

@ -0,0 +1,35 @@
/***************************************************************************
main.h
gb.input component
(c) Joe Smith <joe.smith@gmail.com>
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 1, 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 this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA.
***************************************************************************/
#ifndef __MAIN_H
#define __MAIN_H
#include "gambas.h"
#ifndef __MAIN_C
extern GB_INTERFACE GB;
#endif
#endif /* __MAIN_H */