Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
| 3 | common_SRC_FILES := \ |
| 4 | src/booleans.c \ |
Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 5 | src/canonicalize_context.c \ |
Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 6 | src/disable.c \ |
| 7 | src/enabled.c \ |
| 8 | src/fgetfilecon.c \ |
Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 9 | src/fsetfilecon.c \ |
| 10 | src/getenforce.c \ |
| 11 | src/getfilecon.c \ |
| 12 | src/getpeercon.c \ |
Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 13 | src/lgetfilecon.c \ |
| 14 | src/load_policy.c \ |
| 15 | src/lsetfilecon.c \ |
| 16 | src/policyvers.c \ |
| 17 | src/procattr.c \ |
| 18 | src/setenforce.c \ |
| 19 | src/setfilecon.c \ |
| 20 | src/context.c \ |
| 21 | src/mapping.c \ |
| 22 | src/stringrep.c \ |
| 23 | src/compute_create.c \ |
| 24 | src/compute_av.c \ |
| 25 | src/avc.c \ |
| 26 | src/avc_internal.c \ |
| 27 | src/avc_sidtab.c \ |
| 28 | src/get_initial_context.c \ |
Stephen Smalley | 4f2b056 | 2013-04-16 09:24:01 -0400 | [diff] [blame] | 29 | src/checkAccess.c \ |
| 30 | src/sestatus.c \ |
| 31 | src/deny_unknown.c |
Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 32 | |
Stephen Smalley | cc3d76d | 2012-01-24 08:33:20 -0500 | [diff] [blame] | 33 | common_HOST_FILES := \ |
| 34 | src/callbacks.c \ |
| 35 | src/check_context.c \ |
| 36 | src/freecon.c \ |
| 37 | src/init.c \ |
| 38 | src/label.c \ |
Stephen Smalley | 35b0108 | 2012-04-04 10:06:13 -0400 | [diff] [blame] | 39 | src/label_file.c \ |
| 40 | src/label_android_property.c |
Stephen Smalley | cc3d76d | 2012-01-24 08:33:20 -0500 | [diff] [blame] | 41 | |
| 42 | |
Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 43 | common_COPY_HEADERS_TO := selinux |
| 44 | common_COPY_HEADERS := include/selinux/selinux.h include/selinux/label.h include/selinux/context.h include/selinux/avc.h include/selinux/android.h |
| 45 | |
| 46 | include $(CLEAR_VARS) |
Stephen Smalley | cc3d76d | 2012-01-24 08:33:20 -0500 | [diff] [blame] | 47 | LOCAL_SRC_FILES := $(common_SRC_FILES) $(common_HOST_FILES) src/android.c |
Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 48 | LOCAL_MODULE:= libselinux |
| 49 | LOCAL_MODULE_TAGS := eng |
Stephen Smalley | 826cc29 | 2014-01-28 15:04:22 -0500 | [diff] [blame] | 50 | LOCAL_STATIC_LIBRARIES := libmincrypt |
Nick Kralevich | d0b768a | 2014-09-27 19:12:49 -0700 | [diff] [blame] | 51 | LOCAL_C_INCLUDES := external/pcre |
| 52 | LOCAL_WHOLE_STATIC_LIBRARIES := libpcre |
Nick Kralevich | f58dbdd | 2014-07-01 11:01:13 -0700 | [diff] [blame] | 53 | # 1003 corresponds to auditd, from system/core/logd/event.logtags |
| 54 | LOCAL_CFLAGS := -DAUDITD_LOG_TAG=1003 |
Chih-Hung Hsieh | a17b8a9 | 2014-12-08 16:43:52 -0800 | [diff] [blame^] | 55 | # mapping.c has redundant check of array p_in->perms. |
| 56 | LOCAL_CLANG_CFLAGS += -Wno-pointer-bool-conversion |
| 57 | |
Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 58 | include $(BUILD_STATIC_LIBRARY) |
| 59 | |
| 60 | include $(CLEAR_VARS) |
| 61 | LOCAL_CFLAGS := -DHOST |
Stephen Smalley | cc3d76d | 2012-01-24 08:33:20 -0500 | [diff] [blame] | 62 | |
| 63 | ifeq ($(HOST_OS),darwin) |
| 64 | LOCAL_CFLAGS += -DDARWIN |
| 65 | endif |
| 66 | |
| 67 | LOCAL_SRC_FILES := $(common_HOST_FILES) |
Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 68 | LOCAL_MODULE:= libselinux |
| 69 | LOCAL_MODULE_TAGS := eng |
| 70 | LOCAL_COPY_HEADERS_TO := $(common_COPY_HEADERS_TO) |
Stephen Smalley | d409de2 | 2012-01-24 10:56:26 -0500 | [diff] [blame] | 71 | LOCAL_COPY_HEADERS := $(common_COPY_HEADERS) |
Nick Kralevich | d0b768a | 2014-09-27 19:12:49 -0700 | [diff] [blame] | 72 | LOCAL_WHOLE_STATIC_LIBRARIES := libpcre |
| 73 | LOCAL_C_INCLUDES := external/pcre |
Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 74 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 75 | |
| 76 | include $(CLEAR_VARS) |
Stephen Smalley | cc3d76d | 2012-01-24 08:33:20 -0500 | [diff] [blame] | 77 | LOCAL_SRC_FILES := $(common_SRC_FILES) $(common_HOST_FILES) src/android.c |
Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 78 | LOCAL_MODULE:= libselinux |
| 79 | LOCAL_MODULE_TAGS := eng |
| 80 | LOCAL_COPY_HEADERS_TO := $(common_COPY_HEADERS_TO) |
| 81 | LOCAL_COPY_HEADERS := $(common_COPY_HEADERS) |
| 82 | LOCAL_PRELINK_MODULE := false |
Stephen Smalley | 826cc29 | 2014-01-28 15:04:22 -0500 | [diff] [blame] | 83 | LOCAL_STATIC_LIBRARIES := libmincrypt |
Nick Kralevich | d0b768a | 2014-09-27 19:12:49 -0700 | [diff] [blame] | 84 | LOCAL_C_INCLUDES := external/pcre |
| 85 | LOCAL_SHARED_LIBRARIES := liblog libpcre |
Nick Kralevich | f58dbdd | 2014-07-01 11:01:13 -0700 | [diff] [blame] | 86 | # 1003 corresponds to auditd, from system/core/logd/event.logtags |
| 87 | LOCAL_CFLAGS := -DAUDITD_LOG_TAG=1003 |
Chih-Hung Hsieh | a17b8a9 | 2014-12-08 16:43:52 -0800 | [diff] [blame^] | 88 | # mapping.c has redundant check of array p_in->perms. |
| 89 | LOCAL_CLANG_CFLAGS += -Wno-pointer-bool-conversion |
| 90 | |
Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 91 | include $(BUILD_SHARED_LIBRARY) |