mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
Xace: always build xace
Xace callbacks are needed in many places, and the their overhead (when not actually used) is really minimal. So it doesn't make much sense having extra complexity for disabling it at build time. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
0580a054a4
commit
dcf7890076
@@ -4,6 +4,7 @@ srcs_xext = [
|
||||
'shape.c',
|
||||
'sleepuntil.c',
|
||||
'sync.c',
|
||||
'xace.c',
|
||||
'xcmisc.c',
|
||||
'xtest.c',
|
||||
]
|
||||
@@ -33,10 +34,6 @@ if build_screensaver
|
||||
srcs_xext += 'saver.c'
|
||||
endif
|
||||
|
||||
if build_xace
|
||||
srcs_xext += 'xace.c'
|
||||
endif
|
||||
|
||||
if build_xf86bigfont
|
||||
srcs_xext += 'xf86bigfont.c'
|
||||
endif
|
||||
|
||||
25
Xext/xace.h
25
Xext/xace.h
@@ -20,8 +20,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#ifndef _XACE_H
|
||||
#define _XACE_H
|
||||
|
||||
#ifdef XACE
|
||||
|
||||
#define XACE_MAJOR_VERSION 2
|
||||
#define XACE_MINOR_VERSION 0
|
||||
|
||||
@@ -107,27 +105,4 @@ void XaceCensorImage(ClientPtr client,
|
||||
int x, int y, int w, int h,
|
||||
unsigned int format, char *pBuf);
|
||||
|
||||
#else /* XACE */
|
||||
|
||||
/* Default window background */
|
||||
#define XaceBackgroundNoneState(w) None
|
||||
|
||||
/* Define calls away when XACE is not being built. */
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define XaceHookIsSet(args...) 0
|
||||
#define XaceHookDispatch(args...) Success
|
||||
#define XaceHookPropertyAccess(args...) Success
|
||||
#define XaceHookSelectionAccess(args...) Success
|
||||
#define XaceCensorImage(args...) { ; }
|
||||
#else
|
||||
#define XaceHookIsSet(...) 0
|
||||
#define XaceHookDispatch(...) Success
|
||||
#define XaceHookPropertyAccess(...) Success
|
||||
#define XaceHookSelectionAccess(...) Success
|
||||
#define XaceCensorImage(...) { ; }
|
||||
#endif
|
||||
|
||||
#endif /* XACE */
|
||||
|
||||
#endif /* _XACE_H */
|
||||
|
||||
@@ -228,7 +228,7 @@ conf_data.set('RES', build_res ? '1' : false)
|
||||
conf_data.set('RENDER', '1')
|
||||
conf_data.set('SCREENSAVER', build_screensaver ? '1' : false)
|
||||
conf_data.set('SHAPE', '1')
|
||||
conf_data.set('XACE', build_xace ? '1' : false)
|
||||
conf_data.set('XACE', '1')
|
||||
conf_data.set('XCMISC', '1')
|
||||
conf_data.set('XCSECURITY', build_xsecurity ? '1' : false)
|
||||
conf_data.set('CONFIG_NAMESPACE', build_namespace ? '1' : false)
|
||||
|
||||
13
meson.build
13
meson.build
@@ -502,22 +502,9 @@ if build_res
|
||||
build_hashtable = true
|
||||
endif
|
||||
|
||||
build_xace = get_option('xace')
|
||||
build_xinerama = get_option('xinerama')
|
||||
|
||||
build_xsecurity = get_option('xcsecurity')
|
||||
if build_xsecurity
|
||||
if not build_xace
|
||||
error('cannot build Security extension without X-ACE')
|
||||
endif
|
||||
endif
|
||||
|
||||
build_namespace = get_option('namespace')
|
||||
if build_namespace
|
||||
if not build_xace
|
||||
error('cannot build Container extension without X-ACE')
|
||||
endif
|
||||
endif
|
||||
|
||||
build_xv = get_option('xv')
|
||||
build_xvmc = get_option('xvmc')
|
||||
|
||||
@@ -82,8 +82,6 @@ option('screensaver', type: 'boolean', value: true,
|
||||
description: 'ScreenSaver extension')
|
||||
option('xres', type: 'boolean', value: true,
|
||||
description: 'XRes extension')
|
||||
option('xace', type: 'boolean', value: true,
|
||||
description: 'X-ACE extension')
|
||||
option('xselinux', type: 'combo', choices: ['true', 'false', 'auto'], value: 'auto',
|
||||
description: 'XSELINUX extension')
|
||||
option('namespace', type: 'boolean', value: true,
|
||||
|
||||
Reference in New Issue
Block a user