aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Erat <derat@google.com>2015-10-06 17:22:30 -0600
committerDaniel Erat <derat@google.com>2015-10-06 17:22:30 -0600
commitcb20be47d408e88d425bd679579d20be593ac8a9 (patch)
treea91879abad3654deccc85b31a66c93613b52b3ab
parentc2a4b05a931fbf3ecbf1915049b549b33dae8ba5 (diff)
downloadnativepower-cb20be47d408e88d425bd679579d20be593ac8a9.tar.gz
Include native tests in debug Brillo builds.
Build libnativepower_tests and nativepowerman_tests when BRILO is defined and the debug flag is present. Change-Id: Iba990c8bf1da0c8cf03e314fbf184f6249b26c50
-rw-r--r--client/Android.mk3
-rw-r--r--daemon/Android.mk3
2 files changed, 6 insertions, 0 deletions
diff --git a/client/Android.mk b/client/Android.mk
index be914b5..69fdd3f 100644
--- a/client/Android.mk
+++ b/client/Android.mk
@@ -48,6 +48,9 @@ include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := libnativepower_tests
+ifdef BRILLO
+ LOCAL_MODULE_TAGS := debug
+endif
LOCAL_CPP_EXTENSION := .cc
LOCAL_CFLAGS := $(libnativepower_CommonCFlags)
LOCAL_C_INCLUDES := $(libnativepower_CommonCIncludes)
diff --git a/daemon/Android.mk b/daemon/Android.mk
index fdc18d4..0eb0f5d 100644
--- a/daemon/Android.mk
+++ b/daemon/Android.mk
@@ -89,6 +89,9 @@ include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := nativepowerman_tests
+ifdef BRILLO
+ LOCAL_MODULE_TAGS := debug
+endif
LOCAL_CPP_EXTENSION := .cc
LOCAL_CFLAGS := $(nativepowerman_CommonCFlags)
LOCAL_STATIC_LIBRARIES := libnativepowerman libgtest libBionicGtestMain