Compare commits
24 Commits
12.2.rev11
...
python3_te
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
338c3e73b6 | ||
|
|
e2e742da0a | ||
|
|
19c3445715 | ||
|
|
892a4f01c3 | ||
|
|
00ed556dd4 | ||
|
|
e256f76b48 | ||
|
|
700f6329bf | ||
|
|
27fea957aa | ||
|
|
f472f15963 | ||
|
|
f708fe930b | ||
|
|
3e49726ddc | ||
|
|
214a70495b | ||
|
|
df8388ac16 | ||
|
|
5ad5a3fd38 | ||
|
|
bff9883181 | ||
|
|
e8861109ed | ||
|
|
1757a3e3a9 | ||
|
|
58ab8b2618 | ||
|
|
304bffa18a | ||
|
|
82b7b33327 | ||
|
|
73d920684c | ||
|
|
fdb5f2572a | ||
|
|
616a69a5c5 | ||
|
|
1194788eb9 |
6
.gitmodules
vendored
6
.gitmodules
vendored
@@ -75,5 +75,7 @@
|
|||||||
[submodule "project/jni/application/ninslash/src"]
|
[submodule "project/jni/application/ninslash/src"]
|
||||||
path = project/jni/application/ninslash/src
|
path = project/jni/application/ninslash/src
|
||||||
url = git@github.com:pelya/Ninslash.git
|
url = git@github.com:pelya/Ninslash.git
|
||||||
branch = master
|
[submodule "project/jni/python3/python3-android"]
|
||||||
update = merge
|
path = project/jni/python3/python3-android
|
||||||
|
url = http://github.com/gerstrong/python3-android.git
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,9 @@ ICU := $(foreach ARCH, $(ARCHES32), $(foreach NAME, $(ICU_LIBS), icuuc/lib/$(ARC
|
|||||||
|
|
||||||
OPENSSL := $(foreach ARCH, $(ARCHES32) $(ARCHES64), openssl/lib-$(ARCH)/libcrypto.so.sdl.1.so openssl/lib-$(ARCH)/libssl.so.sdl.1.so)
|
OPENSSL := $(foreach ARCH, $(ARCHES32) $(ARCHES64), openssl/lib-$(ARCH)/libcrypto.so.sdl.1.so openssl/lib-$(ARCH)/libssl.so.sdl.1.so)
|
||||||
|
|
||||||
LIBS := $(ICONV) $(ICU) $(OPENSSL)
|
PYTHON3 := $(foreach ARCH, $(ARCHES32) $(ARCHES64), python3/lib-$(ARCH)/libcrypto.so.sdl.1.so python3/lib-$(ARCH)/libssl.so.sdl.1.so)
|
||||||
|
|
||||||
|
LIBS := $(ICONV) $(ICU) $(OPENSSL) $(PYTHON3)
|
||||||
|
|
||||||
prebuilt-libraries: $(LIBS)
|
prebuilt-libraries: $(LIBS)
|
||||||
|
|
||||||
@@ -32,3 +34,6 @@ $(ICONV) $(ICU):
|
|||||||
|
|
||||||
$(OPENSSL):
|
$(OPENSSL):
|
||||||
cd openssl && ./compile.sh
|
cd openssl && ./compile.sh
|
||||||
|
|
||||||
|
$(PYTHON3):
|
||||||
|
cd python3 && ./compile.sh
|
||||||
|
|||||||
Submodule project/jni/application/basiliskii/basiliskii updated: 637f571914...3405babdd2
Submodule project/jni/application/bochs/bochs updated: b8c3ab2779...14678cc8ea
Submodule project/jni/application/c-dogs/src updated: 76772961e6...f5b9c36b17
@@ -7,10 +7,10 @@ AppName="Commander Genius"
|
|||||||
AppFullName=net.sourceforge.clonekeenplus
|
AppFullName=net.sourceforge.clonekeenplus
|
||||||
|
|
||||||
# Application version code (integer)
|
# Application version code (integer)
|
||||||
AppVersionCode=198500
|
AppVersionCode=198700
|
||||||
|
|
||||||
# Application user-visible version name (string)
|
# Application user-visible version name (string)
|
||||||
AppVersionName="1.9.8.4 Beta"
|
AppVersionName="1.9.8.7 Beta"
|
||||||
|
|
||||||
# Specify path to download application data in zip archive in the form 'Description|URL|MirrorURL^Description2|URL2|MirrorURL2^...'
|
# Specify path to download application data in zip archive in the form 'Description|URL|MirrorURL^Description2|URL2|MirrorURL2^...'
|
||||||
# If you'll start Description with '!' symbol it will be enabled by default, other downloads should be selected by user from startup config menu
|
# If you'll start Description with '!' symbol it will be enabled by default, other downloads should be selected by user from startup config menu
|
||||||
@@ -18,7 +18,7 @@ AppVersionName="1.9.8.4 Beta"
|
|||||||
# If the URL does not contain 'http://' it is treated as file from 'project/jni/application/src/AndroidData' dir -
|
# If the URL does not contain 'http://' it is treated as file from 'project/jni/application/src/AndroidData' dir -
|
||||||
# these files are put inside .apk package by build system
|
# these files are put inside .apk package by build system
|
||||||
# Also please avoid 'https://' URLs, many Android devices do not have trust certificates and will fail to connect to SF.net over HTTPS
|
# Also please avoid 'https://' URLs, many Android devices do not have trust certificates and will fail to connect to SF.net over HTTPS
|
||||||
AppDataDownloadUrl="!Games Center|gamecatalogue.zip^!Keen1|keen1.zip^!Keen4|keen4.zip^High-quality GFX and music - 55 Mb|http://sourceforge.net/projects/clonekeenplus/files/High%20Quality%20Packs/Version%202.x/hqpv26.zip/download"
|
AppDataDownloadUrl="!Games Center|gamecatalogue.zip^!Keen1|keen1.zip^!Keen4|keen4.zip^!Python3 support - 20 Mb|http://sourceforge.net/projects/clonekeenplus/files/extras/python35-assets-android.zip/download ^High-quality GFX and music - 55 Mb|http://sourceforge.net/projects/clonekeenplus/files/High%20Quality%20Packs/Version%202.x/hqpv26.zip/download"
|
||||||
|
|
||||||
# Reset SDL config when updating application to the new version (y) / (n)
|
# Reset SDL config when updating application to the new version (y) / (n)
|
||||||
ResetSdlConfigForThisVersion=y
|
ResetSdlConfigForThisVersion=y
|
||||||
@@ -201,27 +201,27 @@ FirstStartMenuOptions=''
|
|||||||
|
|
||||||
# Enable multi-ABI binary, with hardware FPU support - it will also work on old devices,
|
# Enable multi-ABI binary, with hardware FPU support - it will also work on old devices,
|
||||||
# but .apk size is 2x bigger (y) / (n) / (x86) / (all)
|
# but .apk size is 2x bigger (y) / (n) / (x86) / (all)
|
||||||
MultiABI='n'
|
MultiABI='x86'
|
||||||
|
|
||||||
# Minimum amount of RAM application requires, in Mb, SDL will print warning to user if it's lower
|
# Minimum amount of RAM application requires, in Mb, SDL will print warning to user if it's lower
|
||||||
AppMinimumRAM=64
|
AppMinimumRAM=64
|
||||||
|
|
||||||
# Optional shared libraries to compile - removing some of them will save space
|
# Optional shared libraries to compile - removing some of them will save space
|
||||||
# MP3 support by libMAD is encumbered by patents and libMAD is GPL-ed
|
# MP3 support by libMAD is encumbered by patents and libMAD is GPL-ed
|
||||||
# Available libraries: mad (GPL-ed!) sdl_mixer sdl_image sdl_ttf sdl_net sdl_blitpool sdl_gfx sdl_sound intl xml2 lua jpeg png ogg flac tremor vorbis freetype xerces curl theora fluidsynth lzma lzo2 mikmod openal timidity zzip bzip2 yaml-cpp python boost_date_time boost_filesystem boost_iostreams boost_program_options boost_regex boost_signals boost_system boost_thread glu avcodec avdevice avfilter avformat avresample avutil swscale swresample bzip2
|
# Available libraries: mad (GPL-ed!) sdl_mixer sdl_image sdl_ttf sdl_net sdl_blitpool sdl_gfx sdl_sound intl xml2 lua jpeg png ogg flac tremor vorbis freetype xerces curl theora fluidsynth lzma lzo2 mikmod openal timidity zzip bzip2 yaml-cpp python python3 boost_date_time boost_filesystem boost_iostreams boost_program_options boost_regex boost_signals boost_system boost_thread glu avcodec avdevice avfilter avformat avresample avutil swscale swresample bzip2
|
||||||
CompiledLibraries="sdl_image boost_system crypto ssl curl vorbis ogg"
|
CompiledLibraries="sdl_image boost_system crypto ssl curl vorbis ogg python3"
|
||||||
|
|
||||||
# Application uses custom build script AndroidBuild.sh instead of Android.mk (y) or (n)
|
# Application uses custom build script AndroidBuild.sh instead of Android.mk (y) or (n)
|
||||||
CustomBuildScript=n
|
CustomBuildScript=n
|
||||||
|
|
||||||
# Aditional CFLAGS for application
|
# Aditional CFLAGS for application
|
||||||
AppCflags='-frtti -fexceptions -finline-functions -DOGG=1 -DDOWNLOADER=1 -DANDROID=1 -DREFKEEN_VER_KDREAMS -DGRMODE=EGAGR -DREFKEEN_VER_KDREAMS_ANYEGA_ALL -DIOAPI_NO_64 -DBUILD_TYPE=LINUX -DTARGET_LNX=1 -DNOTYPESAVE -Werror=strict-aliasing -Werror=cast-align -Werror=pointer-arith -Werror=address -std=c++11 -Ijni/../jni/application/commandergenius/commandergenius/lib/GsKit -Ijni/vorbis/include/vorbis -Ijni/curl/include'
|
AppCflags='-frtti -fexceptions -finline-functions -DOGG=1 -DDOWNLOADER=1 -DANDROID=1 -DREFKEEN_VER_KDREAMS -DUSE_PYTHON3=1 -DGRMODE=EGAGR -DREFKEEN_VER_KDREAMS_ANYEGA_ALL -DIOAPI_NO_64 -DBUILD_TYPE=LINUX -DTARGET_LNX=1 -DNOTYPESAVE -Werror=strict-aliasing -Werror=cast-align -Werror=pointer-arith -Werror=address -std=c++11 -Ijni/../jni/application/commandergenius/commandergenius/lib/GsKit -Ijni/vorbis/include/vorbis -Ijni/curl/include -Ijni/python3/include/python3.5m'
|
||||||
|
|
||||||
|
|
||||||
# Additional LDFLAGS for application
|
# Additional LDFLAGS for application
|
||||||
#AppLdflags='-ltremor'
|
#AppLdflags='-ltremor'
|
||||||
#AppLdflags='-lvorbis -logg -lcrypto -lssl -lcurl'
|
#AppLdflags='-lvorbis -logg -lcrypto -lssl -lcurl'
|
||||||
AppLdflags='-lz -lvorbis -logg'
|
AppLdflags='-lz -lvorbis -logg -lpython3 -lpython3.5m'
|
||||||
|
|
||||||
# If application has headers with the same name as system headers, this option tries to fix compiler flags to make it compilable
|
# If application has headers with the same name as system headers, this option tries to fix compiler flags to make it compilable
|
||||||
AppOverlapsSystemHeaders=
|
AppOverlapsSystemHeaders=
|
||||||
|
|||||||
Submodule project/jni/application/commandergenius/commandergenius updated: 2dc893395b...a67003b466
Submodule project/jni/application/hid-pc-keyboard/src updated: 9529507735...7ea69c684a
Submodule project/jni/application/openttd/src updated: 6fe5779964...e004c5e6fe
Submodule project/jni/application/scummvm/scummvm updated: cce1e5012c...c2e0e001a7
Submodule project/jni/application/supertux/supertux updated: 26425d8a1b...280d663a2f
Submodule project/jni/application/uae4all2 updated: 0f919a32b6...fa7fbd1e0d
Submodule project/jni/application/vice/vice updated: 9f2803c7ab...0b817c357e
Submodule project/jni/boost/src updated: bc9ea9d303...5824acb451
Submodule project/jni/iconv/src deleted from a6a6531070
41
project/jni/python3/Android.mk
Normal file
41
project/jni/python3/Android.mk
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
LOCAL_PATH := $(call my-dir)
|
||||||
|
|
||||||
|
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
|
$(info Serial result = $(TARGET_ARCH))
|
||||||
|
|
||||||
|
LOCAL_MODULE := python3.5m
|
||||||
|
|
||||||
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/$(TARGET_ARCH)
|
||||||
|
|
||||||
|
LOCAL_STATIC_LIBRARIES :=
|
||||||
|
|
||||||
|
LOCAL_SHARED_LIBRARIES :=
|
||||||
|
|
||||||
|
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib/$(TARGET_ARCH) -llog
|
||||||
|
|
||||||
|
LOCAL_SRC_FILES = lib/$(TARGET_ARCH)/libpython3.5m.so
|
||||||
|
|
||||||
|
include $(PREBUILT_SHARED_LIBRARY)
|
||||||
|
|
||||||
|
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
|
|
||||||
|
LOCAL_MODULE := python3
|
||||||
|
|
||||||
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/$(TARGET_ARCH)
|
||||||
|
|
||||||
|
LOCAL_STATIC_LIBRARIES :=
|
||||||
|
|
||||||
|
LOCAL_SHARED_LIBRARIES := python3.5m
|
||||||
|
|
||||||
|
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib/$(TARGET_ARCH) -llog
|
||||||
|
|
||||||
|
LOCAL_SRC_FILES = lib/$(TARGET_ARCH)/libpython3.so
|
||||||
|
|
||||||
|
include $(PREBUILT_SHARED_LIBRARY)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
53
project/jni/python3/compile.sh
Executable file
53
project/jni/python3/compile.sh
Executable file
@@ -0,0 +1,53 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
#ARCH_LIST="arm64-v8a x86 mips armeabi-v7a armeabi"
|
||||||
|
|
||||||
|
#ARCH_LIST="arm x86 mips arm64"
|
||||||
|
ARCH_LIST="arm x86"
|
||||||
|
|
||||||
|
mkdir -p build
|
||||||
|
|
||||||
|
build() {
|
||||||
|
pushd python3-android
|
||||||
|
if [ -f env ]; then
|
||||||
|
rm env
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f mk/env.mk ]; then
|
||||||
|
rm mk/env.mk
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo ANDROID_PLATFORM=$1 > env
|
||||||
|
cat env.noarch >> env
|
||||||
|
|
||||||
|
make all ANDROID_PLATFORM=$1
|
||||||
|
popd
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
PIDS=""
|
||||||
|
for ARCH in $ARCH_LIST; do
|
||||||
|
build $ARCH &
|
||||||
|
PIDS="$PIDS $!"
|
||||||
|
done
|
||||||
|
|
||||||
|
for PID in $PIDS; do
|
||||||
|
wait $PID || exit 1
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
# Set some symbolic links for android ndk toolkit access
|
||||||
|
rm include
|
||||||
|
rm -rf lib
|
||||||
|
|
||||||
|
mkdir -p lib
|
||||||
|
|
||||||
|
ln -s python3-android/build/13b-18-arm-linux-androideabi-4.9/include include
|
||||||
|
|
||||||
|
pushd lib
|
||||||
|
ln -s ../python3-android/build/13b-18-arm-linux-androideabi-4.9/lib arm
|
||||||
|
ln -s ../python3-android/build/13b-18-x86-4.9/lib x86
|
||||||
|
popd
|
||||||
|
|
||||||
1
project/jni/python3/python3-android
Submodule
1
project/jni/python3/python3-android
Submodule
Submodule project/jni/python3/python3-android added at 16870c5599
Submodule project/jni/shmem updated: f6b49516cf...c2a28f528d
Reference in New Issue
Block a user