Add Android.mk for building in ROMs

Android.mk is needed to build F-Droid as part of other ROMs. A ROM would
have to emulate the .gitmodules with repo.

Note: the build will fail until AndroidPinning pulls a trivial fix for
      super(null). There is also a layout bug that is fixed by the next
      commit.
This commit is contained in:
Rene Treffer 2014-03-16 13:40:20 +01:00
parent 49a3c3370f
commit 750da53970

23
Android.mk Normal file
View File

@ -0,0 +1,23 @@
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_PACKAGE_NAME := F-Droid
LOCAL_CERTIFICATE := platform
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := \
$(call all-java-files-under, src) \
$(call all-java-files-under, extern/MemorizingTrustManager/src) \
$(call all-java-files-under, extern/AndroidPinning/src) \
$(call all-java-files-under, extern/UniversalImageLoader/library/src )
res_dirs = res extern/MemorizingTrustManager/res extern/AndroidPinning/res
LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs))
LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4
LOCAL_AAPT_FLAGS := --auto-add-overlay
LOCAL_AAPT_FLAGS += --extra-packages org.fdroid.fdroid:de.duenndns.ssl:org.thoughtcrime.ssl.pinning
LOCAL_PRIVILEGED_MODULE := true
include $(BUILD_PACKAGE)