summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilad Arnold <garnold@google.com>2015-08-13 14:14:03 -0700
committerGilad Arnold <garnold@google.com>2015-08-13 14:15:21 -0700
commite3f204a9ddb37401b3e19e1a17a1f836f0c0b8df (patch)
tree852422ae476fa3ce0ed684b34c0100d875c291d6
parent7db56bd4c91a516637995b9bf75241cb0c323bf9 (diff)
downloadfirewalld-e3f204a9ddb37401b3e19e1a17a1f836f0c0b8df.tar.gz
Only define build targets if building in Linux.
Building of firewalld depends on DBus bindings generator, which currently isn't available on other hosts (notably, Darwin). Bug: 22827985 Change-Id: I39e7b41658752090e684885bec2c905fad33aa98
-rw-r--r--Android.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 03b9e3a..3a0644a 100644
--- a/Android.mk
+++ b/Android.mk
@@ -36,6 +36,8 @@ define firewalld_common
LOCAL_CPPFLAGS += -Wno-sign-promo
endef
+ifeq ($(HOST_OS),linux)
+
# === libfirewalld (static library) ===
include $(CLEAR_VARS)
LOCAL_MODULE := libfirewalld
@@ -80,3 +82,5 @@ LOCAL_SRC_FILES := \
LOCAL_STATIC_LIBRARIES := libfirewalld libgmock
$(eval $(firewalld_common))
include $(BUILD_NATIVE_TEST)
+
+endif # HOST_OS == linux