mirror of
https://github.com/topjohnwu/selinux.git
synced 2024-12-11 13:26:01 +00:00
Remove Android.mk files and only keep them in Android tree
The corresponding repository in Android tree: https://android.googlesource.com/platform/external/selinux/
This commit is contained in:
parent
119ddaeb38
commit
9bd073afc6
@ -1,2 +0,0 @@
|
||||
# This empty Android.mk file will prevent the build system
|
||||
# from building anything below this point.
|
@ -1,73 +0,0 @@
|
||||
LOCAL_PATH:= $(call my-dir)
|
||||
|
||||
common_src_files := \
|
||||
policy_parse.y \
|
||||
policy_scan.l \
|
||||
queue.c \
|
||||
module_compiler.c \
|
||||
parse_util.c \
|
||||
policy_define.c
|
||||
|
||||
common_cflags := \
|
||||
-Wall -Wshadow -O2 \
|
||||
-pipe -fno-strict-aliasing \
|
||||
|
||||
common_includes := \
|
||||
$(LOCAL_PATH)/ \
|
||||
$(LOCAL_PATH)/../libsepol/include/ \
|
||||
$(LOCAL_PATH)/../libsepol/src/ \
|
||||
|
||||
##
|
||||
# "-x c" forces the lex/yacc files to be compiled as c the build system
|
||||
# otherwise forces them to be c++. Need to also add an explicit -std because the
|
||||
# build system will soon default C++ to -std=c++11.
|
||||
yacc_flags := -x c -std=gnu89
|
||||
|
||||
|
||||
##
|
||||
# checkpolicy
|
||||
#
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := checkpolicy
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_C_INCLUDES := $(common_includes)
|
||||
LOCAL_CFLAGS := $(yacc_flags) $(common_cflags)
|
||||
LOCAL_SRC_FILES := $(common_src_files) checkpolicy.c
|
||||
LOCAL_STATIC_LIBRARIES := libsepol
|
||||
LOCAL_YACCFLAGS := -v
|
||||
LOCAL_MODULE_CLASS := EXECUTABLES
|
||||
|
||||
include $(BUILD_HOST_EXECUTABLE)
|
||||
|
||||
|
||||
##
|
||||
# checkmodule
|
||||
#
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := checkmodule
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_C_INCLUDES := $(common_includes)
|
||||
LOCAL_CFLAGS := $(yacc_flags) $(common_cflags)
|
||||
LOCAL_SRC_FILES := $(common_src_files) checkmodule.c
|
||||
LOCAL_STATIC_LIBRARIES := libsepol
|
||||
LOCAL_YACCFLAGS := -v
|
||||
LOCAL_MODULE_CLASS := EXECUTABLES
|
||||
|
||||
include $(BUILD_HOST_EXECUTABLE)
|
||||
|
||||
##
|
||||
# dispol
|
||||
#
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := dispol
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_C_INCLUDES := $(common_includes)
|
||||
LOCAL_CFLAGS := $(common_cflags)
|
||||
LOCAL_SRC_FILES := test/dispol.c
|
||||
LOCAL_STATIC_LIBRARIES := libsepol
|
||||
LOCAL_MODULE_CLASS := EXECUTABLES
|
||||
|
||||
include $(BUILD_HOST_EXECUTABLE)
|
@ -1,138 +0,0 @@
|
||||
LOCAL_PATH:= $(call my-dir)
|
||||
|
||||
common_src_files := \
|
||||
src/assertion.c \
|
||||
src/avrule_block.c \
|
||||
src/avtab.c \
|
||||
src/boolean_record.c \
|
||||
src/booleans.c \
|
||||
src/conditional.c \
|
||||
src/constraint.c \
|
||||
src/context.c \
|
||||
src/context_record.c \
|
||||
src/debug.c \
|
||||
src/ebitmap.c \
|
||||
src/expand.c \
|
||||
src/genbools.c \
|
||||
src/genusers.c \
|
||||
src/handle.c \
|
||||
src/hashtab.c \
|
||||
src/hierarchy.c \
|
||||
src/iface_record.c \
|
||||
src/interfaces.c \
|
||||
src/link.c \
|
||||
src/mls.c \
|
||||
src/module.c \
|
||||
src/module_to_cil.c \
|
||||
src/node_record.c \
|
||||
src/nodes.c \
|
||||
src/polcaps.c \
|
||||
src/policydb.c \
|
||||
src/policydb_convert.c \
|
||||
src/policydb_public.c \
|
||||
src/port_record.c \
|
||||
src/ports.c \
|
||||
src/roles.c \
|
||||
src/services.c \
|
||||
src/sidtab.c \
|
||||
src/symtab.c \
|
||||
src/user_record.c \
|
||||
src/users.c \
|
||||
src/util.c \
|
||||
src/write.c
|
||||
|
||||
cil_src_files := \
|
||||
cil/src/cil_binary.c \
|
||||
cil/src/cil_build_ast.c \
|
||||
cil/src/cil.c \
|
||||
cil/src/cil_copy_ast.c \
|
||||
cil/src/cil_find.c \
|
||||
cil/src/cil_fqn.c \
|
||||
cil/src/cil_lexer.l \
|
||||
cil/src/cil_list.c \
|
||||
cil/src/cil_log.c \
|
||||
cil/src/cil_mem.c \
|
||||
cil/src/cil_parser.c \
|
||||
cil/src/cil_policy.c \
|
||||
cil/src/cil_post.c \
|
||||
cil/src/cil_reset_ast.c \
|
||||
cil/src/cil_resolve_ast.c \
|
||||
cil/src/cil_stack.c \
|
||||
cil/src/cil_strpool.c \
|
||||
cil/src/cil_symtab.c \
|
||||
cil/src/cil_tree.c \
|
||||
cil/src/cil_verify.c
|
||||
|
||||
common_cflags := \
|
||||
-D_GNU_SOURCE \
|
||||
-Wall -W -Wundef \
|
||||
-Wshadow -Wmissing-noreturn \
|
||||
-Wmissing-format-attribute
|
||||
|
||||
common_includes := \
|
||||
$(LOCAL_PATH)/include/ \
|
||||
$(LOCAL_PATH)/src/ \
|
||||
$(LOCAL_PATH)/cil/include/ \
|
||||
$(LOCAL_PATH)/cil/src/ \
|
||||
|
||||
##
|
||||
# "-x c" forces the lex/yacc files to be compiled as c the build system
|
||||
# otherwise forces them to be c++. Need to also add an explicit -std because the
|
||||
# build system will soon default C++ to -std=c++11.
|
||||
yacc_flags := -x c -std=gnu89
|
||||
|
||||
##
|
||||
# libsepol.so
|
||||
#
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := libsepol
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_COPY_HEADERS_TO := sepol
|
||||
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)
|
||||
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
|
||||
|
||||
include $(BUILD_HOST_SHARED_LIBRARY)
|
||||
|
||||
##
|
||||
# libsepol.a
|
||||
#
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := libsepol
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_C_INCLUDES := $(common_includes)
|
||||
LOCAL_CFLAGS := $(yacc_flags) $(common_cflags)
|
||||
LOCAL_SRC_FILES := $(common_src_files) $(cil_src_files)
|
||||
LOCAL_MODULE_CLASS := STATIC_LIBRARIES
|
||||
|
||||
include $(BUILD_HOST_STATIC_LIBRARY)
|
||||
|
||||
##
|
||||
# chkcon
|
||||
#
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := chkcon
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_C_INCLUDES := $(common_includes)
|
||||
LOCAL_CFLAGS := $(common_cflags)
|
||||
LOCAL_SRC_FILES := utils/chkcon.c
|
||||
LOCAL_SHARED_LIBRARIES := libsepol
|
||||
LOCAL_MODULE_CLASS := EXECUTABLES
|
||||
|
||||
include $(BUILD_HOST_EXECUTABLE)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := libsepol
|
||||
LOCAL_MODULE_TAGES := optional
|
||||
LOCAL_C_INCLUDES := $(common_includes)
|
||||
LOCAL_CFLAGS := $(common_cflags)
|
||||
LOCAL_SRC_FILES := $(common_src_files)
|
||||
LOCAL_MODULE_CLASS := STATIC_LIBRARIES
|
||||
|
||||
include $(BUILD_STATIC_LIBRARY)
|
@ -1,26 +0,0 @@
|
||||
LOCAL_PATH:= $(call my-dir)
|
||||
|
||||
common_src_files := secilc.c
|
||||
|
||||
common_cflags := \
|
||||
-Wall -Wshadow -O2 \
|
||||
-pipe -fno-strict-aliasing \
|
||||
|
||||
common_includes := \
|
||||
$(LOCAL_PATH)/../libsepol/cil/include/ \
|
||||
$(LOCAL_PATH)/../libsepol/include/ \
|
||||
|
||||
##
|
||||
# secilc
|
||||
#
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := secilc
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_C_INCLUDES := $(common_includes)
|
||||
LOCAL_CFLAGS := $(common_cflags)
|
||||
LOCAL_SRC_FILES := secilc.c
|
||||
LOCAL_SHARED_LIBRARIES := libsepol
|
||||
LOCAL_MODULE_CLASS := EXECUTABLES
|
||||
|
||||
include $(BUILD_HOST_EXECUTABLE)
|
Loading…
Reference in New Issue
Block a user