summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorDees Troy <dees_troy@teamw.in>2013-09-11 21:12:49 +0200
committerGerrit Code Review <gerrit@198.50.184.117>2013-09-12 17:38:15 +0200
commit4bf3b0d8043c6b05df2560b563f1eeaadb21d1a5 (patch)
treebfd0be9ce7e9e7583228dcfa833eefa3153c9956 /Android.mk
parentAdd TWFunc::Exec_Cmd() with no 'result' agrument (diff)
downloadandroid_bootable_recovery-4bf3b0d8043c6b05df2560b563f1eeaadb21d1a5.tar
android_bootable_recovery-4bf3b0d8043c6b05df2560b563f1eeaadb21d1a5.tar.gz
android_bootable_recovery-4bf3b0d8043c6b05df2560b563f1eeaadb21d1a5.tar.bz2
android_bootable_recovery-4bf3b0d8043c6b05df2560b563f1eeaadb21d1a5.tar.lz
android_bootable_recovery-4bf3b0d8043c6b05df2560b563f1eeaadb21d1a5.tar.xz
android_bootable_recovery-4bf3b0d8043c6b05df2560b563f1eeaadb21d1a5.tar.zst
android_bootable_recovery-4bf3b0d8043c6b05df2560b563f1eeaadb21d1a5.zip
Diffstat (limited to '')
-rw-r--r--Android.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/Android.mk b/Android.mk
index 4cee5c7cb..8fc99b2ac 100644
--- a/Android.mk
+++ b/Android.mk
@@ -79,13 +79,15 @@ ifeq ($(TARGET_USERIMAGES_USE_EXT4), true)
LOCAL_C_INCLUDES += system/extras/ext4_utils
LOCAL_SHARED_LIBRARIES += libext4_utils
endif
-
-ifeq ($(HAVE_SELINUX), true)
+ifneq ($(wildcard external/libselinux/Android.mk),)
+ TWHAVE_SELINUX := true
+endif
+ifeq ($(TWHAVE_SELINUX), true)
#LOCAL_C_INCLUDES += external/libselinux/include
#LOCAL_STATIC_LIBRARIES += libselinux
#LOCAL_CFLAGS += -DHAVE_SELINUX -g
endif # HAVE_SELINUX
-ifeq ($(HAVE_SELINUX), true)
+ifeq ($(TWHAVE_SELINUX), true)
LOCAL_C_INCLUDES += external/libselinux/include
LOCAL_SHARED_LIBRARIES += libselinux
LOCAL_CFLAGS += -DHAVE_SELINUX -g