aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNishanth Menon <nm@ti.com>2011-09-20 11:31:17 +0200
committerDaniel Lezcano <daniel.lezcano@linaro.org>2011-09-20 11:31:17 +0200
commitca27365c0c2d5d18b60365b14e97a29019db945c (patch)
tree19138996fb199931025bc9be03c7502b554ef998
parent962d1c46eca5d00580bcfe92eba82dd1805911ae (diff)
downloadpowerdebug-ca27365c0c2d5d18b60365b14e97a29019db945c.tar.gz
Add Android.mk file
Add Android.mk file to allow build on Android platform Build steps: clone repository to external/ directory, depending on Android variant being built, edit build/core/main.mk and add: subdirs += \ external/powerdebug \ Signed-off-by: Nishanth Menon <nm@ti.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
-rw-r--r--Android.mk34
1 files changed, 34 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
new file mode 100644
index 0000000..e062c1c
--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,34 @@
+LOCAL_PATH := $(call my-dir)
+include $(CLEAR_VARS)
+
+
+LOCAL_MODULE_TAGS := optional
+LOCAL_SHARED_LIBRARIES := libstlport
+
+LOCAL_STATIC_LIBRARIES := libncurses
+
+LOCAL_MODULE := powerdebug
+
+LOCAL_CPPFLAGS += \
+ -DDISABLE_I18N \
+ -DDISABLE_TRYCATCH \
+ -DNCURSES_NOMACROS \
+ -DDISABLE_WSTRING \
+ -DDEFAULT_TERM=\"xterm\" \
+ -DTERMINFO_PATH=\"/system/etc/terminfo\" \
+ -DDEFINE_ETHTOOL_CMD \
+
+LOCAL_C_INCLUDES += external/stlport/stlport/ \
+ external/stlport/stlport/stl \
+ external/stlport/stlport/using/h/ \
+ bionic \
+ external/ncurses \
+ external/ncurses/lib \
+ external/ncurses/include \
+ external/ncurses/include/ncurses
+
+LOCAL_SRC_FILES += \
+ powerdebug.c sensor.c clocks.c regulator.c \
+ display.c tree.c utils.c mainloop.c
+
+include $(BUILD_EXECUTABLE)