Browse files

Add Android.mk

  • Loading branch information...
1 parent c538216 commit cdb15b3b046b3a968ca8d358f4df4f3376d8cb02 @michaelwu michaelwu committed Apr 12, 2012
Showing with 28 additions and 0 deletions.
  1. +28 −0 Android.mk
View
28 Android.mk
@@ -0,0 +1,28 @@
+LOCAL_PATH:= $(call my-dir)
+
+#
+# Gaia glue
+#
+
+include $(CLEAR_VARS)
+GAIA_PATH := $(abspath $(LOCAL_PATH))
+
+LOCAL_MODULE := gaia
+LOCAL_MODULE_CLASS := DATA
+LOCAL_MODULE_TAGS := optional eng
+LOCAL_SRC_FILES := profile.tar.gz
+LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/local
+include $(BUILD_PREBUILT)
+
+$(LOCAL_INSTALLED_MODULE):
+ @echo Install dir: $(TARGET_OUT_DATA)/local
+ rm -rf $(TARGET_OUT_DATA)/local/OfflineCache
+ rm -rf $(TARGET_OUT_DATA)/local/webapps
+ mkdir -p $(TARGET_OUT_DATA)/local
+ cd $(TARGET_OUT_DATA)/local && tar xfz $(abspath $<)
+
+.PHONY: $(LOCAL_PATH)/profile.tar.gz
+$(LOCAL_PATH)/profile.tar.gz:
+ $(MAKE) -C $(GAIA_PATH) profile
+ cd $(GAIA_PATH)/profile && tar cfz $(abspath $@) OfflineCache webapps
+

0 comments on commit cdb15b3

Please sign in to comment.