Merge "Revert "Move host functionality to common selinux dir""

This commit is contained in:
Jeffrey Vander Stoep 2015-05-14 18:04:58 +00:00 committed by Gerrit Code Review
commit 3c4d14e332
3 changed files with 66 additions and 154 deletions

View file

@ -1 +1 @@
include $(call all-named-subdir-makefiles, libsepol checkpolicy libselinux)
include $(call all-named-subdir-makefiles, libsepol checkpolicy)

View file

@ -1,65 +0,0 @@
LOCAL_PATH:= $(call my-dir)
common_HOST_FILES := \
src/enabled.c \
src/setrans_client.c \
src/callbacks.c \
src/check_context.c \
src/freecon.c \
src/init.c \
src/label.c \
src/lgetfilecon.c \
src/canonicalize_context.c \
src/matchpathcon.c \
src/label_media.c \
src/label_x.c \
src/label_db.c \
src/seusers.c \
src/load_policy.c \
src/policyvers.c \
src/selinux_config.c \
src/label_file.c \
src/lsetfilecon.c \
src/disable.c \
src/booleans.c \
src/getenforce.c \
src/setenforce.c \
src/label_android_property.c
common_COPY_HEADERS_TO := selinux
common_COPY_HEADERS := \
include/selinux/selinux.h \
include/selinux/label.h \
include/selinux/context.h \
include/selinux/avc.h \
include/selinux/get_default_type.h
include $(CLEAR_VARS)
LOCAL_CFLAGS := -DHOST -D_GNU_SOURCE
ifeq ($(HOST_OS),darwin)
LOCAL_CFLAGS += -DDARWIN
endif
LOCAL_SRC_FILES := $(common_HOST_FILES)
LOCAL_MODULE:= libselinux
LOCAL_MODULE_TAGS := eng
LOCAL_WHOLE_STATIC_LIBRARIES := libpcre libsepol
LOCAL_C_INCLUDES := external/pcre
include $(BUILD_HOST_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_CFLAGS := -DHOST -D_GNU_SOURCE
ifeq ($(HOST_OS),darwin)
LOCAL_CFLAGS += -DDARWIN
endif
LOCAL_SRC_FILES := $(common_HOST_FILES)
LOCAL_MODULE:= libselinux
LOCAL_MODULE_TAGS := eng
LOCAL_COPY_HEADERS_TO := $(common_COPY_HEADERS_TO)
LOCAL_COPY_HEADERS := $(common_COPY_HEADERS)
LOCAL_WHOLE_STATIC_LIBRARIES := libpcre libsepol
LOCAL_C_INCLUDES := external/pcre
include $(BUILD_HOST_SHARED_LIBRARY)

View file

@ -67,29 +67,6 @@ common_cflags := \
-Wshadow -Wmissing-noreturn \
-Wmissing-format-attribute
common_COPY_HEADERS := \
include/sepol/handle.h \
include/sepol/policydb.h \
cil/include/cil/cil.h \
include/sepol/sepol.h \
include/sepol/policydb.h \
include/sepol/user_record.h \
include/sepol/context_record.h \
include/sepol/iface_record.h \
include/sepol/port_record.h \
include/sepol/boolean_record.h \
include/sepol/node_record.h \
include/sepol/booleans.h \
include/sepol/interfaces.h \
include/sepol/ports.h \
include/sepol/nodes.h \
include/sepol/users.h \
include/sepol/handle.h \
include/sepol/debug.h \
include/sepol/policydb.h \
include/sepol/module.h \
include/sepol/context.h
ifeq ($(HOST_OS), darwin)
common_cflags += -DDARWIN
endif
@ -114,7 +91,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := libsepol
LOCAL_MODULE_TAGS := optional
LOCAL_COPY_HEADERS_TO := sepol
LOCAL_COPY_HEADERS := $(common_COPY_HEADERS)
LOCAL_COPY_HEADERS := include/sepol/handle.h include/sepol/policydb.h cil/include/cil/cil.h
LOCAL_C_INCLUDES := $(common_includes)
LOCAL_CFLAGS := $(yacc_flags) $(common_cflags)
LOCAL_SRC_FILES := $(common_src_files) $(cil_src_files)