parent
29ebab2ce5
commit
2f919932cb
@ -1,38 +0,0 @@
|
||||
moduledir := $(shell pkg-config xorg-server --variable moduledir)
|
||||
|
||||
all: allmake
|
||||
|
||||
allmake:
|
||||
cd module; $(MAKE) $(MFLAGS)
|
||||
cd xrdpdev; $(MAKE) $(MFLAGS)
|
||||
cd xrdpkeyb; $(MAKE) $(MFLAGS)
|
||||
cd xrdpmouse; $(MAKE) $(MFLAGS)
|
||||
|
||||
clean: allclean
|
||||
|
||||
allclean:
|
||||
cd module; $(MAKE) clean
|
||||
cd xrdpdev; $(MAKE) clean
|
||||
cd xrdpkeyb; $(MAKE) clean
|
||||
cd xrdpmouse; $(MAKE) clean
|
||||
|
||||
xinstall:
|
||||
strip module/libxorgxrdp.so
|
||||
strip xrdpdev/xrdpdev_drv.so
|
||||
strip xrdpmouse/xrdpmouse_drv.so
|
||||
strip xrdpkeyb/xrdpkeyb_drv.so
|
||||
|
||||
mkdir -p $(HOME)/xorg-modules/drivers $(HOME)/xorg-modules/input
|
||||
cp module/libxorgxrdp.so $(HOME)/xorg-modules/
|
||||
cp xrdpdev/xrdpdev_drv.so $(HOME)/xorg-modules/drivers/
|
||||
cp xrdpmouse/xrdpmouse_drv.so $(HOME)/xorg-modules/input/
|
||||
cp xrdpkeyb/xrdpkeyb_drv.so $(HOME)/xorg-modules/input/
|
||||
|
||||
install:
|
||||
install --directory $(DESTDIR)$(moduledir) $(DESTDIR)$(moduledir)/drivers $(DESTDIR)$(moduledir)/input
|
||||
install --mode=0644 --strip module/libxorgxrdp.so $(DESTDIR)$(moduledir)
|
||||
install --mode=0644 --strip xrdpdev/xrdpdev_drv.so $(DESTDIR)$(moduledir)/drivers/
|
||||
install --mode=0644 --strip xrdpmouse/xrdpmouse_drv.so $(DESTDIR)$(moduledir)/input/
|
||||
install --mode=0644 --strip xrdpkeyb/xrdpkeyb_drv.so $(DESTDIR)$(moduledir)/input/
|
||||
install --directory /etc/X11/xrdp
|
||||
install xrdpdev/xorg.conf /etc/X11/xrdp/
|
@ -0,0 +1,7 @@
|
||||
EXTRA_DIST = bootstrap readme.txt
|
||||
|
||||
SUBDIRS = \
|
||||
module \
|
||||
xrdpdev \
|
||||
xrdpkeyb \
|
||||
xrdpmouse
|
@ -0,0 +1,36 @@
|
||||
#!/bin/sh
|
||||
|
||||
which autoconf
|
||||
if ! test $? -eq 0
|
||||
then
|
||||
echo "error, install autoconf"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
which automake
|
||||
if ! test $? -eq 0
|
||||
then
|
||||
echo "error, install automake"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
which libtool
|
||||
if ! test $? -eq 0
|
||||
then
|
||||
echo "error, install libtool"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
which pkg-config
|
||||
if ! test $? -eq 0
|
||||
then
|
||||
echo "error, install pkg-config"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
touch configure.ac
|
||||
touch NEWS
|
||||
touch AUTHORS
|
||||
touch README
|
||||
touch ChangeLog
|
||||
autoreconf -fvi
|
@ -0,0 +1,35 @@
|
||||
# Process this file with autoconf to produce a configure script
|
||||
|
||||
AC_PREREQ(2.59)
|
||||
AC_INIT([xrdpmod], [0.1.0], [xrdp-devel@lists.sourceforge.net])
|
||||
AC_CONFIG_HEADERS(config_ac.h:config_ac-h.in)
|
||||
AM_INIT_AUTOMAKE([1.6 foreign])
|
||||
AC_PROG_CC
|
||||
AC_C_CONST
|
||||
AC_PROG_LIBTOOL
|
||||
|
||||
AM_CONDITIONAL(GOT_PREFIX, test "x${prefix}" != "xNONE"])
|
||||
|
||||
AC_CHECK_HEADER([xorg/xorg-server.h], [],
|
||||
[AC_MSG_ERROR([please install xserver-xorg-dev or xorg-x11-server-sdk])])
|
||||
|
||||
PKG_CHECK_MODULES([XORG_SERVER], [xorg-server >= 0])
|
||||
AC_SUBST([XORG_SERVER_CFLAGS])
|
||||
AC_SUBST([XORG_SERVER_LIBS])
|
||||
|
||||
moduledir=`pkg-config xorg-server --variable=moduledir`
|
||||
AC_SUBST([moduledir])
|
||||
|
||||
if test "x${prefix}" = "xNONE" ; then
|
||||
sysconfdir="/etc";
|
||||
fi
|
||||
|
||||
AC_CONFIG_FILES([Makefile
|
||||
module/Makefile
|
||||
xrdpdev/Makefile
|
||||
xrdpkeyb/Makefile
|
||||
xrdpmouse/Makefile
|
||||
])
|
||||
|
||||
AC_OUTPUT
|
||||
|
@ -1,63 +0,0 @@
|
||||
|
||||
OBJS = rdpDraw.o rdpPri.o rdpGC.o rdpFillSpans.o rdpSetSpans.o rdpPutImage.o \
|
||||
rdpCopyArea.o rdpCopyPlane.o rdpPolyPoint.o rdpPolylines.o rdpPolySegment.o \
|
||||
rdpPolyRectangle.o rdpPolyArc.o rdpFillPolygon.o rdpPolyFillRect.o \
|
||||
rdpPolyFillArc.o rdpPolyText8.o rdpPolyText16.o rdpImageText8.o \
|
||||
rdpImageText16.o rdpImageGlyphBlt.o rdpPolyGlyphBlt.o rdpPushPixels.o \
|
||||
rdpCursor.o rdpMain.o rdpRandR.o rdpMisc.o rdpReg.o \
|
||||
rdpComposite.o rdpGlyphs.o rdpPixmap.o rdpInput.o rdpClientCon.o rdpCapture.o \
|
||||
rdpTrapezoids.o rdpXv.o rdpSimd.o
|
||||
|
||||
;OBJS += cpuid_x86.o i420_to_rgb32_x86_sse2.o yv12_to_rgb32_x86_sse2.o yuy2_to_rgb32_x86_sse2.o uyvy_to_rgb32_x86_sse2.o a8r8g8b8_to_a8b8g8r8_box_x86_sse2.o
|
||||
;OBJS += cpuid_amd64.o i420_to_rgb32_amd64_sse2.o yv12_to_rgb32_amd64_sse2.o yuy2_to_rgb32_amd64_sse2.o uyvy_to_rgb32_amd64_sse2.o
|
||||
|
||||
CFLAGS = -g -O2 -Wall -fPIC -I/usr/include/xorg -I/usr/include/pixman-1 \
|
||||
-I../../../common
|
||||
|
||||
;CFLAGS += -DSIMD_USE_ACCEL=1
|
||||
|
||||
LDFLAGS =
|
||||
|
||||
LIBS =
|
||||
|
||||
all: libxorgxrdp.so
|
||||
|
||||
libxorgxrdp.so: $(OBJS) Makefile
|
||||
$(CC) -shared -o libxorgxrdp.so $(LDFLAGS) $(OBJS) $(LIBS)
|
||||
|
||||
clean:
|
||||
rm -f $(OBJS) libxorgxrdp.so
|
||||
|
||||
cpuid_x86.o: x86/cpuid_x86.asm
|
||||
yasm -f elf32 -g dwarf2 x86/cpuid_x86.asm
|
||||
|
||||
i420_to_rgb32_x86_sse2.o: x86/i420_to_rgb32_x86_sse2.asm
|
||||
yasm -f elf32 -g dwarf2 x86/i420_to_rgb32_x86_sse2.asm
|
||||
|
||||
yv12_to_rgb32_x86_sse2.o: x86/yv12_to_rgb32_x86_sse2.asm
|
||||
yasm -f elf32 -g dwarf2 x86/yv12_to_rgb32_x86_sse2.asm
|
||||
|
||||
yuy2_to_rgb32_x86_sse2.o: x86/yuy2_to_rgb32_x86_sse2.asm
|
||||
yasm -f elf32 -g dwarf2 x86/yuy2_to_rgb32_x86_sse2.asm
|
||||
|
||||
uyvy_to_rgb32_x86_sse2.o: x86/uyvy_to_rgb32_x86_sse2.asm
|
||||
yasm -f elf32 -g dwarf2 x86/uyvy_to_rgb32_x86_sse2.asm
|
||||
|
||||
a8r8g8b8_to_a8b8g8r8_box_x86_sse2.o: x86/a8r8g8b8_to_a8b8g8r8_box_x86_sse2.asm
|
||||
yasm -f elf32 -g dwarf2 x86/a8r8g8b8_to_a8b8g8r8_box_x86_sse2.asm
|
||||
|
||||
cpuid_amd64.o: amd64/cpuid_amd64.asm
|
||||
yasm -f elf64 -g dwarf2 amd64/cpuid_amd64.asm
|
||||
|
||||
i420_to_rgb32_amd64_sse2.o: amd64/i420_to_rgb32_amd64_sse2.asm
|
||||
yasm -f elf64 -g dwarf2 amd64/i420_to_rgb32_amd64_sse2.asm
|
||||
|
||||
yv12_to_rgb32_amd64_sse2.o: amd64/yv12_to_rgb32_amd64_sse2.asm
|
||||
yasm -f elf64 -g dwarf2 amd64/yv12_to_rgb32_amd64_sse2.asm
|
||||
|
||||
yuy2_to_rgb32_amd64_sse2.o: amd64/yuy2_to_rgb32_amd64_sse2.asm
|
||||
yasm -f elf64 -g dwarf2 amd64/yuy2_to_rgb32_amd64_sse2.asm
|
||||
|
||||
uyvy_to_rgb32_amd64_sse2.o: amd64/uyvy_to_rgb32_amd64_sse2.asm
|
||||
yasm -f elf64 -g dwarf2 amd64/uyvy_to_rgb32_amd64_sse2.asm
|
||||
|
@ -0,0 +1,22 @@
|
||||
EXTRA_DIST =
|
||||
|
||||
AM_CFLAGS = \
|
||||
$(XORG_SERVER_CFLAGS) \
|
||||
-I../../../common
|
||||
|
||||
libxorgxrdp_la_LTLIBRARIES = libxorgxrdp.la
|
||||
|
||||
libxorgxrdp_la_LDFLAGS = -module -avoid-version
|
||||
|
||||
libxorgxrdp_ladir = $(moduledir)
|
||||
|
||||
libxorgxrdp_la_SOURCES = rdpDraw.c rdpPri.c rdpGC.c rdpFillSpans.c \
|
||||
rdpSetSpans.c rdpPutImage.c rdpCopyArea.c rdpCopyPlane.c rdpPolyPoint.c \
|
||||
rdpPolylines.c rdpPolySegment.c rdpPolyRectangle.c rdpPolyArc.c \
|
||||
rdpFillPolygon.c rdpPolyFillRect.c rdpPolyFillArc.c rdpPolyText8.c \
|
||||
rdpPolyText16.c rdpImageText8.c rdpImageText16.c rdpImageGlyphBlt.c \
|
||||
rdpPolyGlyphBlt.c rdpPushPixels.c rdpCursor.c rdpMain.c rdpRandR.c \
|
||||
rdpMisc.c rdpReg.c rdpComposite.c rdpGlyphs.c rdpPixmap.c rdpInput.c \
|
||||
rdpClientCon.c rdpCapture.c rdpTrapezoids.c rdpXv.c rdpSimd.c
|
||||
|
||||
libxorgxrdp_la_LIBADD =
|
@ -1,17 +0,0 @@
|
||||
|
||||
OBJS = xrdpdev.o
|
||||
|
||||
CFLAGS = -g -O2 -Wall -fPIC -I/usr/include/xorg -I/usr/include/pixman-1 \
|
||||
-I../module -I../../../common
|
||||
|
||||
LDFLAGS =
|
||||
|
||||
LIBS =
|
||||
|
||||
all: xrdpdev_drv.so
|
||||
|
||||
xrdpdev_drv.so: $(OBJS) Makefile
|
||||
$(CC) -shared -o xrdpdev_drv.so $(LDFLAGS) $(OBJS) $(LIBS)
|
||||
|
||||
clean:
|
||||
rm -f $(OBJS) xrdpdev_drv.so
|
@ -0,0 +1,17 @@
|
||||
EXTRA_DIST = \
|
||||
xorg.conf
|
||||
|
||||
AM_CFLAGS = \
|
||||
$(XORG_SERVER_CFLAGS) \
|
||||
-I../module \
|
||||
-I../../../common
|
||||
|
||||
xrdpdev_drv_la_LTLIBRARIES = xrdpdev_drv.la
|
||||
|
||||
xrdpdev_drv_la_LDFLAGS = -module -avoid-version
|
||||
|
||||
xrdpdev_drv_ladir = $(moduledir)/drivers
|
||||
|
||||
xrdpdev_drv_la_SOURCES = xrdpdev.c
|
||||
|
||||
xrdpdev_drv_la_LIBADD =
|
@ -1,17 +0,0 @@
|
||||
|
||||
OBJS = rdpKeyboard.o
|
||||
|
||||
CFLAGS = -g -O2 -Wall -fPIC -I/usr/include/xorg -I/usr/include/pixman-1 \
|
||||
-I../module -I../../../common
|
||||
|
||||
LDFLAGS =
|
||||
|
||||
LIBS =
|
||||
|
||||
all: xrdpkeyb_drv.so
|
||||
|
||||
xrdpkeyb_drv.so: $(OBJS) Makefile
|
||||
$(CC) -shared -o xrdpkeyb_drv.so $(LDFLAGS) $(OBJS) $(LIBS)
|
||||
|
||||
clean:
|
||||
rm -f $(OBJS) xrdpkeyb_drv.so
|
@ -0,0 +1,16 @@
|
||||
EXTRA_DIST =
|
||||
|
||||
AM_CFLAGS = \
|
||||
$(XORG_SERVER_CFLAGS) \
|
||||
-I../module \
|
||||
-I../../../common
|
||||
|
||||
xrdpkeyb_drv_la_LTLIBRARIES = xrdpkeyb_drv.la
|
||||
|
||||
xrdpkeyb_drv_la_LDFLAGS = -module -avoid-version
|
||||
|
||||
xrdpkeyb_drv_ladir = $(moduledir)/input
|
||||
|
||||
xrdpkeyb_drv_la_SOURCES = rdpKeyboard.c
|
||||
|
||||
xrdpkeyb_drv_la_LIBADD =
|
@ -1,17 +0,0 @@
|
||||
|
||||
OBJS = rdpMouse.o
|
||||
|
||||
CFLAGS = -g -O2 -Wall -fPIC -I/usr/include/xorg -I/usr/include/pixman-1 \
|
||||
-I../module -I../../../common
|
||||
|
||||
LDFLAGS =
|
||||
|
||||
LIBS =
|
||||
|
||||
all: xrdpmouse_drv.so
|
||||
|
||||
xrdpmouse_drv.so: $(OBJS) Makefile
|
||||
$(CC) -shared -o xrdpmouse_drv.so $(LDFLAGS) $(OBJS) $(LIBS)
|
||||
|
||||
clean:
|
||||
rm -f $(OBJS) xrdpmouse_drv.so
|
@ -0,0 +1,16 @@
|
||||
EXTRA_DIST =
|
||||
|
||||
AM_CFLAGS = \
|
||||
$(XORG_SERVER_CFLAGS) \
|
||||
-I../module \
|
||||
-I../../../common
|
||||
|
||||
xrdpmouse_drv_la_LTLIBRARIES = xrdpmouse_drv.la
|
||||
|
||||
xrdpmouse_drv_la_LDFLAGS = -module -avoid-version
|
||||
|
||||
xrdpmouse_drv_ladir = $(moduledir)/input
|
||||
|
||||
xrdpmouse_drv_la_SOURCES = rdpMouse.c
|
||||
|
||||
xrdpmouse_drv_la_LIBADD =
|
Loading…
Reference in new issue