XQuartz: Added a --enable-integrated-xpbproxy configure option for building xpbproxy as an app or as a thread.
(cherry picked from commit 8edc5fb38c922f28659d2f823148339a8907c4d9) (cherry picked from commit 88033a66a5549870fd053795b019d4c22950425b)
This commit is contained in:
parent
505c216d03
commit
6020c3fbfe
|
@ -547,6 +547,7 @@ AC_ARG_ENABLE(dmx, AS_HELP_STRING([--enable-dmx], [Build DMX server (d
|
||||||
AC_ARG_ENABLE(xvfb, AS_HELP_STRING([--enable-xvfb], [Build Xvfb server (default: yes)]), [XVFB=$enableval], [XVFB=yes])
|
AC_ARG_ENABLE(xvfb, AS_HELP_STRING([--enable-xvfb], [Build Xvfb server (default: yes)]), [XVFB=$enableval], [XVFB=yes])
|
||||||
AC_ARG_ENABLE(xnest, AS_HELP_STRING([--enable-xnest], [Build Xnest server (default: auto)]), [XNEST=$enableval], [XNEST=auto])
|
AC_ARG_ENABLE(xnest, AS_HELP_STRING([--enable-xnest], [Build Xnest server (default: auto)]), [XNEST=$enableval], [XNEST=auto])
|
||||||
AC_ARG_ENABLE(xquartz, AS_HELP_STRING([--enable-xquartz], [Build Xquartz server for OS-X (default: auto)]), [XQUARTZ=$enableval], [XQUARTZ=auto])
|
AC_ARG_ENABLE(xquartz, AS_HELP_STRING([--enable-xquartz], [Build Xquartz server for OS-X (default: auto)]), [XQUARTZ=$enableval], [XQUARTZ=auto])
|
||||||
|
AC_ARG_ENABLE(integrated-xpbproxy, AS_HELP_STRING([--enable-integrated-xpbproxy], [Build xpbproxy into Xquartz as a separate thread (default: no)]), [INTEGRATED_XPBPROXY=$enableval], [INTEGRATED_XPBPROXY=no])
|
||||||
AC_ARG_ENABLE(xwin, AS_HELP_STRING([--enable-xwin], [Build XWin server (default: auto)]), [XWIN=$enableval], [XWIN=auto])
|
AC_ARG_ENABLE(xwin, AS_HELP_STRING([--enable-xwin], [Build XWin server (default: auto)]), [XWIN=$enableval], [XWIN=auto])
|
||||||
dnl kdrive and its subsystems
|
dnl kdrive and its subsystems
|
||||||
AC_ARG_ENABLE(kdrive, AS_HELP_STRING([--enable-kdrive], [Build kdrive servers (default: no)]), [KDRIVE=$enableval], [KDRIVE=no])
|
AC_ARG_ENABLE(kdrive, AS_HELP_STRING([--enable-kdrive], [Build kdrive servers (default: no)]), [KDRIVE=$enableval], [KDRIVE=no])
|
||||||
|
@ -1536,6 +1537,10 @@ if test "x$XQUARTZ" = xyes; then
|
||||||
CFLAGS="${CFLAGS} -DROOTLESS_WORKAROUND -DNO_ALLOCA"
|
CFLAGS="${CFLAGS} -DROOTLESS_WORKAROUND -DNO_ALLOCA"
|
||||||
|
|
||||||
PKG_CHECK_MODULES(APPLEWM, [applewmproto >= 1.1.0])
|
PKG_CHECK_MODULES(APPLEWM, [applewmproto >= 1.1.0])
|
||||||
|
|
||||||
|
if test "x$INTEGRATED_XPBPROXY" = xyes ; then
|
||||||
|
AC_DEFINE(INTEGRATED_XPBPROXY,1,[Build xpbproxy into the server rather than as a standalone app])
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Support for objc in autotools is minimal and not documented.
|
# Support for objc in autotools is minimal and not documented.
|
||||||
|
@ -1552,6 +1557,7 @@ _AM_DEPENDENCIES([OBJC])
|
||||||
AM_CONDITIONAL(HAVE_XPLUGIN, [test "x$ac_cv_lib_Xplugin_xp_init" = xyes])
|
AM_CONDITIONAL(HAVE_XPLUGIN, [test "x$ac_cv_lib_Xplugin_xp_init" = xyes])
|
||||||
AM_CONDITIONAL(HAVE_AGL_FRAMEWORK, [test "x$xorg_cv_AGL_framework" = xyes])
|
AM_CONDITIONAL(HAVE_AGL_FRAMEWORK, [test "x$xorg_cv_AGL_framework" = xyes])
|
||||||
AM_CONDITIONAL(XQUARTZ, [test "x$XQUARTZ" = xyes])
|
AM_CONDITIONAL(XQUARTZ, [test "x$XQUARTZ" = xyes])
|
||||||
|
AM_CONDITIONAL(INTEGRATED_XPBPROXY, [test "x$INTEGRATED_XPBPROXY" = xyes])
|
||||||
|
|
||||||
dnl DMX DDX
|
dnl DMX DDX
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,9 @@ X11_LDADD = \
|
||||||
$(top_builddir)/miext/rootless/librootless.la \
|
$(top_builddir)/miext/rootless/librootless.la \
|
||||||
$(DARWIN_LIBS) $(XSERVER_LIBS) $(XSERVER_SYS_LIBS) -lXplugin -lX11
|
$(DARWIN_LIBS) $(XSERVER_LIBS) $(XSERVER_SYS_LIBS) -lXplugin -lX11
|
||||||
|
|
||||||
# $(top_builddir)/hw/xquartz/GL/libCGLCore.la \
|
if INTEGRATED_XPBPROXY
|
||||||
# $(top_builddir)/glx/libglx.la
|
X11_LDADD += $(top_builddir)/hw/xquartz/pbproxy/libxpbproxy.la
|
||||||
|
endif
|
||||||
|
|
||||||
X11_LDFLAGS = \
|
X11_LDFLAGS = \
|
||||||
-XCClinker -Objc \
|
-XCClinker -Objc \
|
||||||
|
@ -62,4 +63,3 @@ EXTRA_DIST = \
|
||||||
launchd_fd.h \
|
launchd_fd.h \
|
||||||
mach_startup.defs \
|
mach_startup.defs \
|
||||||
mach_startup_types.h
|
mach_startup_types.h
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,22 @@
|
||||||
AM_CPPFLAGS=-F/System/Library/Frameworks/ApplicationServices.framework/Frameworks
|
AM_CPPFLAGS=-F/System/Library/Frameworks/ApplicationServices.framework/Frameworks
|
||||||
AM_LDFLAGS=-L/usr/X11/lib -lX11 -lAppleWM -framework AppKit -framework Foundation -framework ApplicationServices
|
AM_LDFLAGS=-L/usr/X11/lib -lX11 -lAppleWM -framework AppKit -framework Foundation -framework ApplicationServices
|
||||||
|
|
||||||
noinst_PROGRAMS = pbproxy
|
SOURCE_FILES = \
|
||||||
|
|
||||||
pbproxy_SOURCES = \
|
|
||||||
trick_autotools.c \
|
trick_autotools.c \
|
||||||
main.m \
|
|
||||||
x-input.m \
|
x-input.m \
|
||||||
x-selection.m
|
x-selection.m
|
||||||
|
|
||||||
|
noinst_LTLIBRARIES = libxpbproxy.la
|
||||||
|
libxpbproxy_la_SOURCES = $(SOURCE_FILES)
|
||||||
|
|
||||||
|
if !INTEGRATED_XPBPROXY
|
||||||
|
|
||||||
|
bin_PROGRAMS = xpbproxy
|
||||||
|
xpbproxy_SOURCES = main.m
|
||||||
|
xpbproxy_LDADD = $(top_builddir)/hw/xquartz/pbproxy/libxpbproxy.la
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
pbproxy.h \
|
pbproxy.h \
|
||||||
x-selection.h
|
x-selection.h
|
||||||
|
|
||||||
|
|
|
@ -118,6 +118,9 @@
|
||||||
/* Have Quartz */
|
/* Have Quartz */
|
||||||
#undef XQUARTZ
|
#undef XQUARTZ
|
||||||
|
|
||||||
|
/* Build xpbproxy into Xquartz rather than a separate app */
|
||||||
|
#undef INTEGRATED_XPBPROXY
|
||||||
|
|
||||||
/* Define to 1 if you have the `m' library (-lm). */
|
/* Define to 1 if you have the `m' library (-lm). */
|
||||||
#undef HAVE_LIBM
|
#undef HAVE_LIBM
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue