mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +01:00
apply contributed patch making Makefile variable naming match required
conventions for CLEAR_VARS.
This commit is contained in:
parent
1d7a443c8d
commit
59dc69c0d9
1 changed files with 14 additions and 10 deletions
|
@ -4,17 +4,17 @@ LOCAL_PATH := $(call my-dir)
|
|||
include $(CLEAR_VARS)
|
||||
|
||||
COMMON_PATH=../../../common
|
||||
local_C_INCLUDES+= \
|
||||
LOCAL_C_INCLUDES+= \
|
||||
-I$(LOCAL_PATH)/$(COMMON_PATH) \
|
||||
-I$(LOCAL_PATH)/../../../relay \
|
||||
|
||||
local_LDLIBS += -llog
|
||||
LOCAL_LDLIBS += -llog
|
||||
|
||||
ifeq ($(BUILD_TARGET),debug)
|
||||
local_DEBUG = -DMEM_DEBUG -DDEBUG -DENABLE_LOGGING -DCOMMS_CHECKSUM -Wno-unused-but-set-variable
|
||||
LOCAL_DEBUG = -DMEM_DEBUG -DDEBUG -DENABLE_LOGGING -DCOMMS_CHECKSUM -Wno-unused-but-set-variable
|
||||
endif
|
||||
local_DEFINES += \
|
||||
$(local_DEBUG) \
|
||||
LOCAL_DEFINES += \
|
||||
$(LOCAL_DEBUG) \
|
||||
-DXWFEATURE_RELAY \
|
||||
-DXWFEATURE_SMS \
|
||||
-DXWFEATURE_COMMSACK \
|
||||
|
@ -42,12 +42,13 @@ local_DEFINES += \
|
|||
-D__LITTLE_ENDIAN \
|
||||
|
||||
ifeq ($(CHAT_ENABLED),true)
|
||||
local_DEFINES += -DXWFEATURE_CHAT
|
||||
|
||||
LOCAL_DEFINES += -DXWFEATURE_CHAT
|
||||
endif
|
||||
|
||||
# -DXWFEATURE_SCOREONEPASS \
|
||||
|
||||
local_SRC_FILES += \
|
||||
LOCAL_SRC_FILES += \
|
||||
xwjni.c \
|
||||
utilwrapper.c \
|
||||
drawwrapper.c \
|
||||
|
@ -58,7 +59,7 @@ local_SRC_FILES += \
|
|||
|
||||
|
||||
COMMON_PATH=../../../common
|
||||
common_SRC_FILES += \
|
||||
COMMON_SRC_FILES += \
|
||||
$(COMMON_PATH)/boarddrw.c \
|
||||
$(COMMON_PATH)/scorebdp.c \
|
||||
$(COMMON_PATH)/dragdrpp.c \
|
||||
|
@ -81,9 +82,12 @@ common_SRC_FILES += \
|
|||
$(COMMON_PATH)/dbgutil.c \
|
||||
|
||||
|
||||
LOCAL_CFLAGS+=$(local_C_INCLUDES) $(local_DEFINES) -Wall
|
||||
LOCAL_SRC_FILES := $(linux_SRC_FILES) $(local_SRC_FILES) $(common_SRC_FILES)
|
||||
LOCAL_CFLAGS+=$(LOCAL_C_INCLUDES) $(LOCAL_DEFINES)
|
||||
LOCAL_SRC_FILES := $(linux_SRC_FILES) $(LOCAL_SRC_FILES) $(COMMON_SRC_FILES)
|
||||
LOCAL_MODULE := xwjni
|
||||
LOCAL_LDLIBS := -L${SYSROOT}/usr/lib -llog -lz
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
COMMON_SRC_FILES :=
|
||||
COMMON_PATH :=
|
||||
|
|
Loading…
Reference in a new issue