Skip to content

Commit

Permalink
Merge pull request #295 from matt335672/improve_glamor_config
Browse files Browse the repository at this point in the history
Improve --enable-glamor behaviour
  • Loading branch information
matt335672 authored Mar 14, 2024
2 parents 728cf99 + 715b709 commit dd04d2b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:

- CC: gcc
CONF_FLAGS: --enable-glamor
CHECK: 1
name_extra: With glamor

- CC: gcc
Expand All @@ -50,6 +51,7 @@ jobs:

- CC: clang
CONF_FLAGS: --enable-glamor
CHECK: 1
name_extra: With glamor

- CC: clang
Expand Down
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@ PKG_CHECK_MODULES([XORG_SERVER], [xorg-server >= 0], [],
[AC_MSG_ERROR([please install xserver-xorg-dev, xorg-x11-server-sdk or xorg-x11-server-devel])])
if test "x${enable_glamor}" = "xyes"; then
PKG_CHECK_MODULES([XORG_SERVER_GLAMOR], [xorg-server >= 1.19.0])
PKG_CHECK_MODULES([LIBDRM], [libdrm >= 0], [], [AC_MSG_ERROR([please install libdrm-dev or libdrm-devel])])
PKG_CHECK_MODULES([XORG_SERVER_GBM], [gbm >= 0], [], [AC_MSG_ERROR([please install libgbm-dev or mesa-libgbm-devel])])
PKG_CHECK_MODULES([XORG_SERVER_EPOXY], [epoxy >= 0], [], [AC_MSG_ERROR([please install libepoxy-dev or libepoxy-devel])])
PKG_CHECK_MODULES([XORG_SERVER_EGL], [egl >= 0], [], [AC_MSG_ERROR([please install libegl1-mesa-dev or mesa-libEGL-devel])])
PKG_CHECK_VAR([XORG_SERVER_MODULES], [xorg-server], [moduledir])
fi

if test x$solaris = xyes; then
Expand Down
8 changes: 5 additions & 3 deletions module/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ EXTRA_HEADERS =
SUBDIRS =
ASMLIB =
EGLLIB =
LIB_SEARCH_PATH =

if WITH_SIMD_AMD64
EXTRA_FLAGS += -DSIMD_USE_ACCEL=1
Expand All @@ -19,10 +20,11 @@ ASMLIB += x86/libxorgxrdp-asm.la
endif

if WITH_GLAMOR
EXTRA_FLAGS += -DXORGXRDP_GLAMOR -DGLAMOR_FOR_XORG
EXTRA_FLAGS += $(LIBDRM_CFLAGS) -DXORGXRDP_GLAMOR -DGLAMOR_FOR_XORG
EXTRA_SOURCES += rdpEgl.c
EXTRA_HEADERS += rdpEgl.h
EGLLIB += -lepoxy
EGLLIB += -L$(XORG_SERVER_MODULES) -lglamoregl -lepoxy
LIB_SEARCH_PATH += -R$(XORG_SERVER_MODULES)
endif

AM_CFLAGS = \
Expand Down Expand Up @@ -81,7 +83,7 @@ noinst_HEADERS = \

libxorgxrdp_la_LTLIBRARIES = libxorgxrdp.la

libxorgxrdp_la_LDFLAGS = -module -avoid-version
libxorgxrdp_la_LDFLAGS = -module -avoid-version $(LIB_SEARCH_PATH)

libxorgxrdp_ladir = $(moduledir)

Expand Down
2 changes: 1 addition & 1 deletion xrdpdev/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ EXTRA_HEADERS =


if WITH_GLAMOR
EXTRA_FLAGS += -DXORGXRDP_GLAMOR -DGLAMOR_FOR_XORG
EXTRA_FLAGS += $(LIBDRM_CFLAGS) -DXORGXRDP_GLAMOR -DGLAMOR_FOR_XORG
EXTRA_SOURCES += xrdpdri2.c xrdpdri3.c
EXTRA_HEADERS += xrdpdri2.h xrdpdri3.h
endif
Expand Down

0 comments on commit dd04d2b

Please sign in to comment.