mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
rearrange to work with newer version of ndk and sdk just installed
This commit is contained in:
parent
52b7205474
commit
6dfac28b13
17 changed files with 31 additions and 37 deletions
|
@ -1,9 +1,5 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project name="XWords4" default="release_svn">
|
<project name="XWords4" default="release">
|
||||||
|
|
||||||
<target name="release_svn" depends="release">
|
|
||||||
<exec dir=".." executable="./scripts/genvers.sh" output="ant_out.txt" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- The local.properties file is created and updated by the 'android' tool.
|
<!-- The local.properties file is created and updated by the 'android' tool.
|
||||||
It contains the path to the SDK. It should *NOT* be checked in in Version
|
It contains the path to the SDK. It should *NOT* be checked in in Version
|
||||||
|
@ -52,6 +48,10 @@
|
||||||
classname="com.android.ant.SetupTask"
|
classname="com.android.ant.SetupTask"
|
||||||
classpathref="android.antlibs" />
|
classpathref="android.antlibs" />
|
||||||
|
|
||||||
|
<exec dir=".." executable="./scripts/genvers.sh" output="ant_out.txt" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Execute the Android Setup task that will setup some properties specific to the target,
|
<!-- Execute the Android Setup task that will setup some properties specific to the target,
|
||||||
and import the build rules files.
|
and import the build rules files.
|
||||||
|
|
||||||
|
|
|
@ -4,14 +4,14 @@ LOCAL_PATH := $(call my-dir)
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
|
COMMON_PATH=../../../common
|
||||||
local_C_INCLUDES+= \
|
local_C_INCLUDES+= \
|
||||||
-I$(LOCAL_PATH)/../common \
|
-I$(LOCAL_PATH)/$(COMMON_PATH) \
|
||||||
-I$(LOCAL_PATH)/../relay \
|
-I$(LOCAL_PATH)/../../../relay \
|
||||||
|
|
||||||
local_LDLIBS += -llog
|
local_LDLIBS += -llog
|
||||||
|
|
||||||
# local_DEBUG = -DMEM_DEBUG -DDEBUG -DENABLE_LOGGING
|
# local_DEBUG = -DMEM_DEBUG -DDEBUG -DENABLE_LOGGING
|
||||||
|
|
||||||
local_DEFINES += \
|
local_DEFINES += \
|
||||||
$(local_DEBUG) \
|
$(local_DEBUG) \
|
||||||
-DXWFEATURE_TURNCHANGENOTIFY \
|
-DXWFEATURE_TURNCHANGENOTIFY \
|
||||||
|
@ -29,25 +29,27 @@ local_SRC_FILES += \
|
||||||
anddict.c \
|
anddict.c \
|
||||||
andutils.c \
|
andutils.c \
|
||||||
|
|
||||||
|
|
||||||
|
COMMON_PATH=../../../common
|
||||||
common_SRC_FILES += \
|
common_SRC_FILES += \
|
||||||
../common/boarddrw.c \
|
$(COMMON_PATH)/boarddrw.c \
|
||||||
../common/scorebdp.c \
|
$(COMMON_PATH)/scorebdp.c \
|
||||||
../common/dragdrpp.c \
|
$(COMMON_PATH)/dragdrpp.c \
|
||||||
../common/pool.c \
|
$(COMMON_PATH)/pool.c \
|
||||||
../common/tray.c \
|
$(COMMON_PATH)/tray.c \
|
||||||
../common/dictnry.c \
|
$(COMMON_PATH)/dictnry.c \
|
||||||
../common/mscore.c \
|
$(COMMON_PATH)/mscore.c \
|
||||||
../common/vtabmgr.c \
|
$(COMMON_PATH)/vtabmgr.c \
|
||||||
../common/strutils.c \
|
$(COMMON_PATH)/strutils.c \
|
||||||
../common/engine.c \
|
$(COMMON_PATH)/engine.c \
|
||||||
../common/board.c \
|
$(COMMON_PATH)/board.c \
|
||||||
../common/mempool.c \
|
$(COMMON_PATH)/mempool.c \
|
||||||
../common/game.c \
|
$(COMMON_PATH)/game.c \
|
||||||
../common/server.c \
|
$(COMMON_PATH)/server.c \
|
||||||
../common/model.c \
|
$(COMMON_PATH)/model.c \
|
||||||
../common/comms.c \
|
$(COMMON_PATH)/comms.c \
|
||||||
../common/memstream.c \
|
$(COMMON_PATH)/memstream.c \
|
||||||
../common/movestak.c \
|
$(COMMON_PATH)/movestak.c \
|
||||||
|
|
||||||
|
|
||||||
LOCAL_CFLAGS+=$(local_C_INCLUDES) $(local_DEFINES)
|
LOCAL_CFLAGS+=$(local_C_INCLUDES) $(local_DEFINES)
|
|
@ -7,4 +7,4 @@
|
||||||
# location of the SDK. This is only used by Ant
|
# location of the SDK. This is only used by Ant
|
||||||
# For customization when using a Version Control System, please read the
|
# For customization when using a Version Control System, please read the
|
||||||
# header note.
|
# header note.
|
||||||
sdk.dir=/home/andy/android-sdk-linux
|
sdk.dir=/home/andy/android-sdk-linux_86
|
||||||
|
|
|
@ -6,7 +6,7 @@ OLDDIR=$(pwd)
|
||||||
|
|
||||||
if [ -z "$NDK_ROOT" ]; then
|
if [ -z "$NDK_ROOT" ]; then
|
||||||
echo -n "NDK_ROOT not set... "
|
echo -n "NDK_ROOT not set... "
|
||||||
NDK_ROOT="$HOME/android-ndk-1.5_r1"
|
NDK_ROOT="$HOME/android-ndk-1.6_r1"
|
||||||
if [ -d $NDK_ROOT ]; then
|
if [ -d $NDK_ROOT ]; then
|
||||||
echo "using $NDK_ROOT"
|
echo "using $NDK_ROOT"
|
||||||
else
|
else
|
||||||
|
@ -18,14 +18,6 @@ fi
|
||||||
cd $(dirname $0)
|
cd $(dirname $0)
|
||||||
cd ../
|
cd ../
|
||||||
|
|
||||||
if [ -h $NDK_ROOT/sources/$APP -a $(readlink $NDK_ROOT/sources/$APP) != $(pwd) ]; then
|
|
||||||
rm $NDK_ROOT/sources/$APP
|
|
||||||
fi
|
|
||||||
if [ ! -h $NDK_ROOT/sources/$APP ]; then
|
|
||||||
echo "adding symlink to sources"
|
|
||||||
ln -sf $(pwd) $NDK_ROOT/sources/$APP
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -h $NDK_ROOT/apps/$APP -a $(readlink $NDK_ROOT/apps/$APP) != $(pwd) ]; then
|
if [ -h $NDK_ROOT/apps/$APP -a $(readlink $NDK_ROOT/apps/$APP) != $(pwd) ]; then
|
||||||
rm $NDK_ROOT/apps/$APP
|
rm $NDK_ROOT/apps/$APP
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue