Skip to content

Commit

Permalink
Improvements for ICS/JB conditions in the Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
rovo89 committed Nov 27, 2012
1 parent 19783bc commit daf008a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
15 changes: 7 additions & 8 deletions Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ LOCAL_SHARED_LIBRARIES := \
libdvm \
libstlport

ifneq ($(PLATFORM_SDK_VERSION),15)
LOCAL_SHARED_LIBRARIES += libandroidfw
endif

LOCAL_STATIC_LIBRARIES += libbz

LOCAL_C_INCLUDES += dalvik \
Expand All @@ -24,16 +28,11 @@ LOCAL_C_INCLUDES += dalvik \

LOCAL_MODULE_TAGS := optional

LOCAL_CFLAGS += -DWITH_JIT
LOCAL_CFLAGS += -DWITH_JIT -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)

# use "mm xposed_target=ics" to compile this in pre-JB source tree for ICS
ifeq ($(xposed_target),ics)
LOCAL_MODULE := xposed_ics
LOCAL_CFLAGS += -DXPOSED_TARGET_ICS
else
LOCAL_SHARED_LIBRARIES += libandroidfw
LOCAL_MODULE := xposed
endif

LOCAL_MODULE_STEM := xposed_sdk$(PLATFORM_SDK_VERSION)

include $(BUILD_EXECUTABLE)

Expand Down
2 changes: 1 addition & 1 deletion xposed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <android_runtime/AndroidRuntime.h>

#define private public
#ifdef XPOSED_TARGET_ICS
#if PLATFORM_SDK_VERSION == 15
#include <utils/ResourceTypes.h>
#else
#include <androidfw/ResourceTypes.h>
Expand Down
2 changes: 1 addition & 1 deletion xposed.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace android {
#define XPOSED_LIB_COPY_RETRIES 5
#define XPOSED_VERSION "24"

#ifdef XPOSED_TARGET_ICS
#ifndef ALOGD
#define ALOGD LOGD
#define ALOGE LOGE
#define ALOGI LOGI
Expand Down

0 comments on commit daf008a

Please sign in to comment.