2015-07-11 19:27:02 +02:00
|
|
|
# -*- mode: Makefile; -*-
|
2010-01-02 20:10:08 +01:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2010-01-30 04:18:01 +01:00
|
|
|
COMMON_PATH=../../../common
|
2013-11-03 14:22:20 +01:00
|
|
|
LOCAL_C_INCLUDES+= \
|
2010-01-30 04:18:01 +01:00
|
|
|
-I$(LOCAL_PATH)/$(COMMON_PATH) \
|
|
|
|
-I$(LOCAL_PATH)/../../../relay \
|
2010-01-02 20:10:08 +01:00
|
|
|
|
2013-11-03 14:22:20 +01:00
|
|
|
LOCAL_LDLIBS += -llog
|
2010-01-02 20:10:08 +01:00
|
|
|
|
2013-08-29 16:28:08 +02:00
|
|
|
ifeq ($(BUILD_TARGET),debug)
|
2013-11-03 14:22:20 +01:00
|
|
|
LOCAL_DEBUG = -DMEM_DEBUG -DDEBUG -DENABLE_LOGGING -DCOMMS_CHECKSUM -Wno-unused-but-set-variable
|
2013-08-29 16:28:08 +02:00
|
|
|
endif
|
2013-11-03 14:22:20 +01:00
|
|
|
LOCAL_DEFINES += \
|
|
|
|
$(LOCAL_DEBUG) \
|
2010-01-30 14:43:21 +01:00
|
|
|
-DXWFEATURE_RELAY \
|
2014-09-12 05:42:15 +02:00
|
|
|
-DXWFEATURE_BLUETOOTH \
|
2012-10-15 17:29:46 +02:00
|
|
|
-DXWFEATURE_SMS \
|
2012-04-15 03:00:43 +02:00
|
|
|
-DXWFEATURE_COMMSACK \
|
2010-01-02 20:10:08 +01:00
|
|
|
-DXWFEATURE_TURNCHANGENOTIFY \
|
2011-08-17 04:36:23 +02:00
|
|
|
-DCOMMS_XPORT_FLAGSPROC \
|
2010-01-02 20:10:08 +01:00
|
|
|
-DKEY_SUPPORT \
|
2010-07-17 04:18:55 +02:00
|
|
|
-DXWFEATURE_CROSSHAIRS \
|
2010-01-02 20:10:08 +01:00
|
|
|
-DPOINTER_SUPPORT \
|
2010-04-08 06:13:59 +02:00
|
|
|
-DSCROLL_DRAG_THRESHHOLD=1 \
|
2010-04-22 06:56:14 +02:00
|
|
|
-DDROP_BITMAPS \
|
2012-06-29 15:52:49 +02:00
|
|
|
-DXWFEATURE_TRAYUNDO_ONE \
|
2011-01-13 03:39:35 +01:00
|
|
|
-DDISABLE_TILE_SEL \
|
2011-10-14 04:14:08 +02:00
|
|
|
-DXWFEATURE_BOARDWORDS \
|
2011-10-25 05:15:52 +02:00
|
|
|
-DXWFEATURE_WALKDICT \
|
2011-11-04 14:56:59 +01:00
|
|
|
-DXWFEATURE_WALKDICT_FILTER \
|
2011-11-11 04:02:18 +01:00
|
|
|
-DXWFEATURE_DICTSANITY \
|
2011-10-29 07:15:56 +02:00
|
|
|
-DFEATURE_TRAY_EDIT \
|
2012-08-02 05:31:21 +02:00
|
|
|
-DXWFEATURE_BONUSALL \
|
2012-05-04 15:16:02 +02:00
|
|
|
-DMAX_ROWS=32 \
|
2012-05-29 16:26:51 +02:00
|
|
|
-DHASH_STREAM \
|
2012-07-07 20:05:45 +02:00
|
|
|
-DXWFEATURE_BASE64 \
|
2012-11-02 13:35:31 +01:00
|
|
|
-DXWFEATURE_DEVID \
|
2016-07-29 16:32:50 +02:00
|
|
|
-DXWFEATURE_CHAT \
|
2013-11-03 21:17:20 +01:00
|
|
|
-DCOMMON_LAYOUT \
|
2016-09-16 05:37:29 +02:00
|
|
|
-DXWFEATURE_WIDER_COLS \
|
2015-07-11 08:19:38 +02:00
|
|
|
-DNATIVE_NLI \
|
2015-02-24 03:28:31 +01:00
|
|
|
-DCOMMS_VERSION=1 \
|
2013-08-20 17:42:12 +02:00
|
|
|
-DINITIAL_CLIENT_VERS=${INITIAL_CLIENT_VERS} \
|
2015-07-31 16:35:44 +02:00
|
|
|
-DVARIANT_${VARIANT} \
|
2012-05-29 16:26:51 +02:00
|
|
|
-DRELAY_ROOM_DEFAULT=\"\" \
|
2010-01-02 20:10:08 +01:00
|
|
|
-D__LITTLE_ENDIAN \
|
|
|
|
|
2012-07-01 19:04:10 +02:00
|
|
|
# -DXWFEATURE_SCOREONEPASS \
|
2011-11-04 14:17:09 +01:00
|
|
|
|
2013-11-03 14:22:20 +01:00
|
|
|
LOCAL_SRC_FILES += \
|
2010-01-02 20:10:08 +01:00
|
|
|
xwjni.c \
|
|
|
|
utilwrapper.c \
|
|
|
|
drawwrapper.c \
|
2010-01-30 15:38:44 +01:00
|
|
|
xportwrapper.c \
|
2010-01-02 20:10:08 +01:00
|
|
|
anddict.c \
|
|
|
|
andutils.c \
|
2010-02-11 14:27:09 +01:00
|
|
|
jniutlswrapper.c \
|
2010-01-02 20:10:08 +01:00
|
|
|
|
2010-01-30 04:18:01 +01:00
|
|
|
|
|
|
|
COMMON_PATH=../../../common
|
2013-11-03 14:22:20 +01:00
|
|
|
COMMON_SRC_FILES += \
|
2010-01-30 04:18:01 +01:00
|
|
|
$(COMMON_PATH)/boarddrw.c \
|
|
|
|
$(COMMON_PATH)/scorebdp.c \
|
|
|
|
$(COMMON_PATH)/dragdrpp.c \
|
|
|
|
$(COMMON_PATH)/pool.c \
|
|
|
|
$(COMMON_PATH)/tray.c \
|
|
|
|
$(COMMON_PATH)/dictnry.c \
|
2011-11-01 05:11:22 +01:00
|
|
|
$(COMMON_PATH)/dictiter.c \
|
2014-03-11 03:14:59 +01:00
|
|
|
$(COMMON_PATH)/dictmgr.c \
|
2010-01-30 04:18:01 +01:00
|
|
|
$(COMMON_PATH)/mscore.c \
|
|
|
|
$(COMMON_PATH)/vtabmgr.c \
|
|
|
|
$(COMMON_PATH)/strutils.c \
|
|
|
|
$(COMMON_PATH)/engine.c \
|
|
|
|
$(COMMON_PATH)/board.c \
|
|
|
|
$(COMMON_PATH)/mempool.c \
|
|
|
|
$(COMMON_PATH)/game.c \
|
|
|
|
$(COMMON_PATH)/server.c \
|
|
|
|
$(COMMON_PATH)/model.c \
|
|
|
|
$(COMMON_PATH)/comms.c \
|
|
|
|
$(COMMON_PATH)/memstream.c \
|
|
|
|
$(COMMON_PATH)/movestak.c \
|
2010-04-13 05:22:08 +02:00
|
|
|
$(COMMON_PATH)/dbgutil.c \
|
2015-07-11 17:40:49 +02:00
|
|
|
$(COMMON_PATH)/nli.c \
|
2010-01-02 20:10:08 +01:00
|
|
|
|
2014-10-16 06:43:34 +02:00
|
|
|
LOCAL_CFLAGS+=$(LOCAL_C_INCLUDES) $(LOCAL_DEFINES) -Wall -std=c99
|
2013-11-03 14:22:20 +01:00
|
|
|
LOCAL_SRC_FILES := $(linux_SRC_FILES) $(LOCAL_SRC_FILES) $(COMMON_SRC_FILES)
|
2010-01-02 20:10:08 +01:00
|
|
|
LOCAL_MODULE := xwjni
|
2013-08-29 16:28:08 +02:00
|
|
|
LOCAL_LDLIBS := -L${SYSROOT}/usr/lib -llog -lz
|
2010-01-02 20:10:08 +01:00
|
|
|
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
2013-11-03 14:22:20 +01:00
|
|
|
|
2016-09-30 20:13:30 +02:00
|
|
|
# This recipe doesn't work with clang. Fix if using gcc again
|
|
|
|
# ifneq ($(shell which ccache),)
|
|
|
|
# TARGET_CC = ccache $(TOOLCHAIN_PREFIX)gcc
|
|
|
|
# TARGET_CXX = ccache $(TOOLCHAIN_PREFIX)g++
|
|
|
|
# endif
|
2014-01-21 16:20:51 +01:00
|
|
|
|
2013-11-03 14:22:20 +01:00
|
|
|
COMMON_SRC_FILES :=
|
|
|
|
COMMON_PATH :=
|