From ea3655aaf18b367c8ca35722656ff939a3739f42 Mon Sep 17 00:00:00 2001 From: Eric Erfanian Date: Thu, 17 Aug 2017 12:09:08 -0700 Subject: 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 --- Android.mk | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Android.mk 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) -- cgit v1.2.3