Added lbidrm, because it's impossible to disable it via configure scripts

This commit is contained in:
Sergii Pylypenko
2019-09-09 14:55:59 +03:00
parent 55e19f4f1c
commit 346f8d1223
8 changed files with 73 additions and 19 deletions

View File

@@ -639,6 +639,37 @@ $AR rcs libXrandr.a $PKGDIR/src/.libs/*.o
#done #done
} || exit 1 } || exit 1
# =========== libdrm.a ==========
[ -e usr/include/libdrm/drm_fourcc.h ] || {
PKGURL=https://cgit.freedesktop.org/mesa/drm/snapshot/libdrm-2.4.99.tar.gz
PKGDIR=`basename --suffix=.tar.gz $PKGURL`
echo $PKGDIR: $PKGURL
[ -e ../$PKGDIR.tar.gz ] || { curl -L $PKGURL -o $PKGDIR.tar.gz && mv $PKGDIR.tar.gz ../ ; } || rm ../$PKGDIR.tar.gz
tar xvzf ../$PKGDIR.tar.gz || exit 1
cd $PKGDIR
[ -e configure ] || \
autoreconf -v --install \
|| exit 1
env CFLAGS="-isystem$BUILDDIR/usr/include" \
LDFLAGS="-L$BUILDDIR" \
$BUILDDIR/setCrossEnvironment.sh \
./configure \
--host=$TARGET_HOST \
--prefix=$BUILDDIR/usr \
|| exit 1
$BUILDDIR/setCrossEnvironment.sh \
sh -c 'ln -sf $CC gcc'
$BUILDDIR/setCrossEnvironment.sh \
make -j$NCPU V=1 install-klibdrmincludeHEADERS install-libdrmincludeHEADERS 2>&1 || exit 1
cd $BUILDDIR
} || exit 1
# =========== libxkbfile.a ========== # =========== libxkbfile.a ==========
[ -e libxkbfile.a ] || { [ -e libxkbfile.a ] || {
@@ -1148,7 +1179,7 @@ PATH=$BUILDDIR:$PATH \
--disable-xephyr --disable-unit-tests \ --disable-xephyr --disable-unit-tests \
--disable-dri --disable-dri2 --disable-glx --disable-xf86vidmode \ --disable-dri --disable-dri2 --disable-glx --disable-xf86vidmode \
--enable-xsdl --enable-kdrive \ --enable-xsdl --enable-kdrive \
--enable-mitshm --disable-config-udev --disable-libdrm --disable-dri3 \ --enable-mitshm --disable-config-udev --disable-libdrm \
|| exit 1 || exit 1
./setCrossEnvironment.sh make -j$NCPU V=1 2>&1 || exit 1 ./setCrossEnvironment.sh make -j$NCPU V=1 2>&1 || exit 1

Binary file not shown.

View File

@@ -7,7 +7,7 @@ env SDL=yes CFLAGS="-O0 -g -DDEBUG" \
--disable-xephyr --disable-xfake --disable-xfbdev --disable-unit-tests \ --disable-xephyr --disable-xfake --disable-xfbdev --disable-unit-tests \
--disable-shm --disable-mitshm --disable-dri --disable-dri2 --disable-glx --disable-xf86vidmode \ --disable-shm --disable-mitshm --disable-dri --disable-dri2 --disable-glx --disable-xf86vidmode \
--enable-xsdl --enable-kdrive --enable-kdrive-kbd --enable-kdrive-mouse --enable-kdrive-evdev \ --enable-xsdl --enable-kdrive --enable-kdrive-kbd --enable-kdrive-mouse --enable-kdrive-evdev \
--disable-libdrm --disable-dri3 \ --disable-libdrm \
|| exit 1 || exit 1
nice -n19 make -j8 nice -n19 make -j8

View File

@@ -5,7 +5,7 @@ INCLUDES = \
bin_PROGRAMS = Xsdl bin_PROGRAMS = Xsdl
Xsdl_SOURCES = sdl.c android_main.c sdl_send_text.c sdl_send_text.h Xsdl_SOURCES = sdl.c android_main.c sdl_send_text.c sdl_send_text.h sdl_kdrive.h sdl_clipboard.c
Xsdl_LDADD = \ Xsdl_LDADD = \
@KDRIVE_LIBS@ \ @KDRIVE_LIBS@ \

View File

@@ -26,6 +26,7 @@
*/ */
#include "sdl_send_text.h" #include "sdl_send_text.h"
#include "sdl_kdrive.h"
#include <xorg-config.h> #include <xorg-config.h>
#include "kdrive.h" #include "kdrive.h"

View File

@@ -0,0 +1,37 @@
/*
* Copyright © 2004 PillowElephantBadgerBankPond
* Copyright © 2014-2019 Sergii Pylypenko
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in supporting
* documentation, and that the name of PillowElephantBadgerBankPond not be used in
* advertising or publicity pertaining to distribution of the software without
* specific, written prior permission. PillowElephantBadgerBankPond makes no
* representations about the suitability of this software for any purpose. It
* is provided "as is" without express or implied warranty.
*
* PillowElephantBadgerBankPond DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
* EVENT SHALL PillowElephantBadgerBankPond BE LIABLE FOR ANY SPECIAL, INDIRECT OR
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*
* It's really not my fault - see it was the elephants!!
* - jaymz
*
*/
#ifndef _SDL_KDRIVE_H_
#define _SDL_KDRIVE_H_
#include <xorg-config.h>
#include "kdrive.h"
extern KdKeyboardInfo *sdlKeyboard;
extern KdPointerInfo *sdlPointer;
#endif

View File

@@ -26,9 +26,9 @@
*/ */
#include "sdl_send_text.h" #include "sdl_send_text.h"
#include "sdl_kdrive.h"
#include <SDL/SDL.h> #include <SDL/SDL.h>
#include <SDL/SDL_syswm.h>
#include <stdio.h> #include <stdio.h>
#include <pthread.h> #include <pthread.h>
@@ -162,11 +162,3 @@ int execute_command(const char * command, const char *mode, char * data, int dat
//printf ("Child command returned %d", ret); //printf ("Child command returned %d", ret);
return ret; return ret;
} }
void process_clipboard_event(SDL_SysWMEvent *event)
{
#ifdef __ANDROID__
if (event->msg != NULL && event->msg->type == SDL_SYSWM_ANDROID_CLIPBOARD_CHANGED)
set_clipboard_text(SDL_GetClipboardText());
#endif
}

View File

@@ -28,19 +28,12 @@
#ifndef _SDL_SEND_TEXT_H_ #ifndef _SDL_SEND_TEXT_H_
#define _SDL_SEND_TEXT_H_ #define _SDL_SEND_TEXT_H_
#include <xorg-config.h>
#include "kdrive.h"
#include <SDL/SDL_events.h> #include <SDL/SDL_events.h>
extern KdKeyboardInfo *sdlKeyboard;
extern KdPointerInfo *sdlPointer;
int execute_command(const char * command, const char *mode, char * data, int datalen); int execute_command(const char * command, const char *mode, char * data, int datalen);
int UnicodeToUtf8(int src, char * dest); int UnicodeToUtf8(int src, char * dest);
void send_unicode(int unicode); void send_unicode(int unicode);
void set_clipboard_text(char *text); void set_clipboard_text(char *text);
void process_clipboard_event(SDL_SysWMEvent *event); void process_clipboard_event(SDL_SysWMEvent *event);
#endif #endif