Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android.mk: Support android_4.x build #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions android_4.x-5.x/Android.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ifeq (1,$(strip $(shell expr $(PLATFORM_SDK_VERSION) \>= 14)))
ifeq ($(VIPER4ANDROID_FOLDER),android_4.x-5.x)

LOCAL_PATH:= $(call my-dir)

Expand Down Expand Up @@ -58,3 +59,4 @@ include $(BUILD_PREBUILT)
endif

endif
endif
62 changes: 62 additions & 0 deletions android_4.x/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
ifeq (1,$(strip $(shell expr $(PLATFORM_SDK_VERSION) \>= 14)))
ifneq ($(VIPER4ANDROID_FOLDER),android_4.x-5.x)

LOCAL_PATH:= $(call my-dir)

#ViPER4Android
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := optional

LOCAL_SRC_FILES := $(call all-java-files-under, src)

#LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res
LOCAL_AAPT_FLAGS := --auto-add-overlay

LOCAL_PACKAGE_NAME := ViPER4Android
LOCAL_CERTIFICATE := platform

LOCAL_PROGUARD_FLAG_FILES := proguard.flags

LOCAL_STATIC_JAVA_LIBRARIES := \
v4a_RootTools \
v4a_android-support

ifeq (1,$(strip $(shell expr $(PLATFORM_SDK_VERSION) \>= 23)))
LOCAL_STATIC_JAVA_LIBRARIES += \
org.apache.http.legacy
endif

include $(BUILD_PACKAGE)

#libs
include $(CLEAR_VARS)

LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \
v4a_RootTools:libs/RootTools-4.2.jar \
v4a_android-support:libs/android-support-v13.jar

include $(BUILD_MULTI_PREBUILT)

#soundfx lib
ifneq ($(filter NEON NEON_HQ NEON_SQ NOVFP VFP X86,$(VIPER4ANDROID_MODE)),)

include $(CLEAR_VARS)

ifeq (1,$(strip $(shell expr $(PLATFORM_SDK_VERSION) \>= 18)))
LOCAL_V4A_LIB := libv4a_fx_jb
else
LOCAL_V4A_LIB := libv4a_fx_ics
endif

LOCAL_MODULE := libv4a_fx_ics
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/soundfx
LOCAL_MODULE_SUFFIX := .so
LOCAL_SRC_FILES := assets/$(LOCAL_V4A_LIB)_$(VIPER4ANDROID_MODE).so
include $(BUILD_PREBUILT)
endif

endif
endif