libselinux: Add build option to disable X11 backend
Signed-off-by: Björn Bidar <bjorn.bidar@jolla.com>
This commit is contained in:
parent
6ebb35d261
commit
db0f2f382e
|
@ -17,7 +17,10 @@ endif
|
||||||
ifeq ($(DISABLE_BOOL),y)
|
ifeq ($(DISABLE_BOOL),y)
|
||||||
DISABLE_FLAGS+= -DDISABLE_BOOL
|
DISABLE_FLAGS+= -DDISABLE_BOOL
|
||||||
endif
|
endif
|
||||||
export DISABLE_SETRANS DISABLE_RPM DISABLE_FLAGS ANDROID_HOST
|
ifeq ($(DISABLE_X11),y)
|
||||||
|
DISABLE_FLAGS+= -DNO_X_BACKEND
|
||||||
|
endif
|
||||||
|
export DISABLE_SETRANS DISABLE_RPM DISABLE_FLAGS ANDROID_HOST DISABLE_X11
|
||||||
|
|
||||||
USE_PCRE2 ?= n
|
USE_PCRE2 ?= n
|
||||||
ifeq ($(USE_PCRE2),y)
|
ifeq ($(USE_PCRE2),y)
|
||||||
|
|
|
@ -126,6 +126,10 @@ DISABLE_FLAGS+= -DNO_ANDROID_BACKEND
|
||||||
SRCS:= $(filter-out label_backends_android.c, $(SRCS))
|
SRCS:= $(filter-out label_backends_android.c, $(SRCS))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(DISABLE_X11),y)
|
||||||
|
SRCS:= $(filter-out label_x.c, $(SRCS))
|
||||||
|
endif
|
||||||
|
|
||||||
SWIGRUBY = swig -Wall -ruby -o $(SWIGRUBYCOUT) -outdir ./ $(DISABLE_FLAGS)
|
SWIGRUBY = swig -Wall -ruby -o $(SWIGRUBYCOUT) -outdir ./ $(DISABLE_FLAGS)
|
||||||
|
|
||||||
all: $(LIBA) $(LIBSO) $(LIBPC)
|
all: $(LIBA) $(LIBSO) $(LIBPC)
|
||||||
|
|
Loading…
Reference in New Issue