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 |
Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 51 | include $(BUILD_STATIC_LIBRARY) |
| 52 | |
| 53 | include $(CLEAR_VARS) |
| 54 | LOCAL_CFLAGS := -DHOST |
Stephen Smalley | cc3d76d | 2012-01-24 08:33:20 -0500 | [diff] [blame] | 55 | |
| 56 | ifeq ($(HOST_OS),darwin) |
| 57 | LOCAL_CFLAGS += -DDARWIN |
| 58 | endif |
| 59 | |
| 60 | LOCAL_SRC_FILES := $(common_HOST_FILES) |
Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 61 | LOCAL_MODULE:= libselinux |
| 62 | LOCAL_MODULE_TAGS := eng |
| 63 | LOCAL_COPY_HEADERS_TO := $(common_COPY_HEADERS_TO) |
Stephen Smalley | d409de2 | 2012-01-24 10:56:26 -0500 | [diff] [blame] | 64 | LOCAL_COPY_HEADERS := $(common_COPY_HEADERS) |
Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 65 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 66 | |
| 67 | include $(CLEAR_VARS) |
Stephen Smalley | cc3d76d | 2012-01-24 08:33:20 -0500 | [diff] [blame] | 68 | LOCAL_SRC_FILES := $(common_SRC_FILES) $(common_HOST_FILES) src/android.c |
Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 69 | LOCAL_MODULE:= libselinux |
| 70 | LOCAL_MODULE_TAGS := eng |
| 71 | LOCAL_COPY_HEADERS_TO := $(common_COPY_HEADERS_TO) |
| 72 | LOCAL_COPY_HEADERS := $(common_COPY_HEADERS) |
| 73 | LOCAL_PRELINK_MODULE := false |
Stephen Smalley | 826cc29 | 2014-01-28 15:04:22 -0500 | [diff] [blame^] | 74 | LOCAL_STATIC_LIBRARIES := libmincrypt |
Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 75 | include $(BUILD_SHARED_LIBRARY) |