summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Erfanian <erfanian@google.com>2017-08-17 12:09:08 -0700
committerEric Erfanian <erfanian@google.com>2017-08-17 23:15:17 +0000
commitea3655aaf18b367c8ca35722656ff939a3739f42 (patch)
tree6c778e241ea20c614c912cc5aa58570f58cba842
parenta645153b0a97663636bacdc5527c0d304fa79657 (diff)
downloadplatform_external_libbackup-ea3655aaf18b367c8ca35722656ff939a3739f42.tar.gz
platform_external_libbackup-ea3655aaf18b367c8ca35722656ff939a3739f42.tar.bz2
platform_external_libbackup-ea3655aaf18b367c8ca35722656ff939a3739f42.zip
Add make target for AOSP build.
Excludes the /shadow directory. Test: make, and linked against in an application that has this dependency. Change-Id: I085f6b82f9fbea980f267e1de58142fe2342e746 Bug: 64768452
-rw-r--r--Android.mk30
1 files changed, 30 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
new file mode 100644
index 0000000..a4bd6f8
--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,30 @@
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := libbackup
+LOCAL_MODULE_TAGS := optional
+LOCAL_SDK_VERSION := current
+
+EXCLUDE_BACKUP_LIB_SRCS := $(call all-java-files-under, src/com/google/android/libraries/backup/shadow/)
+
+LOCAL_SRC_FILES := $(call all-java-files-under,.)
+LOCAL_SRC_FILES := $(filter-out $(EXCLUDE_BACKUP_LIB_SRCS),$(LOCAL_SRC_FILES))
+
+LOCAL_STATIC_ANDROID_LIBRARIES := android-support-v4 \
+
+LOCAL_STATIC_JAVA_LIBRARIES := libbackup-guava
+
+include $(BUILD_STATIC_JAVA_LIBRARY)
+
+EXCLUDE_BACKUP_LIB_SRCS :=
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE_CLASS := JAVA_LIBRARIES
+LOCAL_MODULE := libbackup-guava
+LOCAL_SDK_VERSION := current
+LOCAL_SRC_FILES := ../../prebuilts/tools/common/m2/repository/com/google/guava/guava/20.0/guava-20.0$(COMMON_JAVA_PACKAGE_SUFFIX)
+LOCAL_UNINSTALLABLE_MODULE := true
+
+include $(BUILD_PREBUILT)