
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.
24 lines
790 B
Makefile
24 lines
790 B
Makefile
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)
|
|
|